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.001084/0.001084, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.001072/0.001072, allocations: 191.2 kB / 16.91 MB, free: 6.188 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.271/1.271, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0416/0.0416, allocations: 9.106 MB / 299.8 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.001281, allocations: 59.91 kB / 362.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2391, allocations: 51.42 MB / 413.5 MB, free: 25.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.01914/0.2583, allocations: 28.25 MB / 441.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.2722, allocations: 6.206 MB / 448 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006327/0.2785, allocations: 99.81 kB / 448.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.28, allocations: 338.3 kB / 448.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003616/0.2836, allocations: 1.312 MB / 449.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000479/0.2841, allocations: 139.8 kB / 449.8 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003341/0.2875, allocations: 2.743 MB / 452.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.2887, allocations: 0.9836 MB / 453.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001244/0.2899, allocations: 0.9727 MB / 454.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001625/0.2916, allocations: 1.522 MB / 456.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003549/0.2919, allocations: 248 kB / 456.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001341/0.2933, allocations: 0.8582 MB / 457.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.2944, allocations: 1.336 MB / 458.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001461/0.2959, allocations: 1.724 MB / 460.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004123/0.3, allocations: 4.152 MB / 464.4 MB, free: 6.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3, allocations: 0 / 464.4 MB, free: 6.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3, allocations: 4 kB / 464.4 MB, free: 6.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001237/0.3002, allocations: 0 / 464.4 MB, free: 6.113 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.00749/0.3076, allocations: 3.598 MB / 468 MB, free: 2.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.3077, allocations: 12.03 kB / 468 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006752/0.3145, allocations: 1.833 MB / 469.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003016/0.3175, allocations: 1.413 MB / 471.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.3177, allocations: 168.4 kB / 471.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005773/0.3183, allocations: 220.1 kB / 471.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0141/0.3324, allocations: 8.67 MB / 480.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.307e-05/0.3325, allocations: 19.81 kB / 480.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003662/0.3329, allocations: 107.8 kB / 480.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0033/0.3362, allocations: 2.087 MB / 482.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01497/0.3512, allocations: 7.498 MB / 490 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03745/0.3887, allocations: 27.08 MB / 0.5049 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2041/0.5928, allocations: 2.176 MB / 0.5071 GB, free: 90.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.5944, allocations: 0.9471 MB / 0.508 GB, free: 89.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00907/0.6035, allocations: 5.553 MB / 0.5134 GB, free: 86.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.6036, allocations: 50.16 kB / 0.5135 GB, free: 86.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 4.969e-06/0.6036, allocations: 0.5312 kB / 0.5135 GB, free: 86.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01183/0.6154, allocations: 6.968 MB / 0.5203 GB, free: 83.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.6155, allocations: 59.97 kB / 0.5203 GB, free: 83.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/0.6187, allocations: 2.929 MB / 0.5232 GB, free: 82.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.05e-05/0.6188, allocations: 41.61 kB / 0.5232 GB, free: 82.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009701/0.6198, allocations: 2.365 MB / 0.5255 GB, free: 80.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.6201, allocations: 0.5091 MB / 0.526 GB, free: 79.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008162/0.6209, allocations: 0.8563 MB / 0.5269 GB, free: 78.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.921e-05/0.621, allocations: 305.1 kB / 0.5272 GB, free: 78.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/0.6226, allocations: 1.351 MB / 0.5285 GB, free: 77.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002352/0.6249, allocations: 3.795 MB / 0.5322 GB, free: 72.42 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004172/0.6291, allocations: 5.485 MB / 0.5375 GB, free: 65.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.418e-05/0.6292, allocations: 24 kB / 0.5376 GB, free: 65.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.006968/0.6362, allocations: 5.627 MB / 0.5431 GB, free: 60.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.799e-05/0.6362, allocations: 44.06 kB / 0.5431 GB, free: 59.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.041e-05/0.6363, allocations: 88 kB / 0.5432 GB, free: 59.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005844/0.6369, allocations: 368 kB / 0.5435 GB, free: 59.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002309/0.6392, allocations: 0.9162 MB / 0.5444 GB, free: 58.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004683/0.6439, allocations: 9.122 MB / 0.5533 GB, free: 48.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003111/0.6471, allocations: 223.3 kB / 0.5536 GB, free: 48.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000425/0.6475, allocations: 256 kB / 0.5538 GB, free: 48.33 MB / 382.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.002318/0.6498, allocations: 1.698 MB / 0.5555 GB, free: 46.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003958/0.6502, allocations: 236.9 kB / 0.5557 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.653, allocations: 2.254 MB / 0.5579 GB, free: 44.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001598/0.6532, allocations: 35.97 kB / 0.5579 GB, free: 44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.6532, allocations: 4 kB / 0.5579 GB, free: 44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.6532, allocations: 7.969 kB / 0.5579 GB, free: 43.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007467/0.6607, allocations: 5.782 MB / 0.5636 GB, free: 38.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.6607, allocations: 4 kB / 0.5636 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006354/0.6614, allocations: 179.7 kB / 0.5638 GB, free: 37.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003274/0.6617, allocations: 150.6 kB / 0.5639 GB, free: 37.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.656e-05/0.6618, allocations: 35.34 kB / 0.5639 GB, free: 37.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.6644, allocations: 5.192 MB / 0.569 GB, free: 32.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.6644, allocations: 12 kB / 0.569 GB, free: 32.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.6678, allocations: 3.003 MB / 0.5719 GB, free: 29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006187/0.6684, allocations: 322 kB / 0.5723 GB, free: 28.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000272/0.6687, allocations: 24 kB / 0.5723 GB, free: 28.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007858/0.6695, allocations: 63.92 kB / 0.5723 GB, free: 28.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.6696, allocations: 76.78 kB / 0.5724 GB, free: 28.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.218e-05/0.6697, allocations: 47.34 kB / 0.5725 GB, free: 28.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002188/0.6719, allocations: 1.87 MB / 0.5743 GB, free: 26.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.6719, allocations: 0 / 0.5743 GB, free: 26.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003216/0.6751, allocations: 0.7201 MB / 0.575 GB, free: 25.86 MB / 382.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.0003153/0.6755, allocations: 159.4 kB / 0.5751 GB, free: 25.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006052/0.6815, allocations: 4.582 MB / 0.5796 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.6815, allocations: 0 / 0.5796 GB, free: 21.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.6827, allocations: 1.12 MB / 0.5807 GB, free: 19.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.6846, allocations: 415.2 kB / 0.5811 GB, free: 19.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.6951, allocations: 8.915 MB / 0.5898 GB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002139/0.6973, allocations: 2.75 MB / 0.5925 GB, free: 7.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000728/0.698, allocations: 223.4 kB / 0.5927 GB, free: 7.578 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6981, allocations: 0 / 0.5927 GB, free: 7.578 MB / 382.1 MB Notification: Performance of Templates: time 0.2976/0.9956, allocations: 110.4 MB / 0.7005 GB, free: 147.7 MB / 462.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)