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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009321/0.0009322, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.156/1.156, allocations: 221.4 MB / 234.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007655/0.0007655, allocations: 98.81 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03769/0.03769, allocations: 8.84 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.125e-05/2.126e-05, allocations: 4 kB / 405.6 MB, free: 61.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07315/0.07319, allocations: 52.38 MB / 457.9 MB, free: 9.066 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2841/0.3573, allocations: 90.39 MB / 0.5355 GB, free: 11.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/0.3575, allocations: 81.52 kB / 0.5356 GB, free: 11.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1625/0.52, allocations: 68.63 MB / 0.6026 GB, free: 12.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.5201, allocations: 0 / 0.6026 GB, free: 12.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.759e-05/0.5202, allocations: 56 kB / 0.6026 GB, free: 12.77 MB / 426.7 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.006807/0.527, allocations: 2.999 MB / 0.6056 GB, free: 9.707 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.527, allocations: 8.031 kB / 0.6056 GB, free: 9.699 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008772/0.5358, allocations: 2.011 MB / 0.6075 GB, free: 7.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003918/0.5398, allocations: 1.825 MB / 0.6093 GB, free: 5.809 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/0.54, allocations: 258.5 kB / 0.6096 GB, free: 5.555 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009096/0.5409, allocations: 331.8 kB / 0.6099 GB, free: 5.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.554, allocations: 8.104 MB / 0.6178 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-05/0.5541, allocations: 19.81 kB / 0.6178 GB, free: 12.69 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004383/0.5546, allocations: 151.9 kB / 0.618 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0013/0.5559, allocations: 0.9668 MB / 0.6189 GB, free: 11.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/0.5689, allocations: 7.269 MB / 0.626 GB, free: 4.293 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2457/0.8146, allocations: 26.91 MB / 0.6523 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003865/0.8186, allocations: 2.11 MB / 0.6543 GB, free: 104.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.8199, allocations: 0.8958 MB / 0.6552 GB, free: 104.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008076/0.828, allocations: 5.504 MB / 0.6606 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.828, allocations: 44.67 kB / 0.6606 GB, free: 101.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 3.647e-06/0.828, allocations: 0 / 0.6606 GB, free: 101.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=135): time 0.01042/0.8385, allocations: 6.072 MB / 0.6666 GB, free: 100.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.8385, allocations: 66.22 kB / 0.6666 GB, free: 100.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/0.8419, allocations: 2.56 MB / 0.6691 GB, free: 99.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.939e-05/0.842, allocations: 43.05 kB / 0.6692 GB, free: 99.94 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008999/0.8429, allocations: 2.348 MB / 0.6715 GB, free: 98.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/0.8432, allocations: 0.5133 MB / 0.672 GB, free: 98.41 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.8434, allocations: 81.59 kB / 0.672 GB, free: 98.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.8436, allocations: 491 kB / 0.6725 GB, free: 98.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.845, allocations: 1.245 MB / 0.6737 GB, free: 98.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002234/0.8473, allocations: 3.674 MB / 0.6773 GB, free: 94.95 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002289/0.8496, allocations: 2.157 MB / 0.6794 GB, free: 94.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.174e-05/0.8496, allocations: 29.89 kB / 0.6794 GB, free: 94.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=549) (initialization): time 0.006187/0.8558, allocations: 5.417 MB / 0.6847 GB, free: 94.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.818e-05/0.8559, allocations: 44.41 kB / 0.6848 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.245e-05/0.8559, allocations: 89.06 kB / 0.6849 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005484/0.8565, allocations: 357.2 kB / 0.6852 GB, free: 94.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00219/0.8587, allocations: 0.9111 MB / 0.6861 GB, free: 94.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004255/0.8629, allocations: 8.225 MB / 0.6941 GB, free: 87.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002677/0.8656, allocations: 206.5 kB / 0.6943 GB, free: 87.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002977/0.866, allocations: 249.8 kB / 0.6946 GB, free: 87.31 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (502): * Single equations (assignments): 492 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 12,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000424/0.8664, allocations: 431.6 kB / 0.695 GB, free: 87.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002473/0.8666, allocations: 240 kB / 0.6952 GB, free: 86.93 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00242/0.8691, allocations: 2.127 MB / 0.6973 GB, free: 86.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001166/0.8692, allocations: 34.8 kB / 0.6973 GB, free: 86.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.8692, allocations: 6.25 kB / 0.6973 GB, free: 86.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.8692, allocations: 11.47 kB / 0.6973 GB, free: 86.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007009/0.8762, allocations: 5.621 MB / 0.7028 GB, free: 83.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.8763, allocations: 7.203 kB / 0.7028 GB, free: 83.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006148/0.8769, allocations: 174.5 kB / 0.703 GB, free: 83.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000279/0.8772, allocations: 137.8 kB / 0.7031 GB, free: 83.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-05/0.8773, allocations: 28 kB / 0.7031 GB, free: 83.67 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.8795, allocations: 4.663 MB / 0.7077 GB, free: 79.33 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.8795, allocations: 7.812 kB / 0.7077 GB, free: 79.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002861/0.8824, allocations: 3.107 MB / 0.7107 GB, free: 77.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004791/0.8829, allocations: 338.7 kB / 0.7111 GB, free: 77.31 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002228/0.8831, allocations: 25.5 kB / 0.7111 GB, free: 77.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007794/0.8839, allocations: 50.78 kB / 0.7111 GB, free: 77.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.884, allocations: 78.06 kB / 0.7112 GB, free: 77.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.931e-05/0.8841, allocations: 41.25 kB / 0.7112 GB, free: 77.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002012/0.8861, allocations: 1.791 MB / 0.713 GB, free: 76.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8861, allocations: 0 / 0.713 GB, free: 76.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002888/0.889, allocations: 0.7334 MB / 0.7137 GB, free: 76.48 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 92 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002624/0.8893, allocations: 158.8 kB / 0.7139 GB, free: 76.37 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003585/0.8929, allocations: 3.526 MB / 0.7173 GB, free: 74.76 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.8929, allocations: 4.125 kB / 0.7173 GB, free: 74.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009571/0.8939, allocations: 1.059 MB / 0.7183 GB, free: 74.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.8952, allocations: 381.1 kB / 0.7187 GB, free: 74.03 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007116/0.9023, allocations: 5.417 MB / 0.724 GB, free: 71.89 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002218/0.9045, allocations: 2.814 MB / 0.7267 GB, free: 70.68 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0027/0.9072, allocations: 1.211 MB / 0.7279 GB, free: 70.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003837/0.9076, allocations: 179.6 kB / 0.7281 GB, free: 70.56 MB / 458.7 MB Notification: Performance of SimCode: time 7.01e-07/0.9076, allocations: 0 / 0.7281 GB, free: 70.56 MB / 458.7 MB Notification: Performance of Templates: time 0.03547/0.9431, allocations: 24.56 MB / 0.7521 GB, free: 53.85 MB / 458.7 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)