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.00139/0.00139, allocations: 101.8 kB / 17.59 MB, free: 5.449 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.001422/0.001422, allocations: 187.3 kB / 18.51 MB, free: 4.527 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.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 47.67 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09344/0.09448, allocations: 49.44 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01155/0.1061, allocations: 10.74 MB / 361.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007626/0.1137, allocations: 3.931 MB / 365.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001531/0.1153, allocations: 59.81 kB / 365.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004908/0.1203, allocations: 2.589 MB / 368 MB, free: 3.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004432/0.1247, allocations: 1.757 MB / 369.8 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001605/0.1264, allocations: 0.6824 MB / 370.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1821/0.3084, allocations: 3.67 MB / 374.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004673/0.3132, allocations: 3.561 MB / 377.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00267/0.3159, allocations: 1.484 MB / 379.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003227/0.3191, allocations: 1.947 MB / 381.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009842/0.3201, allocations: 314.2 kB / 381.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002897/0.323, allocations: 1.175 MB / 382.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002077/0.3251, allocations: 1.812 MB / 384.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003021/0.3282, allocations: 2.137 MB / 386.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007191/0.3354, allocations: 6.466 MB / 393 MB, free: 4.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3354, allocations: 0 / 393 MB, free: 4.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.716e-06/0.3354, allocations: 1.375 kB / 393.1 MB, free: 4.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002211/0.3356, allocations: 0 / 393.1 MB, free: 4.062 MB / 302.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.009792/0.3454, allocations: 4.577 MB / 397.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.3455, allocations: 9.312 kB / 397.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00703/0.3525, allocations: 1.876 MB / 399.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005303/0.3579, allocations: 1.982 MB / 401.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002703/0.3582, allocations: 249.9 kB / 401.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.3597, allocations: 401.9 kB / 402.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02128/0.381, allocations: 10.06 MB / 412.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001529/0.3812, allocations: 37.19 kB / 412.2 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001112/0.3823, allocations: 165.3 kB / 412.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.3854, allocations: 1.864 MB / 414.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01841/0.4038, allocations: 8.333 MB / 422.6 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05263/0.4565, allocations: 39.39 MB / 462 MB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.4679, allocations: 3.991 MB / 466 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002364/0.4703, allocations: 1.419 MB / 467.4 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01224/0.4825, allocations: 7.642 MB / 475 MB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.241e-05/0.4826, allocations: 47.56 kB / 475.1 MB, free: 3.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=152): time 4.409e-06/0.4826, allocations: 0 / 475.1 MB, free: 3.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=159): time 0.03505/0.5177, allocations: 12.37 MB / 487.4 MB, free: 6.996 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001458/0.5192, allocations: 1.694 MB / 489.1 MB, free: 5.121 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007002/0.5262, allocations: 3.812 MB / 492.9 MB, free: 1.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003885/0.5266, allocations: 48.67 kB / 493 MB, free: 1.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002421/0.5291, allocations: 3.111 MB / 496.1 MB, free: 14.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009755/0.5301, allocations: 0.6502 MB / 496.8 MB, free: 13.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002435/0.5325, allocations: 1.263 MB / 498 MB, free: 12.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.609e-05/0.5326, allocations: 308.4 kB / 498.3 MB, free: 11.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00326/0.5359, allocations: 2.03 MB / 0.4886 GB, free: 9.906 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005785/0.5417, allocations: 5.966 MB / 0.4944 GB, free: 1.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009458/0.5512, allocations: 8.628 MB / 0.5029 GB, free: 7.414 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/0.5513, allocations: 40 kB / 0.5029 GB, free: 7.375 MB / 430.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02396/0.5753, allocations: 9.719 MB / 0.5124 GB, free: 13.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.5754, allocations: 67.94 kB / 0.5125 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01203/0.5875, allocations: 3.753 MB / 0.5161 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01243/0.5999, allocations: 2.61 MB / 0.5187 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004388/0.6044, allocations: 1.372 MB / 0.52 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.197/0.8014, allocations: 7.713 MB / 0.5276 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/0.8063, allocations: 402.9 kB / 0.5279 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001091/0.8074, allocations: 391 kB / 0.5283 GB, free: 140.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 (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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 {(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): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.00379/0.8112, allocations: 2.014 MB / 0.5303 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006215/0.8119, allocations: 326.8 kB / 0.5306 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006848/0.8187, allocations: 3.122 MB / 0.5336 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006107/0.8249, allocations: 2.686 MB / 0.5363 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.081e-05/0.8249, allocations: 3.875 kB / 0.5363 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-05/0.825, allocations: 7.688 kB / 0.5363 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01804/0.843, allocations: 8.567 MB / 0.5446 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/0.8431, allocations: 3.938 kB / 0.5446 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009277/0.844, allocations: 185.6 kB / 0.5448 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004334/0.8484, allocations: 1.446 MB / 0.5462 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002253/0.8486, allocations: 31.5 kB / 0.5463 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005223/0.8539, allocations: 6.015 MB / 0.5521 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007548/0.8547, allocations: 1.55 MB / 0.5537 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008164/0.8628, allocations: 5.305 MB / 0.5588 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009019/0.8638, allocations: 376.5 kB / 0.5592 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004533/0.8642, allocations: 30.16 kB / 0.5592 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/0.8656, allocations: 118.2 kB / 0.5593 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/0.8659, allocations: 86.55 kB / 0.5594 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.866, allocations: 54.53 kB / 0.5595 GB, free: 127.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003118/0.8691, allocations: 2.343 MB / 0.5618 GB, free: 127 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8691, allocations: 0 / 0.5618 GB, free: 127 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004924/0.8741, allocations: 1.031 MB / 0.5628 GB, free: 126.9 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 (not torn): 3 * 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 {(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): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004675/0.8746, allocations: 169.8 kB / 0.5629 GB, free: 126.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009566/0.8841, allocations: 5.997 MB / 0.5688 GB, free: 122.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.8842, allocations: 0 / 0.5688 GB, free: 122.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00361/0.8878, allocations: 2.041 MB / 0.5708 GB, free: 120.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/0.8907, allocations: 397.2 kB / 0.5712 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.9048, allocations: 9.502 MB / 0.5804 GB, free: 110.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00245/0.9073, allocations: 3.107 MB / 0.5835 GB, free: 107.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000701/0.908, allocations: 263.4 kB / 0.5837 GB, free: 107.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.908, allocations: 0 / 0.5837 GB, free: 107.2 MB / 446.1 MB Notification: Performance of Templates: time 0.3012/1.209, allocations: 143.3 MB / 0.7237 GB, free: 124.2 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches