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.001902/0.001902, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001803/0.001803, allocations: 188.9 kB / 17.34 MB, free: 5.695 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0446/0.0446, allocations: 9.11 MB / 300.3 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.91 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.09033, allocations: 51.44 MB / 466.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.0108/0.1012, allocations: 9.534 MB / 476.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005868/0.1071, allocations: 2.748 MB / 479 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.1086, allocations: 39.94 kB / 479.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.1099, allocations: 393.3 kB / 479.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003647/0.1135, allocations: 1.42 MB / 480.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006662/0.1142, allocations: 171.7 kB / 481 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00359/0.1178, allocations: 2.72 MB / 483.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.1194, allocations: 0.9524 MB / 484.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001624/0.121, allocations: 0.9804 MB / 485.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002086/0.1231, allocations: 1.397 MB / 487.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006891/0.1238, allocations: 248 kB / 487.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001853/0.1257, allocations: 0.8426 MB / 488.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001492/0.1272, allocations: 1.336 MB / 489.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002409/0.1296, allocations: 1.705 MB / 491.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005997/0.1356, allocations: 5.383 MB / 496.6 MB, free: 3.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.1357, allocations: 4 kB / 496.6 MB, free: 3.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.584e-06/0.1357, allocations: 0 / 496.6 MB, free: 3.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001314/0.1358, allocations: 0 / 496.6 MB, free: 3.66 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.007232/0.143, allocations: 3.591 MB / 0.4885 GB, free: 4 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.1431, allocations: 12.08 kB / 0.4885 GB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006684/0.1498, allocations: 1.829 MB / 0.4903 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003258/0.1531, allocations: 1.425 MB / 0.4917 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.1533, allocations: 164.4 kB / 0.4918 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005154/0.1538, allocations: 216.2 kB / 0.492 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/0.1663, allocations: 8.682 MB / 0.5005 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.372e-05/0.1664, allocations: 23.72 kB / 0.5005 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003063/0.1667, allocations: 107.8 kB / 0.5006 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003198/0.1699, allocations: 2.087 MB / 0.5027 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2362/0.4061, allocations: 7.5 MB / 0.51 GB, free: 38.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03287/0.4391, allocations: 26.95 MB / 0.5363 GB, free: 19.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003859/0.443, allocations: 2.179 MB / 0.5384 GB, free: 18.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.4443, allocations: 0.9489 MB / 0.5394 GB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007618/0.4519, allocations: 5.558 MB / 0.5448 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.452, allocations: 47.56 kB / 0.5448 GB, free: 12.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 4.779e-06/0.452, allocations: 3.938 kB / 0.5448 GB, free: 12.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01178/0.4638, allocations: 6.969 MB / 0.5516 GB, free: 5.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.4638, allocations: 64.34 kB / 0.5517 GB, free: 5.266 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003208/0.467, allocations: 2.927 MB / 0.5546 GB, free: 2.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.4672, allocations: 41.7 kB / 0.5546 GB, free: 2.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009407/0.4681, allocations: 2.354 MB / 0.5569 GB, free: 15.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004425/0.4686, allocations: 0.5164 MB / 0.5574 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/0.4696, allocations: 0.8522 MB / 0.5582 GB, free: 14.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.4697, allocations: 301.1 kB / 0.5585 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002098/0.4718, allocations: 1.351 MB / 0.5598 GB, free: 12.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003716/0.4756, allocations: 3.795 MB / 0.5635 GB, free: 7.867 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006241/0.4818, allocations: 5.497 MB / 0.5689 GB, free: 1.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.953e-05/0.4819, allocations: 28 kB / 0.5689 GB, free: 1.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.008807/0.4907, allocations: 5.627 MB / 0.5744 GB, free: 11.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/0.4908, allocations: 40 kB / 0.5745 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.087e-05/0.4909, allocations: 91.38 kB / 0.5746 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007256/0.4916, allocations: 370.8 kB / 0.5749 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002695/0.4943, allocations: 0.9202 MB / 0.5758 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006977/0.5013, allocations: 9.105 MB / 0.5847 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/0.5045, allocations: 223.9 kB / 0.5849 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006128/0.5051, allocations: 253.1 kB / 0.5852 GB, free: 15.77 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.002719/0.5078, allocations: 1.705 MB / 0.5868 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003798/0.5082, allocations: 240.8 kB / 0.5871 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003375/0.5116, allocations: 2.24 MB / 0.5892 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001823/0.5118, allocations: 43.95 kB / 0.5893 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.5118, allocations: 4 kB / 0.5893 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.5118, allocations: 7.984 kB / 0.5893 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009599/0.5214, allocations: 5.763 MB / 0.5949 GB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.5215, allocations: 4 kB / 0.5949 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007137/0.5222, allocations: 179.7 kB / 0.5951 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003806/0.5226, allocations: 146.4 kB / 0.5952 GB, free: 5.207 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.706e-05/0.5227, allocations: 31.92 kB / 0.5953 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003859/0.5266, allocations: 5.192 MB / 0.6003 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5266, allocations: 4 kB / 0.6003 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004243/0.5308, allocations: 3.004 MB / 0.6033 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007174/0.5316, allocations: 318 kB / 0.6036 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002714/0.5318, allocations: 20 kB / 0.6036 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008482/0.5327, allocations: 67.94 kB / 0.6037 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.5329, allocations: 84.8 kB / 0.6037 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.234e-05/0.533, allocations: 40 kB / 0.6038 GB, free: 11.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002745/0.5357, allocations: 1.866 MB / 0.6056 GB, free: 10.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5357, allocations: 0 / 0.6056 GB, free: 10.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003567/0.5393, allocations: 0.7317 MB / 0.6063 GB, free: 9.324 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.0003735/0.5397, allocations: 159.4 kB / 0.6065 GB, free: 9.164 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005849/0.5455, allocations: 3.707 MB / 0.6101 GB, free: 5.414 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.5456, allocations: 0 / 0.6101 GB, free: 5.414 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.5472, allocations: 1.127 MB / 0.6112 GB, free: 4.254 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.5492, allocations: 408.1 kB / 0.6116 GB, free: 3.867 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.5609, allocations: 7.169 MB / 0.6186 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00284/0.5637, allocations: 2.757 MB / 0.6213 GB, free: 9.855 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00072/0.5645, allocations: 223.4 kB / 0.6215 GB, free: 9.637 MB / 462.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5645, allocations: 0 / 0.6215 GB, free: 9.637 MB / 462.1 MB Notification: Performance of Templates: time 0.3722/0.9367, allocations: 110.8 MB / 0.7297 GB, free: 179.2 MB / 0.5294 GB 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)