Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001423/0.001423, allocations: 114.1 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001804, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2163, allocations: 50.54 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01104/0.2274, allocations: 10.66 MB / 420.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006755/0.2341, allocations: 3.9 MB / 424.5 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.2353, allocations: 59.81 kB / 424.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003787/0.2391, allocations: 2.227 MB / 426.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003242/0.2424, allocations: 1.797 MB / 428.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.2436, allocations: 0.7019 MB / 429.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004033/0.2476, allocations: 4.312 MB / 433.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002616/0.2502, allocations: 2.889 MB / 436.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001364/0.2516, allocations: 1.46 MB / 438 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002056/0.2537, allocations: 2.083 MB / 440 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004424/0.2541, allocations: 292 kB / 440.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.2555, allocations: 0.9167 MB / 441.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001353/0.2569, allocations: 1.808 MB / 443 MB, free: 360 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00162/0.2585, allocations: 2.089 MB / 445.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005187/0.2637, allocations: 6.35 MB / 451.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2637, allocations: 0 / 451.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2638, allocations: 0 / 451.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.916e-05/0.2638, allocations: 4 kB / 451.5 MB, free: 7.875 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.006565/0.2704, allocations: 4.564 MB / 456.1 MB, free: 3.242 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2704, allocations: 12.03 kB / 456.1 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006714/0.2772, allocations: 1.91 MB / 458 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004041/0.2812, allocations: 2.249 MB / 460.2 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.2814, allocations: 221.6 kB / 460.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004636/0.2819, allocations: 303.6 kB / 460.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.2945, allocations: 9.651 MB / 470.4 MB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-05/0.2946, allocations: 47.53 kB / 470.4 MB, free: 4.023 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003303/0.2949, allocations: 147.9 kB / 470.6 MB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002614/0.2975, allocations: 1.911 MB / 472.5 MB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01255/0.3101, allocations: 7.656 MB / 480.1 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03605/0.3462, allocations: 37.6 MB / 0.5056 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006513/0.3527, allocations: 2.892 MB / 0.5084 GB, free: 492 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.354, allocations: 0.8652 MB / 0.5093 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005287/0.3593, allocations: 3.857 MB / 0.513 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.3593, allocations: 47.22 kB / 0.5131 GB, free: 11.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.496e-06/0.3593, allocations: 4 kB / 0.5131 GB, free: 11.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02062/0.38, allocations: 9.057 MB / 0.5219 GB, free: 2.285 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.38, allocations: 141.5 kB / 0.5221 GB, free: 2.117 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004963/0.385, allocations: 3.908 MB / 0.5259 GB, free: 14.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.259e-05/0.3851, allocations: 49.69 kB / 0.5259 GB, free: 14.17 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/0.3872, allocations: 3.074 MB / 0.5289 GB, free: 11.05 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004689/0.3877, allocations: 0.6096 MB / 0.5295 GB, free: 10.44 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.389, allocations: 1.163 MB / 0.5307 GB, free: 9.262 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.838e-05/0.3891, allocations: 305.3 kB / 0.531 GB, free: 8.961 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/0.3915, allocations: 1.585 MB / 0.5325 GB, free: 7.371 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004753/0.3963, allocations: 5.354 MB / 0.5377 GB, free: 124 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1825/0.5788, allocations: 7.566 MB / 0.5451 GB, free: 112.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.669e-05/0.5789, allocations: 39.31 kB / 0.5452 GB, free: 112.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009173/0.5881, allocations: 6.661 MB / 0.5517 GB, free: 110.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.944e-05/0.5881, allocations: 65.97 kB / 0.5517 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.974e-05/0.5882, allocations: 135.8 kB / 0.5519 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001145/0.5884, allocations: 174.4 kB / 0.552 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003311/0.5917, allocations: 1.389 MB / 0.5534 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001318/0.5918, allocations: 265.6 kB / 0.5536 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002951/0.5948, allocations: 285.4 kB / 0.5539 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003014/0.5951, allocations: 372.2 kB / 0.5543 GB, free: 109.8 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.001819/0.5969, allocations: 1.978 MB / 0.5562 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003123/0.5972, allocations: 338.5 kB / 0.5565 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004419/0.5977, allocations: 400.2 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.5977, allocations: 7.547 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5977, allocations: 3.469 kB / 0.5569 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004227/0.5981, allocations: 376.7 kB / 0.5573 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/0.5984, allocations: 19.88 kB / 0.5573 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009088/0.5993, allocations: 54.86 kB / 0.5573 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.5994, allocations: 75.06 kB / 0.5574 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002282/0.6017, allocations: 1.882 MB / 0.5593 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002717/0.6045, allocations: 3.03 MB / 0.5622 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006934/0.6052, allocations: 0.6862 MB / 0.5629 GB, free: 103.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002356/0.6075, allocations: 2.433 MB / 0.5653 GB, free: 101.8 MB / 462.1 MB Notification: Performance of Backend: time 4.91e-07/0.6075, allocations: 0 / 0.5653 GB, free: 101.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00439/0.6119, allocations: 3.313 MB / 0.5685 GB, free: 98.92 MB / 462.1 MB Notification: Performance of SimCode: time 0.008752/0.6207, allocations: 8.493 MB / 0.5768 GB, free: 90.72 MB / 462.1 MB Notification: Performance of Templates: time 0.04899/0.6697, allocations: 33.3 MB / 0.6093 GB, free: 57.6 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches