Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CounterSpin.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.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009751/0.0009752, 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.148/1.148, 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.0007792/0.0007789, 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.03956/0.03956, allocations: 8.84 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.457e-05/2.459e-05, allocations: 4 kB / 405.6 MB, free: 61.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07069/0.07073, allocations: 52.38 MB / 457.9 MB, free: 9.066 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2862/0.357, allocations: 85.7 MB / 0.5309 GB, free: 76 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.3572, allocations: 75.91 kB / 0.531 GB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.121/0.4782, allocations: 52.17 MB / 0.5819 GB, free: 2.113 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4782, allocations: 4 kB / 0.5819 GB, free: 2.109 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.482e-05/0.4783, allocations: 40 kB / 0.582 GB, free: 2.07 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 981 * Number of variables: 981 Notification: Performance of Generate backend data structure: time 0.006195/0.4845, allocations: 2.577 MB / 0.5845 GB, free: 15.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.4846, allocations: 8.031 kB / 0.5845 GB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007682/0.4922, allocations: 1.86 MB / 0.5863 GB, free: 13.56 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00267/0.4949, allocations: 1.477 MB / 0.5877 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.4951, allocations: 184.7 kB / 0.5879 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005171/0.4956, allocations: 239.8 kB / 0.5881 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009964/0.5056, allocations: 6.583 MB / 0.5946 GB, free: 4.734 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-05/0.5057, allocations: 15.88 kB / 0.5946 GB, free: 4.719 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003492/0.506, allocations: 111.8 kB / 0.5947 GB, free: 4.609 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001089/0.5071, allocations: 0.7818 MB / 0.5955 GB, free: 3.824 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01015/0.5173, allocations: 6.268 MB / 0.6016 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02536/0.5427, allocations: 20.96 MB / 0.622 GB, free: 8.141 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003452/0.5462, allocations: 1.9 MB / 0.6239 GB, free: 6.125 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007379/0.5469, allocations: 0.5776 MB / 0.6245 GB, free: 5.547 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003879/0.5508, allocations: 3.349 MB / 0.6277 GB, free: 1.883 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.5508, allocations: 39.12 kB / 0.6278 GB, free: 1.836 MB / 442.7 MB Notification: Performance of pre-optimization done (n=93): time 2.825e-06/0.5509, allocations: 0 / 0.6278 GB, free: 1.836 MB / 442.7 MB Notification: Performance of matching and sorting (n=93): time 0.002743/0.5536, allocations: 1.34 MB / 0.6291 GB, free: 500 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.5537, allocations: 67.91 kB / 0.6291 GB, free: 420 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00237/0.556, allocations: 1.949 MB / 0.6311 GB, free: 14.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.543e-05/0.5561, allocations: 33.7 kB / 0.6311 GB, free: 14.42 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009803/0.5571, allocations: 1.817 MB / 0.6329 GB, free: 12.58 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000251/0.5573, allocations: 375.2 kB / 0.6332 GB, free: 12.21 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.5575, allocations: 60 kB / 0.6333 GB, free: 12.15 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.5577, allocations: 440.7 kB / 0.6337 GB, free: 11.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.559, allocations: 0.9511 MB / 0.6346 GB, free: 10.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002261/0.5612, allocations: 2.842 MB / 0.6374 GB, free: 6.973 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002034/0.5633, allocations: 1.673 MB / 0.639 GB, free: 5.301 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.674e-05/0.5633, allocations: 24 kB / 0.6391 GB, free: 5.277 MB / 458.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.005092/0.5684, allocations: 3.707 MB / 0.6427 GB, free: 1.566 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.5685, allocations: 36.97 kB / 0.6427 GB, free: 1.531 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-05/0.5685, allocations: 68 kB / 0.6428 GB, free: 1.465 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.761e-05/0.5686, allocations: 96 kB / 0.6429 GB, free: 1.371 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/0.5706, allocations: 0.7135 MB / 0.6436 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001029/0.5707, allocations: 131.6 kB / 0.6437 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.5728, allocations: 475 kB / 0.6441 GB, free: 60 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.186/0.7588, allocations: 189.2 kB / 0.6443 GB, free: 128.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 305 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (386): * Single equations (assignments): 382 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005465/0.7594, allocations: 335.7 kB / 0.6446 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003498/0.7598, allocations: 166.7 kB / 0.6448 GB, free: 128.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.7616, allocations: 1.143 MB / 0.6459 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001167/0.7617, allocations: 25.98 kB / 0.6459 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.7618, allocations: 0.7812 kB / 0.6459 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.7618, allocations: 4.812 kB / 0.6459 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006088/0.7679, allocations: 3.882 MB / 0.6497 GB, free: 128.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.7679, allocations: 3.422 kB / 0.6497 GB, free: 128.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005836/0.7685, allocations: 130.4 kB / 0.6499 GB, free: 128.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.7685, allocations: 5.688 kB / 0.6499 GB, free: 128.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/0.7686, allocations: 23.12 kB / 0.6499 GB, free: 128.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/0.7686, allocations: 13.08 kB / 0.6499 GB, free: 128.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.7686, allocations: 2.344 kB / 0.6499 GB, free: 128.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.7708, allocations: 2.02 MB / 0.6519 GB, free: 127.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.7712, allocations: 283.2 kB / 0.6521 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.7713, allocations: 18.39 kB / 0.6522 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005642/0.7719, allocations: 34.42 kB / 0.6522 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.853e-05/0.772, allocations: 51.25 kB / 0.6522 GB, free: 127.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.373e-05/0.7721, allocations: 35.59 kB / 0.6523 GB, free: 127.6 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001788/0.7739, allocations: 1.382 MB / 0.6536 GB, free: 127.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7739, allocations: 3.844 kB / 0.6536 GB, free: 127.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002289/0.7762, allocations: 0.7074 MB / 0.6543 GB, free: 127.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (body.r[1],body.v[1],body.phi,slipBasedRolling.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 64 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003156/0.7765, allocations: 169 kB / 0.6545 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00282/0.7793, allocations: 2.151 MB / 0.6566 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7793, allocations: 0 / 0.6566 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005794/0.7799, allocations: 0.5059 MB / 0.6571 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.781, allocations: 280 kB / 0.6573 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006555/0.7876, allocations: 4.318 MB / 0.6616 GB, free: 126.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001958/0.7896, allocations: 2.335 MB / 0.6638 GB, free: 125.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002317/0.7919, allocations: 1.002 MB / 0.6648 GB, free: 125.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003224/0.7922, allocations: 134.5 kB / 0.665 GB, free: 125.6 MB / 458.7 MB Notification: Performance of SimCode: time 7.11e-07/0.7922, allocations: 0 / 0.665 GB, free: 125.6 MB / 458.7 MB Notification: Performance of Templates: time 0.02532/0.8176, allocations: 17.74 MB / 0.6823 GB, free: 124.7 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CounterSpin.sim & ./PlanarMechanics_PlanarMechanics.Examples.CounterSpin -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CounterSpin.pipe 2>&1)