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.0008453/0.0008452, allocations: 100.9 kB / 16.65 MB, free: 6.254 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.0009443/0.0009444, allocations: 180.4 kB / 17.57 MB, free: 5.844 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.342/1.342, allocations: 223.2 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 13.72 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09974/0.1001, allocations: 50.41 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.202/0.302, allocations: 37.58 MB / 389.4 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01641/0.3185, allocations: 8.42 MB / 397.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006507/0.325, allocations: 165.2 kB / 398 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001338/0.3264, allocations: 414.9 kB / 398.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004919/0.3313, allocations: 1.722 MB / 400.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002/0.3333, allocations: 0.6576 MB / 400.8 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007508/0.3409, allocations: 5.86 MB / 406.6 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004973/0.3459, allocations: 3.701 MB / 410.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.348, allocations: 1.155 MB / 411.5 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002998/0.351, allocations: 2.013 MB / 413.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000519/0.3516, allocations: 144 kB / 413.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001853/0.3534, allocations: 0.8424 MB / 414.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001581/0.355, allocations: 1.671 MB / 416.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001951/0.357, allocations: 1.946 MB / 418.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005837/0.3628, allocations: 5.953 MB / 424.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3629, allocations: 4 kB / 424.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3629, allocations: 3.938 kB / 424.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001258/0.363, allocations: 0 / 424.1 MB, free: 12.06 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.006734/0.3698, allocations: 3.797 MB / 427.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.3698, allocations: 8.031 kB / 427.9 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007679/0.3775, allocations: 1.972 MB / 429.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004772/0.3823, allocations: 2.246 MB / 432.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.3826, allocations: 229.6 kB / 432.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008418/0.3834, allocations: 295.8 kB / 432.6 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0184/0.4018, allocations: 9.659 MB / 442.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002164/0.4021, allocations: 47.53 kB / 442.3 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001013/0.4031, allocations: 151.8 kB / 442.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003368/0.4065, allocations: 1.907 MB / 444.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01872/0.4253, allocations: 7.649 MB / 452 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05069/0.476, allocations: 37.75 MB / 489.8 MB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00794/0.484, allocations: 2.898 MB / 492.7 MB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001902/0.486, allocations: 0.8734 MB / 493.5 MB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008126/0.4942, allocations: 3.774 MB / 497.3 MB, free: 372 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.4943, allocations: 47.22 kB / 497.4 MB, free: 316 kB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 5.03e-06/0.4943, allocations: 0 / 497.4 MB, free: 316 kB / 398.1 MB Notification: Performance of matching and sorting (n=152): time 0.02601/0.5203, allocations: 9.04 MB / 0.4945 GB, free: 7.148 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.665e-05/0.5204, allocations: 141.5 kB / 0.4947 GB, free: 6.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008352/0.5288, allocations: 3.924 MB / 0.4985 GB, free: 3.074 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003021/0.5291, allocations: 45.7 kB / 0.4985 GB, free: 3.023 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003223/0.5324, allocations: 3.078 MB / 0.5015 GB, free: 15.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/0.5334, allocations: 0.6019 MB / 0.5021 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/0.5346, allocations: 0.4951 MB / 0.5026 GB, free: 14.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.5347, allocations: 309.1 kB / 0.5029 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003468/0.5382, allocations: 1.581 MB / 0.5045 GB, free: 12.9 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005678/0.5439, allocations: 5.354 MB / 0.5097 GB, free: 5.648 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009035/0.553, allocations: 7.546 MB / 0.5171 GB, free: 12.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001321/0.5531, allocations: 36 kB / 0.5171 GB, free: 12.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01392/0.5671, allocations: 6.665 MB / 0.5236 GB, free: 5.516 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001842/0.5673, allocations: 64 kB / 0.5237 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002554/0.5675, allocations: 132.1 kB / 0.5238 GB, free: 5.324 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/0.5679, allocations: 180 kB / 0.524 GB, free: 5.148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004717/0.5726, allocations: 1.388 MB / 0.5253 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002656/0.5729, allocations: 263 kB / 0.5256 GB, free: 3.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004576/0.5775, allocations: 283.6 kB / 0.5258 GB, free: 3.223 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009033/0.5784, allocations: 372 kB / 0.5262 GB, free: 2.859 MB / 446.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.003853/0.5823, allocations: 1.974 MB / 0.5281 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006926/0.583, allocations: 335.6 kB / 0.5284 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2123/0.7953, allocations: 1.244 MB / 0.5296 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-05/0.7954, allocations: 16.97 kB / 0.5297 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.7954, allocations: 2.094 kB / 0.5297 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/0.7954, allocations: 6.391 kB / 0.5297 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.8057, allocations: 5.746 MB / 0.5353 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.111e-05/0.8058, allocations: 19.48 kB / 0.5353 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.8068, allocations: 277.1 kB / 0.5356 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.812e-05/0.8069, allocations: 25.19 kB / 0.5356 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.401e-05/0.807, allocations: 48.22 kB / 0.5356 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.204e-05/0.807, allocations: 44.05 kB / 0.5357 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-05/0.807, allocations: 28.69 kB / 0.5357 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.8107, allocations: 3.225 MB / 0.5389 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.8119, allocations: 411.3 kB / 0.5392 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003928/0.8123, allocations: 52.52 kB / 0.5393 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.8136, allocations: 65.14 kB / 0.5394 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.8138, allocations: 149.3 kB / 0.5395 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.814, allocations: 71.34 kB / 0.5396 GB, free: 143.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005854/0.8198, allocations: 2.438 MB / 0.542 GB, free: 142.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.32e-07/0.8199, allocations: 1.281 kB / 0.542 GB, free: 142.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005962/0.8259, allocations: 0.8629 MB / 0.5428 GB, free: 142.6 MB / 446.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.0004839/0.8264, allocations: 206.2 kB / 0.543 GB, free: 142.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007905/0.8343, allocations: 3.638 MB / 0.5465 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.801e-05/0.8344, allocations: 2.375 kB / 0.5465 GB, free: 141.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.8357, allocations: 0.7368 MB / 0.5473 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01199/0.8477, allocations: 445.4 kB / 0.5477 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.8603, allocations: 10.59 MB / 0.558 GB, free: 134.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002745/0.8631, allocations: 3.095 MB / 0.5611 GB, free: 133.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004061/0.8672, allocations: 1.765 MB / 0.5628 GB, free: 132.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004991/0.8677, allocations: 234.9 kB / 0.563 GB, free: 132.5 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.8677, allocations: 0 / 0.563 GB, free: 132.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04981/0.9175, allocations: 25.99 MB / 0.5884 GB, free: 107 MB / 446.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