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.001181/0.001181, allocations: 172.4 kB / 16.11 MB, free: 5.695 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.387/1.387, allocations: 223.3 MB / 240.1 MB, free: 11.7 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.0007538/0.0007539, allocations: 92.75 kB / 291.3 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04034/0.04034, allocations: 8.942 MB / 351.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003897, allocations: 11.56 kB / 414.4 MB, free: 56.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08744/0.08785, allocations: 52.39 MB / 466.8 MB, free: 4.418 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3129/0.4008, allocations: 85.75 MB / 0.5396 GB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.4011, allocations: 77.78 kB / 0.5397 GB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1279/0.529, allocations: 51.67 MB / 0.5901 GB, free: 13.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.529, allocations: 0 / 0.5901 GB, free: 13.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001257/0.5292, allocations: 47.98 kB / 0.5902 GB, free: 13.89 MB / 410.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.01003/0.5392, allocations: 2.561 MB / 0.5927 GB, free: 11.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.5393, allocations: 12.03 kB / 0.5927 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00845/0.5477, allocations: 1.865 MB / 0.5945 GB, free: 9.379 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004861/0.5526, allocations: 1.498 MB / 0.596 GB, free: 7.836 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003558/0.553, allocations: 185.1 kB / 0.5961 GB, free: 7.652 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002461/0.5555, allocations: 240.3 kB / 0.5964 GB, free: 7.418 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01609/0.5716, allocations: 6.643 MB / 0.6029 GB, free: 476 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001533/0.5718, allocations: 16.06 kB / 0.6029 GB, free: 460 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001111/0.573, allocations: 111.8 kB / 0.603 GB, free: 348 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001265/0.5742, allocations: 0.7781 MB / 0.6037 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01292/0.5872, allocations: 6.356 MB / 0.61 GB, free: 9.188 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03295/0.6202, allocations: 20.94 MB / 0.6304 GB, free: 3.801 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00433/0.6246, allocations: 1.921 MB / 0.6323 GB, free: 1.762 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.6257, allocations: 0.5933 MB / 0.6329 GB, free: 1.168 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005784/0.6315, allocations: 3.347 MB / 0.6361 GB, free: 13.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.6316, allocations: 39.12 kB / 0.6362 GB, free: 13.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=93): time 6.332e-06/0.6316, allocations: 0 / 0.6362 GB, free: 13.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=93): time 0.004198/0.6358, allocations: 1.791 MB / 0.6379 GB, free: 11.66 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.357e-05/0.6359, allocations: 59.97 kB / 0.638 GB, free: 11.59 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00417/0.64, allocations: 2.184 MB / 0.6401 GB, free: 9.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.889e-05/0.6401, allocations: 41.69 kB / 0.6401 GB, free: 9.363 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.6417, allocations: 1.821 MB / 0.6419 GB, free: 7.516 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004063/0.6421, allocations: 371.2 kB / 0.6423 GB, free: 7.148 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.6423, allocations: 60 kB / 0.6423 GB, free: 7.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002811/0.6426, allocations: 440.7 kB / 0.6428 GB, free: 6.652 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/0.6444, allocations: 0.9938 MB / 0.6437 GB, free: 5.656 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002965/0.6474, allocations: 2.881 MB / 0.6465 GB, free: 1.832 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2261/0.8735, allocations: 4.146 MB / 0.6506 GB, free: 127.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.311e-05/0.8737, allocations: 21.61 kB / 0.6506 GB, free: 127.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.007949/0.8816, allocations: 3.781 MB / 0.6543 GB, free: 126.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.683e-05/0.8817, allocations: 39 kB / 0.6543 GB, free: 126.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-05/0.8818, allocations: 66.62 kB / 0.6544 GB, free: 126.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001263/0.8819, allocations: 92.16 kB / 0.6545 GB, free: 126.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/0.884, allocations: 0.7115 MB / 0.6552 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001145/0.8841, allocations: 136.9 kB / 0.6553 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/0.8863, allocations: 466.9 kB / 0.6558 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002751/0.8866, allocations: 197 kB / 0.6559 GB, free: 126.6 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 () * Number of clocked 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.002374/0.8889, allocations: 1.389 MB / 0.6573 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000292/0.8892, allocations: 169 kB / 0.6575 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.8913, allocations: 1.178 MB / 0.6586 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001388/0.8915, allocations: 23.2 kB / 0.6586 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.8915, allocations: 1.625 kB / 0.6586 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.8915, allocations: 3.047 kB / 0.6586 GB, free: 126.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007648/0.8991, allocations: 3.917 MB / 0.6625 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.8992, allocations: 2.875 kB / 0.6625 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006451/0.8998, allocations: 132.7 kB / 0.6626 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.8999, allocations: 4.656 kB / 0.6626 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-05/0.8999, allocations: 25.83 kB / 0.6626 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.747e-06/0.8999, allocations: 13.03 kB / 0.6626 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.9, allocations: 3.188 kB / 0.6626 GB, free: 125.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002994/0.903, allocations: 1.921 MB / 0.6645 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006648/0.9036, allocations: 279.7 kB / 0.6648 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/0.9038, allocations: 17.17 kB / 0.6648 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/0.9044, allocations: 37.3 kB / 0.6648 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.9045, allocations: 48.47 kB / 0.6649 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.99e-05/0.9046, allocations: 30.27 kB / 0.6649 GB, free: 125.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002567/0.9071, allocations: 1.41 MB / 0.6663 GB, free: 125.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9072, allocations: 1.125 kB / 0.6663 GB, free: 125.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003118/0.9103, allocations: 0.7182 MB / 0.667 GB, free: 125.1 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 () * Number of clocked 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.0003477/0.9106, allocations: 167.7 kB / 0.6671 GB, free: 125 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003346/0.914, allocations: 2.214 MB / 0.6693 GB, free: 124.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.914, allocations: 3.594 kB / 0.6693 GB, free: 124.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007937/0.9148, allocations: 0.5125 MB / 0.6698 GB, free: 124.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.9171, allocations: 286.9 kB / 0.6701 GB, free: 124.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009579/0.9267, allocations: 6.416 MB / 0.6764 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002012/0.9287, allocations: 2.285 MB / 0.6786 GB, free: 120.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002472/0.9312, allocations: 0.9952 MB / 0.6796 GB, free: 120.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003341/0.9316, allocations: 131.5 kB / 0.6797 GB, free: 120.3 MB / 458.7 MB Notification: Performance of SimCode: time 8.52e-07/0.9316, allocations: 0 / 0.6797 GB, free: 120.3 MB / 458.7 MB Notification: Performance of Templates: time 0.02984/0.9614, allocations: 17.82 MB / 0.6971 GB, free: 119.3 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)