Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000789/0.0007891, allocations: 94.06 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 201.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.7 MB / 247.5 MB, free: 11.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003271/0.0003272, allocations: 4 kB / 308.4 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1287, allocations: 51.53 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2064/0.3351, allocations: 45.4 MB / 405.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02392/0.3591, allocations: 9.777 MB / 415.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007885/0.367, allocations: 198.8 kB / 415.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.3687, allocations: 467.2 kB / 415.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004884/0.3736, allocations: 1.826 MB / 417.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.3752, allocations: 0.739 MB / 418.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007506/0.3828, allocations: 6.567 MB / 424.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007441/0.3902, allocations: 4.907 MB / 429.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003273/0.3936, allocations: 1.276 MB / 431.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003384/0.397, allocations: 2.203 MB / 433.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008624/0.3978, allocations: 160 kB / 433.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.4006, allocations: 1.135 MB / 434.6 MB, free: 132 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002577/0.4032, allocations: 1.885 MB / 436.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00328/0.4065, allocations: 2.183 MB / 438.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006121/0.4126, allocations: 5.66 MB / 444.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4126, allocations: 0 / 444.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4127, allocations: 3.938 kB / 444.3 MB, free: 6.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002297/0.4129, allocations: 0 / 444.3 MB, free: 6.359 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.008492/0.4214, allocations: 4.287 MB / 448.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.4214, allocations: 8.031 kB / 448.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008377/0.4298, allocations: 2.225 MB / 450.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004619/0.4345, allocations: 2.427 MB / 453.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002537/0.4347, allocations: 282.8 kB / 453.5 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/0.436, allocations: 431.6 kB / 453.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/0.4584, allocations: 12.3 MB / 466.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001605/0.4586, allocations: 59.47 kB / 466.3 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008025/0.4594, allocations: 171.8 kB / 466.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003297/0.4627, allocations: 2.166 MB / 468.6 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02136/0.4841, allocations: 10.28 MB / 478.9 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05274/0.5368, allocations: 44.3 MB / 0.5109 GB, free: 5.207 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.5491, allocations: 4.683 MB / 0.5155 GB, free: 336 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002638/0.5518, allocations: 1.721 MB / 0.5172 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01299/0.5648, allocations: 8.314 MB / 0.5253 GB, free: 5.879 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.398e-05/0.5649, allocations: 55.88 kB / 0.5254 GB, free: 5.816 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.899e-06/0.5649, allocations: 0 / 0.5254 GB, free: 5.816 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2151/0.78, allocations: 16.15 MB / 0.5411 GB, free: 143.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00104/0.7811, allocations: 1.599 MB / 0.5427 GB, free: 141.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006862/0.788, allocations: 4.191 MB / 0.5468 GB, free: 140.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003781/0.7884, allocations: 54.11 kB / 0.5468 GB, free: 140.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00191/0.7903, allocations: 3.399 MB / 0.5502 GB, free: 137.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009641/0.7913, allocations: 0.8047 MB / 0.5509 GB, free: 137.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006888/0.792, allocations: 0.5773 MB / 0.5515 GB, free: 136.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.183e-05/0.792, allocations: 301.1 kB / 0.5518 GB, free: 136.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003399/0.7954, allocations: 2.293 MB / 0.554 GB, free: 135.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004432/0.7999, allocations: 6.423 MB / 0.5603 GB, free: 129.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008201/0.8081, allocations: 9.368 MB / 0.5695 GB, free: 121.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-05/0.8082, allocations: 43.22 kB / 0.5695 GB, free: 121.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02146/0.8297, allocations: 10.18 MB / 0.5794 GB, free: 114.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.8299, allocations: 74.69 kB / 0.5795 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01037/0.8402, allocations: 3.914 MB / 0.5833 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009525/0.8498, allocations: 2.255 MB / 0.5855 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00489/0.8547, allocations: 1.598 MB / 0.5871 GB, free: 106.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006995/0.8617, allocations: 6.091 MB / 0.593 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005232/0.867, allocations: 440.5 kB / 0.5935 GB, free: 99.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009023/0.8679, allocations: 422.4 kB / 0.5939 GB, free: 99.34 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.003557/0.8715, allocations: 2.218 MB / 0.596 GB, free: 97.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008937/0.8724, allocations: 379.1 kB / 0.5964 GB, free: 96.74 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005988/0.8784, allocations: 3.331 MB / 0.5996 GB, free: 93.38 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004618/0.883, allocations: 2.789 MB / 0.6024 GB, free: 90.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.055e-05/0.8831, allocations: 8 kB / 0.6024 GB, free: 90.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/0.8831, allocations: 7.969 kB / 0.6024 GB, free: 90.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0168/0.8999, allocations: 10.39 MB / 0.6125 GB, free: 79.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.9e-05/0.9, allocations: 12.94 kB / 0.6125 GB, free: 79.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.9014, allocations: 383.4 kB / 0.6129 GB, free: 79.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002729/0.9041, allocations: 0.9864 MB / 0.6139 GB, free: 78.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.9044, allocations: 59.92 kB / 0.6139 GB, free: 78.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003861/0.9082, allocations: 4.616 MB / 0.6184 GB, free: 73.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007339/0.909, allocations: 1.479 MB / 0.6199 GB, free: 72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008075/0.9171, allocations: 5.988 MB / 0.6257 GB, free: 65.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.9184, allocations: 444.1 kB / 0.6262 GB, free: 65.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008242/0.9192, allocations: 56.61 kB / 0.6262 GB, free: 65.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/0.9212, allocations: 164.7 kB / 0.6264 GB, free: 65.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002967/0.9215, allocations: 172.4 kB / 0.6265 GB, free: 64.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.9217, allocations: 76.69 kB / 0.6266 GB, free: 64.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00428/0.926, allocations: 2.593 MB / 0.6291 GB, free: 62.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.926, allocations: 0 / 0.6291 GB, free: 62.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006804/0.9328, allocations: 1.142 MB / 0.6303 GB, free: 61.14 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.0006845/0.9335, allocations: 210.6 kB / 0.6305 GB, free: 60.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009278/0.9428, allocations: 6.024 MB / 0.6363 GB, free: 54.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/0.9429, allocations: 5.031 kB / 0.6363 GB, free: 54.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003704/0.9466, allocations: 2.214 MB / 0.6385 GB, free: 52.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01118/0.9578, allocations: 496.2 kB / 0.639 GB, free: 52.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02083/0.9786, allocations: 13.6 MB / 0.6523 GB, free: 38.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004444/0.9831, allocations: 3.45 MB / 0.6556 GB, free: 34.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/0.9843, allocations: 327.4 kB / 0.6559 GB, free: 34.49 MB / 446.1 MB Notification: Performance of SimCode: time 1.342e-06/0.9843, allocations: 0 / 0.6559 GB, free: 34.49 MB / 446.1 MB Notification: Performance of Templates: time 0.3396/1.324, allocations: 140 MB / 0.7926 GB, free: 60.11 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches