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.001769/0.001769, allocations: 174.4 kB / 7.644 MB, free: 1.41 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 221.5 MB / 229.6 MB, free: 7.508 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008538/0.0008538, allocations: 95.22 kB / 280.5 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03658/0.03658, allocations: 8.832 MB / 340.1 MB, free: 6.379 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.324e-05/1.334e-05, allocations: 3.094 kB / 398.7 MB, free: 47.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08906/0.08909, allocations: 52.39 MB / 451.1 MB, free: 4.516 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.4475, allocations: 84.97 MB / 0.5235 GB, free: 26.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.4478, allocations: 70.8 kB / 0.5235 GB, free: 26.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1158/0.5636, allocations: 51.19 MB / 0.5735 GB, free: 16.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5636, allocations: 0 / 0.5735 GB, free: 16.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.132e-05/0.5637, allocations: 39.16 kB / 0.5736 GB, free: 16.32 MB / 362.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.009758/0.5735, allocations: 2.572 MB / 0.5761 GB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.5735, allocations: 7.375 kB / 0.5761 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0088/0.5823, allocations: 1.865 MB / 0.5779 GB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004254/0.5866, allocations: 1.479 MB / 0.5794 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002834/0.5869, allocations: 81.28 kB / 0.5794 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002143/0.5891, allocations: 142.3 kB / 0.5796 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008325/0.5974, allocations: 4.71 MB / 0.5842 GB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.6097, allocations: 6.174 MB / 0.5902 GB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001247/0.6098, allocations: 15.59 kB / 0.5902 GB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009909/0.6108, allocations: 11.78 kB / 0.5902 GB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001037/0.6119, allocations: 0.7829 MB / 0.591 GB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02498/0.6369, allocations: 20.01 MB / 0.6105 GB, free: 8.816 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002429/0.6393, allocations: 1.773 MB / 0.6123 GB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000838/0.6402, allocations: 0.5469 MB / 0.6128 GB, free: 6.383 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004998/0.6452, allocations: 3.267 MB / 0.616 GB, free: 2.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.6453, allocations: 43.12 kB / 0.616 GB, free: 2.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=93): time 3.897e-06/0.6453, allocations: 0 / 0.616 GB, free: 2.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=93): time 0.002584/0.6479, allocations: 1.161 MB / 0.6172 GB, free: 1.594 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.648, allocations: 59.97 kB / 0.6172 GB, free: 1.523 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004089/0.6521, allocations: 1.656 MB / 0.6188 GB, free: 15.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.75e-05/0.6521, allocations: 25.7 kB / 0.6189 GB, free: 15.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/0.6539, allocations: 1.882 MB / 0.6207 GB, free: 13.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004503/0.6543, allocations: 371.2 kB / 0.621 GB, free: 13.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002415/0.6546, allocations: 4 kB / 0.621 GB, free: 13.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004009/0.655, allocations: 485.8 kB / 0.6215 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001609/0.6566, allocations: 0.967 MB / 0.6225 GB, free: 12.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00299/0.6596, allocations: 2.972 MB / 0.6254 GB, free: 8.105 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002545/0.6622, allocations: 1.731 MB / 0.627 GB, free: 6.375 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-05/0.6622, allocations: 24 kB / 0.6271 GB, free: 6.352 MB / 394.7 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006686/0.6689, allocations: 3.518 MB / 0.6305 GB, free: 2.836 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.057e-05/0.669, allocations: 36.09 kB / 0.6305 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/0.6691, allocations: 79.88 kB / 0.6306 GB, free: 2.723 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.6693, allocations: 104 kB / 0.6307 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/0.6717, allocations: 0.7564 MB / 0.6315 GB, free: 1.863 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001128/0.6719, allocations: 143.4 kB / 0.6316 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/0.6743, allocations: 399.6 kB / 0.632 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004138/0.6747, allocations: 212 kB / 0.6322 GB, free: 1.121 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * 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 (410): * Single equations (assignments): 406 * 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.0004445/0.6751, allocations: 271.6 kB / 0.6324 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002904/0.6754, allocations: 150 kB / 0.6326 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.6772, allocations: 1.065 MB / 0.6336 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001163/0.6773, allocations: 27.97 kB / 0.6336 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.6773, allocations: 0 / 0.6336 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.6774, allocations: 0 / 0.6336 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005938/0.6833, allocations: 3.132 MB / 0.6367 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.6833, allocations: 3.984 kB / 0.6367 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006139/0.684, allocations: 131.8 kB / 0.6368 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.1e-05/0.684, allocations: 4 kB / 0.6368 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.444e-05/0.684, allocations: 19.94 kB / 0.6369 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.6841, allocations: 4.281 kB / 0.6369 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.6841, allocations: 11.94 kB / 0.6369 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.6865, allocations: 1.926 MB / 0.6388 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005185/0.6871, allocations: 258.8 kB / 0.639 GB, free: 9.922 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.6872, allocations: 8 kB / 0.639 GB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005498/0.6878, allocations: 23.95 kB / 0.639 GB, free: 9.891 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.197e-05/0.6879, allocations: 48.41 kB / 0.6391 GB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.23e-05/0.688, allocations: 31.98 kB / 0.6391 GB, free: 9.812 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002013/0.69, allocations: 1.113 MB / 0.6402 GB, free: 8.703 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.69, allocations: 0 / 0.6402 GB, free: 8.703 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003286/0.6933, allocations: 0.6803 MB / 0.6409 GB, free: 8.02 MB / 410.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.0005066/0.6938, allocations: 150.6 kB / 0.641 GB, free: 7.863 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003927/0.6977, allocations: 2.115 MB / 0.6431 GB, free: 5.766 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6978, allocations: 5.625 kB / 0.6431 GB, free: 5.762 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006092/0.6984, allocations: 494.6 kB / 0.6435 GB, free: 5.281 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.6996, allocations: 179.3 kB / 0.6437 GB, free: 5.109 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.7106, allocations: 4.239 MB / 0.6479 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003327/0.714, allocations: 2.344 MB / 0.6501 GB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002732/0.7168, allocations: 0.9987 MB / 0.6511 GB, free: 13.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003436/0.7171, allocations: 127.4 kB / 0.6512 GB, free: 13.29 MB / 426.7 MB Notification: Performance of SimCode: time 6.81e-07/0.7171, allocations: 0 / 0.6512 GB, free: 13.29 MB / 426.7 MB Notification: Performance of Templates: time 0.02842/0.7456, allocations: 13.79 MB / 0.6647 GB, free: 15.59 MB / 442.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)