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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008861/0.0008889, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009659/0.000966, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1629/0.1629, allocations: 9.086 MB / 300.1 MB, free: 2.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.0003118, allocations: 11.94 kB / 363 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09653, allocations: 52.43 MB / 415.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.2321/0.3287, allocations: 12.15 MB / 427.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007165/0.3359, allocations: 3.653 MB / 431.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.3377, allocations: 51.16 kB / 431.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.3388, allocations: 0.5627 MB / 431.8 MB, free: 33.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004719/0.3436, allocations: 1.901 MB / 433.7 MB, free: 33.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.344, allocations: 77.5 kB / 433.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001919/0.3459, allocations: 1.099 MB / 434.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.3463, allocations: 174.7 kB / 435.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006884/0.347, allocations: 0.5169 MB / 435.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008222/0.3478, allocations: 0.7736 MB / 436.4 MB, free: 33.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001959/0.348, allocations: 100.5 kB / 436.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.3492, allocations: 0.593 MB / 437.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007421/0.3499, allocations: 0.8578 MB / 437.9 MB, free: 33.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005147/0.3505, allocations: 0.5432 MB / 438.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.3536, allocations: 3.204 MB / 441.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3536, allocations: 0 / 441.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.398e-06/0.3536, allocations: 3.328 kB / 441.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.593e-05/0.3537, allocations: 0 / 441.7 MB, free: 32.64 MB / 350.1 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.007656/0.3613, allocations: 3.143 MB / 444.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.3614, allocations: 9.031 kB / 444.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007382/0.3688, allocations: 2.104 MB / 446.9 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003109/0.3719, allocations: 1.143 MB / 448.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-05/0.3721, allocations: 114.6 kB / 448.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004239/0.3725, allocations: 153.6 kB / 448.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01048/0.383, allocations: 7.045 MB / 455.4 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.927e-05/0.3831, allocations: 20.34 kB / 455.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000256/0.3834, allocations: 72.69 kB / 455.5 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002738/0.3861, allocations: 1.729 MB / 457.2 MB, free: 26.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01426/0.4004, allocations: 6.461 MB / 463.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03676/0.4372, allocations: 20.94 MB / 484.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004062/0.4413, allocations: 1.92 MB / 486.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009293/0.4423, allocations: 1.047 MB / 487.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.4423, allocations: 46.05 kB / 487.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=114): time 4.068e-06/0.4423, allocations: 2.906 kB / 487.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=114): time 0.006317/0.4486, allocations: 2.619 MB / 490.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.4487, allocations: 61.16 kB / 490.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002891/0.4516, allocations: 2.093 MB / 492.4 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.4517, allocations: 45.7 kB / 492.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.4527, allocations: 1.762 MB / 494.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003543/0.4531, allocations: 436 kB / 494.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.4532, allocations: 70.45 kB / 494.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.4534, allocations: 448.9 kB / 495.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.4547, allocations: 1.013 MB / 496.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/0.457, allocations: 2.917 MB / 499.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002387/0.4594, allocations: 1.738 MB / 0.4891 GB, free: 12.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.992e-05/0.4595, allocations: 20 kB / 0.4891 GB, free: 12.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.005817/0.4653, allocations: 3.858 MB / 0.4928 GB, free: 8.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.827e-05/0.4654, allocations: 36.89 kB / 0.4929 GB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.766e-05/0.4654, allocations: 68.06 kB / 0.4929 GB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001/0.4655, allocations: 100 kB / 0.493 GB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002111/0.4677, allocations: 0.733 MB / 0.4938 GB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001085/0.4678, allocations: 131.5 kB / 0.4939 GB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/0.47, allocations: 463 kB / 0.4943 GB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002614/0.4703, allocations: 196 kB / 0.4945 GB, free: 6.699 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 306 * 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 (393): * Single equations (assignments): 389 * 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.002448/0.4728, allocations: 1.396 MB / 0.4959 GB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003254/0.4731, allocations: 173.8 kB / 0.496 GB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002425/0.4755, allocations: 1.514 MB / 0.4975 GB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-05/0.4756, allocations: 22.72 kB / 0.4975 GB, free: 3.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4757, allocations: 8 kB / 0.4975 GB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4757, allocations: 3.984 kB / 0.4975 GB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007525/0.4832, allocations: 4.51 MB / 0.502 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.4832, allocations: 8 kB / 0.502 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006938/0.4839, allocations: 164.4 kB / 0.5021 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-05/0.484, allocations: 12 kB / 0.5021 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.556e-05/0.484, allocations: 27.98 kB / 0.5022 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.025e-05/0.4841, allocations: 8.156 kB / 0.5022 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.455e-06/0.4841, allocations: 11.94 kB / 0.5022 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003253/0.4873, allocations: 2.626 MB / 0.5047 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006298/0.488, allocations: 290.8 kB / 0.505 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001998/0.4882, allocations: 23.95 kB / 0.505 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005929/0.4888, allocations: 43.86 kB / 0.5051 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.4889, allocations: 72.31 kB / 0.5052 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.381e-05/0.489, allocations: 46.44 kB / 0.5052 GB, free: 11.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.4912, allocations: 1.364 MB / 0.5065 GB, free: 10.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4912, allocations: 0 / 0.5065 GB, free: 10.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003763/0.495, allocations: 0.7043 MB / 0.5072 GB, free: 9.355 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 4 (body.v[1],body.w,slipBasedRolling.frame_a.x,slipBasedRolling.phi) * 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 (87): * Single equations (assignments): 83 * 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.0004753/0.4955, allocations: 166.2 kB / 0.5074 GB, free: 9.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00408/0.4996, allocations: 2.338 MB / 0.5097 GB, free: 6.855 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4996, allocations: 0 / 0.5097 GB, free: 6.855 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000824/0.5004, allocations: 0.6186 MB / 0.5103 GB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.502, allocations: 283.8 kB / 0.5105 GB, free: 5.973 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.5126, allocations: 6.624 MB / 0.517 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002531/0.5151, allocations: 2.351 MB / 0.5193 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002641/0.5178, allocations: 1.02 MB / 0.5203 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/0.5182, allocations: 143.4 kB / 0.5204 GB, free: 11.71 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5182, allocations: 7.938 kB / 0.5204 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Templates: time 0.0414/0.5596, allocations: 17.87 MB / 0.5379 GB, free: 9.977 MB / 414.1 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)