Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001087/0.001087, allocations: 98.17 kB / 18.4 MB, free: 4.68 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.001526/0.001526, allocations: 185.5 kB / 19.34 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 55.92 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07313/0.0744, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1615/0.236, allocations: 10.74 MB / 386.6 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006764/0.2428, allocations: 3.876 MB / 390.5 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.2444, allocations: 63.41 kB / 390.5 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004028/0.2484, allocations: 2.232 MB / 392.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00427/0.2527, allocations: 1.839 MB / 394.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.2541, allocations: 0.7149 MB / 395.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004951/0.2591, allocations: 4.264 MB / 399.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002654/0.2618, allocations: 2.923 MB / 402.5 MB, free: 76 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001983/0.2638, allocations: 1.489 MB / 404 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002351/0.2661, allocations: 2.09 MB / 406.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005039/0.2666, allocations: 297.4 kB / 406.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.2684, allocations: 0.9328 MB / 407.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001529/0.2699, allocations: 1.83 MB / 409.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001833/0.2718, allocations: 2.103 MB / 411.2 MB, free: 11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00591/0.2777, allocations: 6.429 MB / 417.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2777, allocations: 0 / 417.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2777, allocations: 0 / 417.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.545e-05/0.2778, allocations: 0 / 417.7 MB, free: 5.664 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.007299/0.2851, allocations: 4.619 MB / 422.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.2851, allocations: 15.89 kB / 422.3 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00685/0.292, allocations: 1.914 MB / 424.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004007/0.296, allocations: 2.391 MB / 426.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.2962, allocations: 233.6 kB / 426.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004685/0.2967, allocations: 295.8 kB / 427.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01372/0.3104, allocations: 9.631 MB / 436.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.3105, allocations: 51.59 kB / 436.8 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000428/0.311, allocations: 139.9 kB / 436.9 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002755/0.3137, allocations: 1.924 MB / 438.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01399/0.3277, allocations: 7.633 MB / 446.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04251/0.3703, allocations: 37.6 MB / 484.1 MB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006792/0.3771, allocations: 2.887 MB / 487 MB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.3785, allocations: 0.8702 MB / 487.8 MB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005892/0.3844, allocations: 3.759 MB / 491.6 MB, free: 9.262 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.3845, allocations: 51.16 kB / 491.7 MB, free: 9.199 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.987e-06/0.3845, allocations: 0 / 491.7 MB, free: 9.199 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02213/0.4066, allocations: 9.062 MB / 0.489 GB, free: 16 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.743e-05/0.4067, allocations: 149.5 kB / 0.4891 GB, free: 15.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006093/0.4128, allocations: 3.94 MB / 0.493 GB, free: 11.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.452e-05/0.4129, allocations: 49.64 kB / 0.493 GB, free: 11.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002274/0.4152, allocations: 3.082 MB / 0.496 GB, free: 8.734 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000541/0.4158, allocations: 0.6096 MB / 0.4966 GB, free: 8.117 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001668/0.4174, allocations: 1.163 MB / 0.4978 GB, free: 6.941 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.4175, allocations: 309.1 kB / 0.4981 GB, free: 6.637 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002544/0.4201, allocations: 1.577 MB / 0.4996 GB, free: 5.055 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005075/0.4252, allocations: 5.358 MB / 0.5048 GB, free: 13.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008196/0.4334, allocations: 7.549 MB / 0.5122 GB, free: 4.367 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.165e-05/0.4335, allocations: 40 kB / 0.5122 GB, free: 4.328 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0106/0.4441, allocations: 6.659 MB / 0.5187 GB, free: 13.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.236e-05/0.4442, allocations: 60 kB / 0.5188 GB, free: 13.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001584/0.4444, allocations: 140.8 kB / 0.5189 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.4446, allocations: 176 kB / 0.5191 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003911/0.4485, allocations: 1.392 MB / 0.5205 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002066/0.4487, allocations: 259 kB / 0.5207 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/0.4522, allocations: 279.7 kB / 0.521 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004348/0.4526, allocations: 368 kB / 0.5213 GB, free: 11.01 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.002622/0.4552, allocations: 1.982 MB / 0.5233 GB, free: 9.012 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005727/0.4558, allocations: 343.6 kB / 0.5236 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/0.4579, allocations: 1.242 MB / 0.5248 GB, free: 7.418 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.4579, allocations: 7.969 kB / 0.5248 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.4579, allocations: 8 kB / 0.5248 GB, free: 7.402 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.459, allocations: 0.4966 MB / 0.5253 GB, free: 6.883 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004528/0.4595, allocations: 20 kB / 0.5253 GB, free: 6.863 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.4606, allocations: 51.89 kB / 0.5254 GB, free: 6.812 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.4608, allocations: 72.84 kB / 0.5254 GB, free: 6.738 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002982/0.4637, allocations: 1.873 MB / 0.5273 GB, free: 4.863 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003721/0.4675, allocations: 3.017 MB / 0.5302 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009223/0.4684, allocations: 0.6875 MB / 0.5309 GB, free: 1.137 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004144/0.4726, allocations: 2.45 MB / 0.5333 GB, free: 14.71 MB / 478.1 MB Notification: Performance of Backend: time 4.01e-07/0.4726, allocations: 0 / 0.5333 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006803/0.4794, allocations: 3.317 MB / 0.5365 GB, free: 11.41 MB / 478.1 MB Notification: Performance of SimCode: time 0.01385/0.4933, allocations: 8.536 MB / 0.5449 GB, free: 2.824 MB / 478.1 MB Notification: Performance of Templates: time 0.2269/0.7202, allocations: 33.57 MB / 0.5776 GB, free: 140.1 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches