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.001488/0.001488, allocations: 106.3 kB / 16.37 MB, free: 6.426 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.00164/0.00164, allocations: 197.3 kB / 17.31 MB, free: 5.801 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04585/0.04585, allocations: 9.115 MB / 300.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 59.91 kB / 363.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2343, allocations: 51.42 MB / 414.8 MB, free: 25.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.008064/0.2424, allocations: 9.549 MB / 424.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005189/0.2477, allocations: 2.742 MB / 427.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.2492, allocations: 35.94 kB / 427.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.2503, allocations: 401.3 kB / 427.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003316/0.2538, allocations: 1.419 MB / 428.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000616/0.2544, allocations: 171.6 kB / 429.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002882/0.2573, allocations: 2.73 MB / 431.8 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.2586, allocations: 0.9525 MB / 432.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.2601, allocations: 0.9765 MB / 433.8 MB, free: 6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001647/0.2617, allocations: 1.393 MB / 435.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003612/0.2621, allocations: 248 kB / 435.4 MB, free: 4.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001161/0.2633, allocations: 0.8388 MB / 436.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007564/0.264, allocations: 1.332 MB / 437.6 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.2651, allocations: 1.716 MB / 439.3 MB, free: 468 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005087/0.2702, allocations: 5.364 MB / 444.7 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.2702, allocations: 0 / 444.7 MB, free: 11.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2702, allocations: 0 / 444.7 MB, free: 11.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.2703, allocations: 0 / 444.7 MB, free: 11.07 MB / 318.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.006666/0.277, allocations: 3.594 MB / 448.2 MB, free: 7.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.2771, allocations: 12.03 kB / 448.3 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006482/0.2835, allocations: 1.829 MB / 450.1 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/0.2865, allocations: 1.429 MB / 451.5 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.2867, allocations: 164.4 kB / 451.7 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003852/0.2871, allocations: 212.2 kB / 451.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.2987, allocations: 8.678 MB / 460.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.269e-05/0.2988, allocations: 27.7 kB / 460.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002669/0.2991, allocations: 103.8 kB / 460.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003059/0.3021, allocations: 2.091 MB / 462.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01371/0.3158, allocations: 7.498 MB / 470.3 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04185/0.3577, allocations: 26.96 MB / 497.2 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005321/0.3631, allocations: 2.179 MB / 499.4 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001912/0.3651, allocations: 0.951 MB / 0.4886 GB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01125/0.3763, allocations: 5.552 MB / 0.4941 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.294e-05/0.3764, allocations: 43.56 kB / 0.4941 GB, free: 12.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 5.069e-06/0.3764, allocations: 0 / 0.4941 GB, free: 12.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01444/0.3909, allocations: 6.967 MB / 0.5009 GB, free: 4.914 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.3909, allocations: 64.41 kB / 0.501 GB, free: 4.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/0.3959, allocations: 2.92 MB / 0.5038 GB, free: 1.898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.396, allocations: 49.69 kB / 0.5039 GB, free: 1.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2557/0.6517, allocations: 2.351 MB / 0.5062 GB, free: 88.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008287/0.6526, allocations: 0.5192 MB / 0.5067 GB, free: 88.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002581/0.6552, allocations: 0.8469 MB / 0.5075 GB, free: 88.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.297e-05/0.6553, allocations: 303.5 kB / 0.5078 GB, free: 88.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003838/0.6591, allocations: 1.35 MB / 0.5091 GB, free: 87.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00488/0.664, allocations: 3.801 MB / 0.5128 GB, free: 84.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008535/0.6726, allocations: 5.497 MB / 0.5182 GB, free: 79.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.598e-05/0.6727, allocations: 23.59 kB / 0.5182 GB, free: 79.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.01125/0.6839, allocations: 5.615 MB / 0.5237 GB, free: 76.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.774e-05/0.684, allocations: 42.44 kB / 0.5237 GB, free: 76.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.523e-05/0.6841, allocations: 85.88 kB / 0.5238 GB, free: 76.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007385/0.6849, allocations: 367.6 kB / 0.5242 GB, free: 76.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/0.6877, allocations: 0.9217 MB / 0.5251 GB, free: 76.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004768/0.6925, allocations: 9.109 MB / 0.534 GB, free: 68.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002923/0.6954, allocations: 230.3 kB / 0.5342 GB, free: 67.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003076/0.6957, allocations: 259.3 kB / 0.5344 GB, free: 67.59 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.00195/0.6977, allocations: 1.692 MB / 0.5361 GB, free: 66.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003184/0.698, allocations: 244.8 kB / 0.5363 GB, free: 65.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/0.7009, allocations: 2.246 MB / 0.5385 GB, free: 63.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001557/0.7011, allocations: 39.53 kB / 0.5386 GB, free: 63.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.537e-06/0.7011, allocations: 7.938 kB / 0.5386 GB, free: 63.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.7011, allocations: 3.844 kB / 0.5386 GB, free: 63.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00755/0.7087, allocations: 5.758 MB / 0.5442 GB, free: 58.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.7087, allocations: 4 kB / 0.5442 GB, free: 58.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006227/0.7093, allocations: 175.7 kB / 0.5444 GB, free: 58.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003158/0.7097, allocations: 150.6 kB / 0.5445 GB, free: 57.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.819e-05/0.7097, allocations: 31.98 kB / 0.5445 GB, free: 57.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002596/0.7123, allocations: 5.205 MB / 0.5496 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.7124, allocations: 4 kB / 0.5496 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003489/0.7159, allocations: 3.004 MB / 0.5526 GB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006265/0.7165, allocations: 318 kB / 0.5529 GB, free: 48.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003538/0.7169, allocations: 23.98 kB / 0.5529 GB, free: 48.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008387/0.7177, allocations: 64 kB / 0.5529 GB, free: 48.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.7178, allocations: 76.78 kB / 0.553 GB, free: 48.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.037e-05/0.7179, allocations: 43.98 kB / 0.5531 GB, free: 48.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002221/0.7201, allocations: 1.87 MB / 0.5549 GB, free: 46.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7201, allocations: 0 / 0.5549 GB, free: 46.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00311/0.7233, allocations: 0.7354 MB / 0.5556 GB, free: 46 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.0003124/0.7236, allocations: 158.2 kB / 0.5558 GB, free: 45.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00444/0.728, allocations: 3.705 MB / 0.5594 GB, free: 42.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.728, allocations: 8.125 kB / 0.5594 GB, free: 42.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.7292, allocations: 1.114 MB / 0.5605 GB, free: 40.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.7308, allocations: 418.4 kB / 0.5609 GB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009424/0.7402, allocations: 6.757 MB / 0.5675 GB, free: 33.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003237/0.7435, allocations: 2.742 MB / 0.5701 GB, free: 30.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002717/0.7462, allocations: 1.213 MB / 0.5713 GB, free: 29.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005687/0.7468, allocations: 179.4 kB / 0.5715 GB, free: 29.58 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.7468, allocations: 0 / 0.5715 GB, free: 29.58 MB / 382.1 MB Notification: Performance of Templates: time 0.04127/0.7881, allocations: 22.42 MB / 0.5934 GB, free: 7.402 MB / 382.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)