Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.00139, allocations: 103 kB / 17.16 MB, free: 6.32 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.001457/0.001457, allocations: 190.9 kB / 18.08 MB, free: 5.41 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.366/1.366, allocations: 222.9 MB / 241.8 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 40.94 kB / 300.6 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.142, allocations: 49.44 MB / 350.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2309/0.373, allocations: 46.97 MB / 397 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02534/0.3984, allocations: 9.957 MB / 407 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01323/0.4116, allocations: 200.8 kB / 407.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005834/0.4176, allocations: 2.727 MB / 409.9 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005164/0.4228, allocations: 1.839 MB / 411.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.4246, allocations: 0.7466 MB / 412.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00714/0.4318, allocations: 6.49 MB / 419 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005057/0.4369, allocations: 3.538 MB / 422.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002857/0.4398, allocations: 1.51 MB / 424 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003725/0.4435, allocations: 2.492 MB / 426.5 MB, free: 8.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001135/0.4447, allocations: 260 kB / 426.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002879/0.4476, allocations: 1.252 MB / 428 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002443/0.45, allocations: 2.053 MB / 430.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002988/0.453, allocations: 2.349 MB / 432.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005793/0.4588, allocations: 5.832 MB / 438.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.4589, allocations: 0 / 438.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4589, allocations: 0 / 438.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001763/0.4591, allocations: 0 / 438.3 MB, free: 12.48 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01019/0.4693, allocations: 5.274 MB / 443.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.4693, allocations: 8.031 kB / 443.5 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007838/0.4772, allocations: 2.116 MB / 445.7 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004817/0.482, allocations: 2.485 MB / 448.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.4823, allocations: 282.8 kB / 448.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.4835, allocations: 427.6 kB / 448.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.505, allocations: 12.22 MB / 461.1 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001247/0.5051, allocations: 51.47 kB / 461.1 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005253/0.5057, allocations: 179.8 kB / 461.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003048/0.5087, allocations: 2.166 MB / 463.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02033/0.5291, allocations: 10.2 MB / 473.6 MB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05335/0.5825, allocations: 44.31 MB / 0.5058 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01206/0.5946, allocations: 4.609 MB / 0.5103 GB, free: 5.754 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002657/0.5973, allocations: 1.735 MB / 0.512 GB, free: 4.008 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/0.6107, allocations: 8.219 MB / 0.52 GB, free: 11.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.6107, allocations: 55.81 kB / 0.5201 GB, free: 11.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.418e-06/0.6108, allocations: 0 / 0.5201 GB, free: 11.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2241/0.8349, allocations: 15.91 MB / 0.5356 GB, free: 151.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00105/0.8359, allocations: 1.599 MB / 0.5372 GB, free: 149.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007199/0.8432, allocations: 4.2 MB / 0.5413 GB, free: 148.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004193/0.8436, allocations: 58.48 kB / 0.5413 GB, free: 148.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002348/0.846, allocations: 3.393 MB / 0.5447 GB, free: 145.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/0.847, allocations: 0.8126 MB / 0.5455 GB, free: 145 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001994/0.849, allocations: 1.359 MB / 0.5468 GB, free: 144.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.639e-05/0.8491, allocations: 302.8 kB / 0.5471 GB, free: 144.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/0.8529, allocations: 2.266 MB / 0.5493 GB, free: 143.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005537/0.8584, allocations: 6.4 MB / 0.5555 GB, free: 137.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008715/0.8672, allocations: 9.322 MB / 0.5646 GB, free: 129.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001386/0.8674, allocations: 40.56 kB / 0.5647 GB, free: 129.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02151/0.8889, allocations: 10.06 MB / 0.5745 GB, free: 125.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.632e-05/0.889, allocations: 68 kB / 0.5746 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009758/0.8988, allocations: 3.794 MB / 0.5783 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009303/0.9081, allocations: 2.164 MB / 0.5804 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004633/0.9128, allocations: 1.587 MB / 0.5819 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006777/0.9196, allocations: 6.067 MB / 0.5879 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005468/0.9251, allocations: 431.4 kB / 0.5883 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009025/0.926, allocations: 416 kB / 0.5887 GB, free: 110.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003197/0.9292, allocations: 2.212 MB / 0.5908 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008818/0.9301, allocations: 375.2 kB / 0.5912 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005453/0.9356, allocations: 3.282 MB / 0.5944 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004311/0.9399, allocations: 2.749 MB / 0.5971 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/0.9399, allocations: 7.25 kB / 0.5971 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-05/0.94, allocations: 7.969 kB / 0.5971 GB, free: 101.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/0.9551, allocations: 10.35 MB / 0.6072 GB, free: 91.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.697e-05/0.9552, allocations: 12 kB / 0.6072 GB, free: 91.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.9565, allocations: 371.5 kB / 0.6076 GB, free: 90.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002709/0.9592, allocations: 0.9785 MB / 0.6085 GB, free: 89.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002714/0.9595, allocations: 67.97 kB / 0.6086 GB, free: 89.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003914/0.9634, allocations: 4.573 MB / 0.6131 GB, free: 85.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006812/0.9642, allocations: 1.479 MB / 0.6145 GB, free: 83.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007758/0.9719, allocations: 5.916 MB / 0.6203 GB, free: 77.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.9732, allocations: 439.3 kB / 0.6207 GB, free: 76.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007713/0.9739, allocations: 55.98 kB / 0.6207 GB, free: 76.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00195/0.9759, allocations: 147.8 kB / 0.6209 GB, free: 76.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003504/0.9763, allocations: 172.4 kB / 0.621 GB, free: 76.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.9764, allocations: 79.98 kB / 0.6211 GB, free: 76.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003567/0.98, allocations: 2.589 MB / 0.6237 GB, free: 73.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.98, allocations: 0 / 0.6237 GB, free: 73.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005771/0.9858, allocations: 1.165 MB / 0.6248 GB, free: 72.63 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004997/0.9863, allocations: 236.7 kB / 0.625 GB, free: 72.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009113/0.9955, allocations: 5.975 MB / 0.6309 GB, free: 66.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/0.9955, allocations: 4 kB / 0.6309 GB, free: 66.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003571/0.9991, allocations: 2.197 MB / 0.633 GB, free: 64.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/1.003, allocations: 481.8 kB / 0.6335 GB, free: 63.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/1.021, allocations: 13.37 MB / 0.6465 GB, free: 50.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003659/1.024, allocations: 3.458 MB / 0.6499 GB, free: 46.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/1.025, allocations: 327.4 kB / 0.6502 GB, free: 46.27 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/1.026, allocations: 0 / 0.6502 GB, free: 46.27 MB / 446.1 MB Notification: Performance of Templates: time 0.3072/1.333, allocations: 141.2 MB / 0.7881 GB, free: 50.85 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches