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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.0009194/0.0009194, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001007/0.001007, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1701/0.1701, allocations: 9.092 MB / 300.1 MB, free: 2.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003104, allocations: 11.98 kB / 363 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1025, allocations: 52.42 MB / 415.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.2137/0.3163, allocations: 24.02 MB / 439.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.3277, allocations: 6.202 MB / 445.6 MB, free: 26.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003837/0.3315, allocations: 102.6 kB / 445.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003295/0.3349, allocations: 1.15 MB / 446.9 MB, free: 26.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009172/0.344, allocations: 3.493 MB / 450.4 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009255/0.345, allocations: 148.7 kB / 450.5 MB, free: 24.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002273/0.3473, allocations: 1.543 MB / 452.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008956/0.3482, allocations: 0.8609 MB / 452.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006975/0.3489, allocations: 0.7259 MB / 453.7 MB, free: 23.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001062/0.35, allocations: 1.043 MB / 454.7 MB, free: 22.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003013/0.3503, allocations: 142.6 kB / 454.8 MB, free: 22.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001076/0.3514, allocations: 0.6566 MB / 455.5 MB, free: 22.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007809/0.3522, allocations: 1.133 MB / 456.6 MB, free: 22.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004758/0.3526, allocations: 0.6911 MB / 457.3 MB, free: 21.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003113/0.3558, allocations: 3.936 MB / 461.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3558, allocations: 0 / 461.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.3558, allocations: 0 / 461.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001397/0.3559, allocations: 6.688 kB / 461.3 MB, free: 20.71 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.006507/0.3625, allocations: 2.978 MB / 464.2 MB, free: 18.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.3625, allocations: 13.06 kB / 464.3 MB, free: 18.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008257/0.3708, allocations: 2.245 MB / 466.5 MB, free: 18.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003719/0.3746, allocations: 1.404 MB / 467.9 MB, free: 17.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.3747, allocations: 169.4 kB / 468.1 MB, free: 17.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006175/0.3753, allocations: 211 kB / 468.3 MB, free: 17.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0138/0.3891, allocations: 8.679 MB / 477 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.716e-05/0.3892, allocations: 25.94 kB / 477 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002878/0.3895, allocations: 104.7 kB / 477.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/0.3929, allocations: 2.085 MB / 479.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.4069, allocations: 7.511 MB / 486.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03319/0.4401, allocations: 27.08 MB / 0.5017 GB, free: 480 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004567/0.4448, allocations: 2.183 MB / 0.5038 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001449/0.4462, allocations: 1.66 MB / 0.5055 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.4463, allocations: 47.56 kB / 0.5055 GB, free: 12.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=146): time 3.637e-06/0.4463, allocations: 0 / 0.5055 GB, free: 12.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=158): time 0.01566/0.4619, allocations: 7.902 MB / 0.5132 GB, free: 4.078 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.462, allocations: 98.42 kB / 0.5133 GB, free: 3.965 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003896/0.4659, allocations: 2.808 MB / 0.5161 GB, free: 1.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001545/0.4661, allocations: 65.64 kB / 0.5161 GB, free: 1.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.4679, allocations: 2.287 MB / 0.5184 GB, free: 14.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005272/0.4684, allocations: 0.586 MB / 0.5189 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.4686, allocations: 80 kB / 0.519 GB, free: 14.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002775/0.4689, allocations: 0.4915 MB / 0.5195 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002232/0.4711, allocations: 1.34 MB / 0.5208 GB, free: 12.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003983/0.4751, allocations: 3.76 MB / 0.5245 GB, free: 7.242 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/0.4786, allocations: 2.231 MB / 0.5267 GB, free: 5.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.915e-05/0.4787, allocations: 27.94 kB / 0.5267 GB, free: 4.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=558) (initialization): time 0.008534/0.4872, allocations: 5.135 MB / 0.5317 GB, free: 15.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.4873, allocations: 40 kB / 0.5317 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.045e-05/0.4874, allocations: 88 kB / 0.5318 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005161/0.4879, allocations: 241.5 kB / 0.532 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002948/0.4909, allocations: 0.9514 MB / 0.533 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002161/0.493, allocations: 2.091 MB / 0.535 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/0.4958, allocations: 215.9 kB / 0.5352 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000374/0.4962, allocations: 260 kB / 0.5355 GB, free: 11.83 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 391 * 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 (523): * Single equations (assignments): 517 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002817/0.499, allocations: 1.702 MB / 0.5371 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003553/0.4993, allocations: 240.9 kB / 0.5374 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003391/0.5027, allocations: 2.1 MB / 0.5394 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001802/0.5029, allocations: 43.97 kB / 0.5395 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.5029, allocations: 0 / 0.5395 GB, free: 7.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.503, allocations: 11.97 kB / 0.5395 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.5133, allocations: 6.442 MB / 0.5458 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.5133, allocations: 9.25 kB / 0.5458 GB, free: 1.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000875/0.5142, allocations: 223.6 kB / 0.546 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003429/0.5146, allocations: 112.8 kB / 0.5461 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.091e-05/0.5147, allocations: 35.94 kB / 0.5461 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.5164, allocations: 1.795 MB / 0.5479 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.017e-06/0.5164, allocations: 11.94 kB / 0.5479 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00486/0.5213, allocations: 3.781 MB / 0.5516 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.5223, allocations: 341.8 kB / 0.5519 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000331/0.5227, allocations: 31.95 kB / 0.5519 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009821/0.5237, allocations: 71.98 kB / 0.552 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.5238, allocations: 100.8 kB / 0.5521 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-05/0.5239, allocations: 55.98 kB / 0.5522 GB, free: 10.04 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003055/0.527, allocations: 1.811 MB / 0.5539 GB, free: 8.219 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.527, allocations: 0 / 0.5539 GB, free: 8.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003565/0.5306, allocations: 0.7148 MB / 0.5546 GB, free: 7.504 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (127): * Single equations (assignments): 121 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003813/0.531, allocations: 171.4 kB / 0.5548 GB, free: 7.328 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005894/0.5369, allocations: 3.257 MB / 0.558 GB, free: 4.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/0.5369, allocations: 4 kB / 0.558 GB, free: 4.086 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001615/0.5386, allocations: 0.9909 MB / 0.5589 GB, free: 3.082 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/0.5407, allocations: 386.9 kB / 0.5593 GB, free: 2.715 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01432/0.5551, allocations: 8.366 MB / 0.5675 GB, free: 10.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00345/0.5586, allocations: 2.811 MB / 0.5702 GB, free: 7.387 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003421/0.562, allocations: 1.277 MB / 0.5715 GB, free: 6.105 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005/0.5625, allocations: 191.4 kB / 0.5716 GB, free: 5.918 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5625, allocations: 0 / 0.5716 GB, free: 5.918 MB / 446.1 MB Notification: Performance of Templates: time 0.2103/0.7728, allocations: 24.26 MB / 0.5953 GB, free: 117 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)