Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries") translateModel(ModelicaTest.MultiBody.Forces.SpringDamperSeries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic1.s|prismatic1.v|sps1.s_damper|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001706/0.001706, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 222.9 MB / 242.5 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2299/0.2299, allocations: 44.18 MB / 336.8 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 66.64 kB / 408.4 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1148, allocations: 60.84 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.03643/0.1513, allocations: 38.47 MB / 0.4958 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01669/0.168, allocations: 7.814 MB / 0.5034 GB, free: 384 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006033/0.1741, allocations: 159.6 kB / 0.5035 GB, free: 224 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2679/0.442, allocations: 2.331 MB / 0.5058 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004256/0.4463, allocations: 1.152 MB / 0.5069 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001778/0.4481, allocations: 468.3 kB / 0.5074 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009027/0.4571, allocations: 4.325 MB / 0.5116 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007362/0.4646, allocations: 2.999 MB / 0.5145 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003844/0.4685, allocations: 1.119 MB / 0.5156 GB, free: 9.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00464/0.4732, allocations: 1.836 MB / 0.5174 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.4747, allocations: 218.1 kB / 0.5176 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.4781, allocations: 0.9746 MB / 0.5186 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002473/0.4806, allocations: 1.552 MB / 0.5201 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003506/0.4842, allocations: 1.918 MB / 0.522 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006175/0.4903, allocations: 4.896 MB / 0.5268 GB, free: 6.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.4904, allocations: 0 / 0.5268 GB, free: 6.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4904, allocations: 0 / 0.5268 GB, free: 6.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002167/0.4906, allocations: 0 / 0.5268 GB, free: 6.414 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1473 * Number of variables: 1473 Notification: Performance of Generate backend data structure: time 0.009773/0.5004, allocations: 4.257 MB / 0.5309 GB, free: 3.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.5005, allocations: 7.844 kB / 0.5309 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005625/0.5061, allocations: 1.808 MB / 0.5327 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003631/0.5098, allocations: 1.757 MB / 0.5344 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.51, allocations: 230 kB / 0.5346 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/0.5111, allocations: 300.5 kB / 0.5349 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0211/0.5322, allocations: 10.63 MB / 0.5453 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001879/0.5324, allocations: 39.2 kB / 0.5453 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001096/0.5335, allocations: 145.3 kB / 0.5455 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003706/0.5373, allocations: 2.035 MB / 0.5475 GB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02077/0.5581, allocations: 9.322 MB / 0.5566 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05286/0.611, allocations: 38.01 MB / 0.5937 GB, free: 6.828 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.6221, allocations: 4.171 MB / 0.5978 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003218/0.6254, allocations: 2.309 MB / 0.6 GB, free: 184 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01238/0.6378, allocations: 6.022 MB / 0.6059 GB, free: 9.941 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.6379, allocations: 50.5 kB / 0.6059 GB, free: 9.887 MB / 462.1 MB Notification: Performance of pre-optimization done (n=181): time 4.94e-06/0.6379, allocations: 4 kB / 0.6059 GB, free: 9.883 MB / 462.1 MB Notification: Performance of matching and sorting (n=210): time 0.0703/0.7082, allocations: 21.94 MB / 0.6274 GB, free: 3.832 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.7084, allocations: 153.9 kB / 0.6275 GB, free: 3.648 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007793/0.7162, allocations: 3.385 MB / 0.6308 GB, free: 264 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007996/0.717, allocations: 57.7 kB / 0.6309 GB, free: 200 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002977/0.7201, allocations: 2.804 MB / 0.6336 GB, free: 13.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001255/0.7213, allocations: 0.7866 MB / 0.6344 GB, free: 12.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003682/0.725, allocations: 1.196 MB / 0.6355 GB, free: 11.42 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7252, allocations: 309.1 kB / 0.6358 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004645/0.7298, allocations: 2.331 MB / 0.6381 GB, free: 8.781 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006612/0.7365, allocations: 5.781 MB / 0.6438 GB, free: 1.344 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/0.7484, allocations: 8.811 MB / 0.6524 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/0.7486, allocations: 36 kB / 0.6524 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of matching and sorting (n=775) (initialization): time 0.0177/0.7663, allocations: 8.674 MB / 0.6609 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.7665, allocations: 56 kB / 0.6609 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001788/0.7667, allocations: 124 kB / 0.661 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002997/0.7697, allocations: 1.034 MB / 0.6621 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005396/0.7751, allocations: 1.376 MB / 0.6634 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006264/0.7814, allocations: 5.408 MB / 0.6687 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00475/0.7862, allocations: 331.4 kB / 0.669 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/0.7874, allocations: 360 kB / 0.6693 GB, free: 5.676 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],s1.color[3],s1.color[2],s1.color[1],s1.massColor[3],s1.massColor[2],s1.massColor[1],sps1.color[3],sps1.color[2],sps1.color[1],sps1.color_b[3],sps1.color_b[2],sps1.color_b[1],sps1.color_a[3],sps1.color_a[2],sps1.color_a[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (734): * Single equations (assignments): 727 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004718/0.7921, allocations: 1.939 MB / 0.6712 GB, free: 3.727 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009797/0.7931, allocations: 312 kB / 0.6715 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008296/0.8014, allocations: 3.943 MB / 0.6754 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.69e-05/0.8015, allocations: 24 kB / 0.6754 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.433e-05/0.8016, allocations: 7.938 kB / 0.6754 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.149e-05/0.8016, allocations: 11.97 kB / 0.6754 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.019/0.8206, allocations: 8.883 MB / 0.6841 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-05/0.8207, allocations: 0 / 0.6841 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/0.8225, allocations: 347.5 kB / 0.6844 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00263/0.8252, allocations: 0.8734 MB / 0.6853 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003176/0.8255, allocations: 36 kB / 0.6853 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004942/0.8305, allocations: 4.747 MB / 0.69 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.8305, allocations: 0 / 0.69 GB, free: 204 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01103/0.8415, allocations: 6.869 MB / 0.6967 GB, free: 9.301 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009368/0.8425, allocations: 356.9 kB / 0.697 GB, free: 8.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008462/0.8434, allocations: 36 kB / 0.697 GB, free: 8.895 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001893/0.8453, allocations: 119.8 kB / 0.6972 GB, free: 8.777 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000435/0.8457, allocations: 113.1 kB / 0.6973 GB, free: 8.664 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002198/0.846, allocations: 55.75 kB / 0.6973 GB, free: 8.613 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004445/0.8504, allocations: 2.081 MB / 0.6993 GB, free: 6.539 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.123e-06/0.8505, allocations: 3.938 kB / 0.6993 GB, free: 6.535 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006666/0.8572, allocations: 0.9688 MB / 0.7003 GB, free: 5.566 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (sps1.s_damper,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008328/0.858, allocations: 174.2 kB / 0.7005 GB, free: 5.391 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2641/1.122, allocations: 6.108 MB / 0.7064 GB, free: 163.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/1.122, allocations: 1.625 kB / 0.7064 GB, free: 163.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005219/1.127, allocations: 2.474 MB / 0.7088 GB, free: 163.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/1.13, allocations: 344.2 kB / 0.7092 GB, free: 163.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02066/1.151, allocations: 11.42 MB / 0.7203 GB, free: 158.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005024/1.156, allocations: 3.022 MB / 0.7233 GB, free: 158 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001647/1.158, allocations: 290.2 kB / 0.7236 GB, free: 158 MB / 0.545 GB Notification: Performance of SimCode: time 1.212e-06/1.158, allocations: 0 / 0.7236 GB, free: 158 MB / 0.545 GB Notification: Performance of Templates: time 0.1189/1.276, allocations: 124.5 MB / 0.8452 GB, free: 50.67 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches