Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) 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(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") translateModel(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008534/0.0008534, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00542/0.00542, allocations: 170 kB / 16.27 MB, free: 6.652 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.386/1.386, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1603/0.1603, allocations: 9.114 MB / 300.5 MB, free: 2.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003516, allocations: 8 kB / 363.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1076, allocations: 52.43 MB / 416.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.2197/0.3273, allocations: 27.37 MB / 443.5 MB, free: 26.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.3451, allocations: 6.193 MB / 449.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009083/0.3543, allocations: 103.2 kB / 449.8 MB, free: 23.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00163/0.3559, allocations: 329.7 kB / 450.1 MB, free: 23.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005347/0.3613, allocations: 1.331 MB / 451.5 MB, free: 23.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008157/0.3621, allocations: 138.9 kB / 451.6 MB, free: 23.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00566/0.3678, allocations: 3.786 MB / 455.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.3695, allocations: 0.8599 MB / 456.2 MB, free: 21.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.3711, allocations: 0.8107 MB / 457.1 MB, free: 21.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002292/0.3734, allocations: 1.413 MB / 458.5 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005019/0.3739, allocations: 141.1 kB / 458.6 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.3759, allocations: 0.7627 MB / 459.4 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001396/0.3773, allocations: 1.262 MB / 460.6 MB, free: 20.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001817/0.3791, allocations: 1.629 MB / 462.3 MB, free: 18.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005574/0.3847, allocations: 4.841 MB / 467.1 MB, free: 17.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3848, allocations: 3.75 kB / 467.1 MB, free: 17.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3848, allocations: 0 / 467.1 MB, free: 17.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001231/0.3849, allocations: 0 / 467.1 MB, free: 17.32 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.00854/0.3935, allocations: 2.932 MB / 470 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.3935, allocations: 10 kB / 470 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01288/0.4064, allocations: 1.879 MB / 471.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004111/0.4106, allocations: 1.419 MB / 473.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.4108, allocations: 164.4 kB / 473.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006285/0.4115, allocations: 212 kB / 473.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.4247, allocations: 8.676 MB / 482.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.867e-05/0.4248, allocations: 29.78 kB / 482.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002927/0.4251, allocations: 99.31 kB / 482.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003757/0.4289, allocations: 2.089 MB / 484.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01601/0.4449, allocations: 7.504 MB / 492.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.038/0.483, allocations: 27.09 MB / 0.507 GB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004789/0.4878, allocations: 2.172 MB / 0.5092 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001681/0.4895, allocations: 0.9586 MB / 0.5101 GB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009398/0.4989, allocations: 5.565 MB / 0.5155 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.853e-05/0.499, allocations: 43.56 kB / 0.5156 GB, free: 2.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 4.759e-06/0.499, allocations: 0 / 0.5156 GB, free: 2.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01408/0.5131, allocations: 6.967 MB / 0.5224 GB, free: 11.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.5132, allocations: 68.41 kB / 0.5224 GB, free: 11.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004405/0.5176, allocations: 2.927 MB / 0.5253 GB, free: 8.172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.5177, allocations: 41.7 kB / 0.5253 GB, free: 8.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001576/0.5193, allocations: 2.356 MB / 0.5276 GB, free: 5.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004696/0.5198, allocations: 0.5129 MB / 0.5281 GB, free: 5.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/0.5202, allocations: 355 kB / 0.5285 GB, free: 4.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5204, allocations: 301.1 kB / 0.5288 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/0.5226, allocations: 1.355 MB / 0.5301 GB, free: 3.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003884/0.5265, allocations: 3.795 MB / 0.5338 GB, free: 14.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007378/0.5339, allocations: 5.501 MB / 0.5392 GB, free: 7.465 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.449e-05/0.534, allocations: 24 kB / 0.5392 GB, free: 7.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.01068/0.5447, allocations: 5.62 MB / 0.5447 GB, free: 1.727 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.151e-05/0.5448, allocations: 40.19 kB / 0.5447 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/0.5449, allocations: 95.94 kB / 0.5448 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007893/0.5457, allocations: 368.4 kB / 0.5452 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003031/0.5488, allocations: 0.9162 MB / 0.546 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006925/0.5557, allocations: 8.267 MB / 0.5541 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003173/0.5589, allocations: 219.8 kB / 0.5543 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004396/0.5594, allocations: 256 kB / 0.5546 GB, free: 6.898 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,10,66.7%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002913/0.5623, allocations: 1.714 MB / 0.5562 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00035/0.5627, allocations: 232.9 kB / 0.5565 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003878/0.5666, allocations: 2.255 MB / 0.5587 GB, free: 2.586 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001897/0.5668, allocations: 35.97 kB / 0.5587 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.791e-05/0.5668, allocations: 4 kB / 0.5587 GB, free: 2.547 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.5668, allocations: 7.969 kB / 0.5587 GB, free: 2.539 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.5769, allocations: 5.781 MB / 0.5644 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.056e-06/0.577, allocations: 8.094 kB / 0.5644 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007227/0.5777, allocations: 179.7 kB / 0.5645 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004317/0.5781, allocations: 146.4 kB / 0.5647 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-05/0.5782, allocations: 27.98 kB / 0.5647 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003713/0.5819, allocations: 4.682 MB / 0.5693 GB, free: 7.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.308e-05/0.582, allocations: 8.031 kB / 0.5693 GB, free: 7.152 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004588/0.5866, allocations: 3.008 MB / 0.5722 GB, free: 4.035 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000917/0.5875, allocations: 333.8 kB / 0.5725 GB, free: 3.688 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000309/0.5878, allocations: 32.06 kB / 0.5726 GB, free: 3.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008848/0.5887, allocations: 63.98 kB / 0.5726 GB, free: 3.594 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.5889, allocations: 80.78 kB / 0.5727 GB, free: 3.516 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.304e-05/0.589, allocations: 39.98 kB / 0.5728 GB, free: 3.477 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002989/0.592, allocations: 1.874 MB / 0.5746 GB, free: 1.594 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.31e-07/0.592, allocations: 0 / 0.5746 GB, free: 1.594 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003582/0.5956, allocations: 0.715 MB / 0.5753 GB, free: 0.8789 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.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 (103): * Single equations (assignments): 95 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003296/0.5959, allocations: 156.9 kB / 0.5754 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2024/0.7984, allocations: 3.686 MB / 0.579 GB, free: 103.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/0.7984, allocations: 2.156 kB / 0.579 GB, free: 103.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.7998, allocations: 1.128 MB / 0.5801 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/0.803, allocations: 378.6 kB / 0.5805 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.8146, allocations: 8.591 MB / 0.5889 GB, free: 99.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002564/0.8172, allocations: 2.749 MB / 0.5916 GB, free: 98.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00287/0.8201, allocations: 1.211 MB / 0.5928 GB, free: 98.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/0.8205, allocations: 184 kB / 0.5929 GB, free: 98.5 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8205, allocations: 0 / 0.5929 GB, free: 98.5 MB / 446.1 MB Notification: Performance of Templates: time 0.05623/0.8767, allocations: 25.28 MB / 0.6176 GB, free: 92.82 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)