Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 113.9 kB / 17.07 MB, free: 6 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.001056/0.001056, allocations: 190.9 kB / 18 MB, free: 5.082 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.336/1.336, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 47.92 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.271, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01169/0.2827, allocations: 10.71 MB / 411.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008/0.2908, allocations: 3.872 MB / 415.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00194/0.2928, allocations: 67.81 kB / 415.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006115/0.2989, allocations: 2.227 MB / 417.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00687/0.3058, allocations: 1.872 MB / 419.5 MB, free: 6.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.3083, allocations: 0.7097 MB / 420.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00918/0.3175, allocations: 4.23 MB / 424.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006395/0.324, allocations: 2.913 MB / 427.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004028/0.328, allocations: 1.475 MB / 428.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004725/0.3328, allocations: 2.087 MB / 430.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001497/0.3343, allocations: 296 kB / 431.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003199/0.3375, allocations: 0.944 MB / 432.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003347/0.3409, allocations: 1.823 MB / 433.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004735/0.3457, allocations: 2.093 MB / 436 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.3567, allocations: 6.416 MB / 442.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.3567, allocations: 0 / 442.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3567, allocations: 4 kB / 442.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002499/0.357, allocations: 0 / 442.5 MB, free: 14.94 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01025/0.3673, allocations: 4.606 MB / 447.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3673, allocations: 11.89 kB / 447.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007338/0.3747, allocations: 1.922 MB / 449 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005269/0.38, allocations: 2.292 MB / 451.3 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/0.3802, allocations: 225.6 kB / 451.5 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.3813, allocations: 299.7 kB / 451.8 MB, free: 5.453 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01766/0.399, allocations: 9.639 MB / 461.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001638/0.3992, allocations: 47.53 kB / 461.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008369/0.4, allocations: 147.9 kB / 461.6 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002883/0.4029, allocations: 1.911 MB / 463.5 MB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.4181, allocations: 7.637 MB / 471.2 MB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05291/0.471, allocations: 37.6 MB / 0.4969 GB, free: 10.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01038/0.4815, allocations: 2.887 MB / 0.4997 GB, free: 7.484 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.4834, allocations: 0.8803 MB / 0.5005 GB, free: 6.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008362/0.4918, allocations: 3.759 MB / 0.5042 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.4918, allocations: 43.22 kB / 0.5043 GB, free: 2.574 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 4.799e-06/0.4919, allocations: 0 / 0.5043 GB, free: 2.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.02652/0.5184, allocations: 9.029 MB / 0.5131 GB, free: 9.422 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/0.5185, allocations: 149.5 kB / 0.5132 GB, free: 9.246 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005199/0.5237, allocations: 3.916 MB / 0.517 GB, free: 5.348 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.5239, allocations: 45.7 kB / 0.5171 GB, free: 5.297 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002031/0.5259, allocations: 3.082 MB / 0.5201 GB, free: 2.172 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005334/0.5265, allocations: 0.6057 MB / 0.5207 GB, free: 1.559 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.5277, allocations: 1.163 MB / 0.5218 GB, free: 392 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.37e-05/0.5278, allocations: 309.1 kB / 0.5221 GB, free: 80 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002293/0.5301, allocations: 1.581 MB / 0.5237 GB, free: 14.49 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00482/0.535, allocations: 5.362 MB / 0.5289 GB, free: 7.234 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2194/0.7544, allocations: 7.537 MB / 0.5363 GB, free: 123.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001628/0.7546, allocations: 38.56 kB / 0.5363 GB, free: 123.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01149/0.7661, allocations: 6.651 MB / 0.5428 GB, free: 121.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.277e-05/0.7662, allocations: 67 kB / 0.5428 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.7663, allocations: 134.2 kB / 0.543 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001584/0.7665, allocations: 177.4 kB / 0.5431 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003405/0.7699, allocations: 1.385 MB / 0.5445 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001347/0.77, allocations: 261.6 kB / 0.5447 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003285/0.7733, allocations: 291.5 kB / 0.545 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003834/0.7737, allocations: 367 kB / 0.5454 GB, free: 121.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002423/0.7762, allocations: 1.981 MB / 0.5473 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004483/0.7766, allocations: 333.2 kB / 0.5476 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/0.7784, allocations: 1.242 MB / 0.5488 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.067e-05/0.7784, allocations: 22.59 kB / 0.5489 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.7784, allocations: 0 / 0.5489 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.7784, allocations: 7.969 kB / 0.5489 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007269/0.7857, allocations: 5.752 MB / 0.5545 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/0.7857, allocations: 20.94 kB / 0.5545 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008385/0.7866, allocations: 275 kB / 0.5548 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.328e-05/0.7866, allocations: 32 kB / 0.5548 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.487e-05/0.7867, allocations: 47.8 kB / 0.5548 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.006e-05/0.7867, allocations: 39.77 kB / 0.5549 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/0.7867, allocations: 27.88 kB / 0.5549 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.7895, allocations: 3.211 MB / 0.558 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005784/0.7901, allocations: 407.7 kB / 0.5584 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002547/0.7904, allocations: 55.8 kB / 0.5585 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009683/0.7913, allocations: 59.39 kB / 0.5585 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.7915, allocations: 153.6 kB / 0.5587 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.381e-05/0.7916, allocations: 68.38 kB / 0.5588 GB, free: 112.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002615/0.7942, allocations: 2.432 MB / 0.5611 GB, free: 110.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.7942, allocations: 0 / 0.5611 GB, free: 110.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003686/0.7979, allocations: 0.864 MB / 0.562 GB, free: 109.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002947/0.7982, allocations: 217.5 kB / 0.5622 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004356/0.8026, allocations: 3.673 MB / 0.5658 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/0.8026, allocations: 4.75 kB / 0.5658 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007165/0.8033, allocations: 0.7369 MB / 0.5665 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/0.8055, allocations: 449 kB / 0.5669 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.8169, allocations: 8.511 MB / 0.5752 GB, free: 96.04 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003496/0.8205, allocations: 3.103 MB / 0.5783 GB, free: 92.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00331/0.8238, allocations: 1.764 MB / 0.58 GB, free: 91.13 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004005/0.8242, allocations: 231.4 kB / 0.5802 GB, free: 90.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8242, allocations: 0 / 0.5802 GB, free: 90.9 MB / 462.1 MB Notification: Performance of Templates: time 0.04511/0.8693, allocations: 23.82 MB / 0.6035 GB, free: 67.3 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches