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.00113/0.00113, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001136/0.001136, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04495/0.04495, allocations: 9.112 MB / 300.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001187, allocations: 67.89 kB / 415.3 MB, free: 21.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09105, allocations: 51.43 MB / 466.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.007453/0.09853, allocations: 6.848 MB / 473.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004252/0.1028, allocations: 2.355 MB / 475.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007396/0.1036, allocations: 24 kB / 476 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006847/0.1043, allocations: 294.2 kB / 476.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002326/0.1067, allocations: 1.132 MB / 477.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.1069, allocations: 83.84 kB / 477.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002238/0.1092, allocations: 2.035 MB / 479.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003476/0.1095, allocations: 183 kB / 479.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009703/0.1105, allocations: 0.7081 MB / 480.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/0.1118, allocations: 1.059 MB / 481.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000307/0.1121, allocations: 188 kB / 481.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.1134, allocations: 0.7489 MB / 482.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008186/0.1142, allocations: 1.013 MB / 483.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.1154, allocations: 1.293 MB / 484.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004882/0.1203, allocations: 4.333 MB / 489 MB, free: 11.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.1203, allocations: 0 / 489 MB, free: 11.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1203, allocations: 0 / 489 MB, free: 11.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.144e-05/0.1204, allocations: 0 / 489 MB, free: 11.19 MB / 366.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.007567/0.128, allocations: 3.601 MB / 492.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.128, allocations: 12.03 kB / 492.6 MB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006183/0.1342, allocations: 1.698 MB / 494.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/0.137, allocations: 1.161 MB / 495.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.1371, allocations: 115.1 kB / 495.6 MB, free: 4.492 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003782/0.1375, allocations: 152.1 kB / 495.8 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009927/0.1475, allocations: 7.054 MB / 0.491 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.07e-05/0.1475, allocations: 19.86 kB / 0.491 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002239/0.1478, allocations: 71.88 kB / 0.4911 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002659/0.1504, allocations: 1.722 MB / 0.4928 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.1624, allocations: 6.47 MB / 0.4991 GB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2501/0.4126, allocations: 20.87 MB / 0.5195 GB, free: 29.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004174/0.4168, allocations: 1.934 MB / 0.5214 GB, free: 28.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009572/0.4178, allocations: 0.5964 MB / 0.522 GB, free: 27.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004504/0.4223, allocations: 3.346 MB / 0.5252 GB, free: 25.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.4223, allocations: 42.41 kB / 0.5253 GB, free: 25.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 4.068e-06/0.4223, allocations: 2.25 kB / 0.5253 GB, free: 25.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.003884/0.4262, allocations: 1.813 MB / 0.527 GB, free: 24.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.4263, allocations: 62.78 kB / 0.5271 GB, free: 24.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002886/0.4292, allocations: 2.195 MB / 0.5292 GB, free: 23.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.667e-05/0.4293, allocations: 37.64 kB / 0.5293 GB, free: 23.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007608/0.43, allocations: 1.815 MB / 0.5311 GB, free: 22.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.4303, allocations: 377 kB / 0.5314 GB, free: 22.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006322/0.4309, allocations: 0.6381 MB / 0.532 GB, free: 21.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.674e-05/0.431, allocations: 304.1 kB / 0.5323 GB, free: 21.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.4323, allocations: 1.005 MB / 0.5333 GB, free: 21.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001972/0.4343, allocations: 2.909 MB / 0.5361 GB, free: 17.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003416/0.4377, allocations: 4.185 MB / 0.5402 GB, free: 13.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.485e-05/0.4378, allocations: 21.34 kB / 0.5403 GB, free: 13.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.005406/0.4432, allocations: 3.83 MB / 0.544 GB, free: 11.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.4433, allocations: 35.94 kB / 0.544 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.128e-05/0.4433, allocations: 72.12 kB / 0.5441 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.407e-05/0.4434, allocations: 88 kB / 0.5442 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001878/0.4453, allocations: 0.7096 MB / 0.5449 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-05/0.4454, allocations: 139.4 kB / 0.545 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002158/0.4475, allocations: 457.7 kB / 0.5454 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002478/0.4478, allocations: 192 kB / 0.5456 GB, free: 9.957 MB / 382.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 (387): * Single equations (assignments): 383 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001641/0.4494, allocations: 1.402 MB / 0.547 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.4497, allocations: 169.8 kB / 0.5472 GB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.4514, allocations: 1.193 MB / 0.5483 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.534e-05/0.4516, allocations: 19.98 kB / 0.5483 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.4516, allocations: 6.75 kB / 0.5483 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.4516, allocations: 11.92 kB / 0.5484 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005872/0.4575, allocations: 3.934 MB / 0.5522 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.4575, allocations: 4 kB / 0.5522 GB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005602/0.4581, allocations: 135.8 kB / 0.5523 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.4581, allocations: 4 kB / 0.5523 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-05/0.4581, allocations: 23.89 kB / 0.5524 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.4582, allocations: 11.98 kB / 0.5524 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.4582, allocations: 3.938 kB / 0.5524 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.4603, allocations: 1.96 MB / 0.5543 GB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005364/0.4608, allocations: 266.7 kB / 0.5545 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.4611, allocations: 16 kB / 0.5546 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006/0.4617, allocations: 27.97 kB / 0.5546 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.495e-05/0.4618, allocations: 52.44 kB / 0.5546 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.236e-05/0.4619, allocations: 35.81 kB / 0.5547 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002375/0.4642, allocations: 1.416 MB / 0.5561 GB, free: 15.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4643, allocations: 0 / 0.5561 GB, free: 15.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002865/0.4671, allocations: 0.6978 MB / 0.5567 GB, free: 14.45 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (69): * Single equations (assignments): 65 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003868/0.4675, allocations: 165.8 kB / 0.5569 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003832/0.4714, allocations: 2.257 MB / 0.5591 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4714, allocations: 0 / 0.5591 GB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000739/0.4722, allocations: 0.5189 MB / 0.5596 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.4737, allocations: 320.2 kB / 0.5599 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008956/0.4827, allocations: 5.6 MB / 0.5654 GB, free: 5.598 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/0.485, allocations: 2.289 MB / 0.5676 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006156/0.4856, allocations: 167.4 kB / 0.5678 GB, free: 3.117 MB / 398.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4857, allocations: 4 kB / 0.5678 GB, free: 3.113 MB / 398.1 MB Notification: Performance of Templates: time 0.05036/0.536, allocations: 34.09 MB / 0.6011 GB, free: 1.16 MB / 430.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)