Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009309/0.0009308, allocations: 93.52 kB / 16.3 MB, free: 6.133 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.0009588/0.0009589, allocations: 179 kB / 17.2 MB, free: 6.016 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.296/1.296, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002269, allocations: 4 kB / 300.7 MB, free: 6.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.0925, allocations: 50.42 MB / 351.2 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.2318/0.3244, allocations: 36.08 MB / 387.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.3423, allocations: 9.019 MB / 396.3 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007121/0.3495, allocations: 176.5 kB / 396.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005478/0.355, allocations: 1.777 MB / 398.2 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02034/0.3753, allocations: 5.239 MB / 403.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003662/0.379, allocations: 0.5491 MB / 404 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005017/0.3841, allocations: 2.117 MB / 406.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00609/0.3902, allocations: 4.165 MB / 410.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001974/0.3922, allocations: 0.9941 MB / 411.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00197/0.3942, allocations: 1.261 MB / 412.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005385/0.3947, allocations: 140 kB / 412.7 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00209/0.3968, allocations: 0.8855 MB / 413.6 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001658/0.3985, allocations: 1.477 MB / 415 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.3996, allocations: 0.8038 MB / 415.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005142/0.4048, allocations: 5.11 MB / 420.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.4048, allocations: 0 / 420.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4048, allocations: 4 kB / 420.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001544/0.405, allocations: 0 / 420.9 MB, free: 14.4 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.006693/0.4117, allocations: 3.817 MB / 424.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.4117, allocations: 15.97 kB / 424.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007573/0.4193, allocations: 2.217 MB / 427 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004589/0.4239, allocations: 2.052 MB / 429 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/0.4242, allocations: 246.2 kB / 429.3 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001397/0.4256, allocations: 399.7 kB / 429.7 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01782/0.4434, allocations: 10.17 MB / 439.9 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.4435, allocations: 35.69 kB / 439.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004235/0.444, allocations: 159.9 kB / 440 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00269/0.4467, allocations: 1.857 MB / 441.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01685/0.4635, allocations: 8.433 MB / 450.3 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0453/0.5089, allocations: 39.46 MB / 489.8 MB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/0.5191, allocations: 4.009 MB / 493.8 MB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.5293, allocations: 7.697 MB / 0.4897 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.5294, allocations: 47.56 kB / 0.4898 GB, free: 11.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=152): time 3.236e-06/0.5294, allocations: 0 / 0.4898 GB, free: 11.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.0322/0.5616, allocations: 12.65 MB / 0.5021 GB, free: 14.28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001159/0.5628, allocations: 1.604 MB / 0.5037 GB, free: 12.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005217/0.568, allocations: 3.91 MB / 0.5075 GB, free: 8.602 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003784/0.5684, allocations: 45.7 kB / 0.5076 GB, free: 8.551 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002217/0.5706, allocations: 3.114 MB / 0.5106 GB, free: 5.391 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006764/0.5713, allocations: 0.6443 MB / 0.5112 GB, free: 4.738 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.5715, allocations: 120 kB / 0.5114 GB, free: 4.621 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003462/0.5719, allocations: 0.5703 MB / 0.5119 GB, free: 4.043 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002841/0.5747, allocations: 2.027 MB / 0.5139 GB, free: 2.012 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005011/0.5798, allocations: 5.934 MB / 0.5197 GB, free: 10.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004542/0.5843, allocations: 3.377 MB / 0.523 GB, free: 6.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-05/0.5844, allocations: 40 kB / 0.523 GB, free: 6.691 MB / 446.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.2149/0.7994, allocations: 9.696 MB / 0.5325 GB, free: 141 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.7995, allocations: 68.09 kB / 0.5326 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01216/0.8117, allocations: 3.755 MB / 0.5362 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01178/0.8235, allocations: 2.636 MB / 0.5388 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004296/0.8278, allocations: 1.364 MB / 0.5401 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009068/0.8369, allocations: 7.478 MB / 0.5474 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004832/0.8417, allocations: 402.4 kB / 0.5478 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006889/0.8425, allocations: 387.8 kB / 0.5482 GB, free: 137.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 32} Notification: Performance of prepare postOptimizeDAE: time 0.002758/0.8452, allocations: 2.015 MB / 0.5502 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004582/0.8457, allocations: 325.7 kB / 0.5505 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005641/0.8513, allocations: 3.133 MB / 0.5535 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005051/0.8564, allocations: 2.686 MB / 0.5561 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.8564, allocations: 3.875 kB / 0.5562 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/0.8565, allocations: 7.172 kB / 0.5562 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/0.8708, allocations: 8.558 MB / 0.5645 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.8709, allocations: 0 / 0.5645 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008438/0.8717, allocations: 188.6 kB / 0.5647 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004094/0.8758, allocations: 1.443 MB / 0.5661 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.876, allocations: 31.98 kB / 0.5661 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004618/0.8806, allocations: 5.786 MB / 0.5718 GB, free: 122.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000635/0.8812, allocations: 1.468 MB / 0.5732 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007039/0.8883, allocations: 5.367 MB / 0.5785 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006715/0.889, allocations: 381.5 kB / 0.5788 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003211/0.8893, allocations: 35.98 kB / 0.5789 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/0.8906, allocations: 120.8 kB / 0.579 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.8908, allocations: 88.86 kB / 0.5791 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.374e-05/0.8909, allocations: 44.61 kB / 0.5791 GB, free: 115 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002748/0.8936, allocations: 2.416 MB / 0.5815 GB, free: 112.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8936, allocations: 8 kB / 0.5815 GB, free: 112.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004168/0.8978, allocations: 1.042 MB / 0.5825 GB, free: 111.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004367/0.8983, allocations: 186.7 kB / 0.5827 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007817/0.9061, allocations: 5.426 MB / 0.588 GB, free: 106 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.9061, allocations: 3.719 kB / 0.588 GB, free: 106 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003177/0.9093, allocations: 2.017 MB / 0.5899 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.9111, allocations: 366.2 kB / 0.5903 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.9249, allocations: 10.64 MB / 0.6007 GB, free: 92.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002383/0.9273, allocations: 3.189 MB / 0.6038 GB, free: 89.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003773/0.9311, allocations: 1.811 MB / 0.6056 GB, free: 87.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/0.9316, allocations: 219.4 kB / 0.6058 GB, free: 87.57 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.9316, allocations: 0 / 0.6058 GB, free: 87.57 MB / 446.1 MB Notification: Performance of Templates: time 0.05015/0.9817, allocations: 36.73 MB / 0.6416 GB, free: 51.03 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches