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.001362/0.001361, allocations: 105 kB / 16.41 MB, free: 6.465 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.001115/0.001115, allocations: 187 kB / 17.34 MB, free: 5.719 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.293/1.293, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04416/0.04416, allocations: 9.118 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 63.91 kB / 415.3 MB, free: 21.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09328, allocations: 51.43 MB / 466.7 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.007578/0.1009, allocations: 6.86 MB / 473.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004469/0.1054, allocations: 2.347 MB / 475.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009878/0.1064, allocations: 27.94 kB / 476 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008906/0.1073, allocations: 298.2 kB / 476.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002804/0.1102, allocations: 1.132 MB / 477.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.1106, allocations: 79.84 kB / 477.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002582/0.1131, allocations: 2.034 MB / 479.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004171/0.1136, allocations: 191 kB / 479.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.1148, allocations: 0.7081 MB / 480.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001596/0.1164, allocations: 1.059 MB / 481.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005418/0.1169, allocations: 191.9 kB / 481.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.1185, allocations: 0.7528 MB / 482.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.1196, allocations: 1.005 MB / 483.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00183/0.1215, allocations: 1.293 MB / 484.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004785/0.1263, allocations: 4.333 MB / 489 MB, free: 11.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.1263, allocations: 3.984 kB / 489 MB, free: 11.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1263, allocations: 0 / 489 MB, free: 11.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.077e-05/0.1264, allocations: 0 / 489 MB, free: 11.3 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.007844/0.1342, allocations: 3.601 MB / 492.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1343, allocations: 8.031 kB / 492.6 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006299/0.1406, allocations: 1.698 MB / 494.3 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.1427, allocations: 1.161 MB / 495.5 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.645e-05/0.1428, allocations: 119 kB / 495.6 MB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000336/0.1432, allocations: 152.2 kB / 495.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01069/0.1539, allocations: 7.05 MB / 0.491 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.393e-05/0.154, allocations: 11.88 kB / 0.491 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002506/0.1542, allocations: 71.89 kB / 0.4911 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002768/0.157, allocations: 1.726 MB / 0.4928 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.1692, allocations: 6.462 MB / 0.4991 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2408/0.41, allocations: 20.88 MB / 0.5195 GB, free: 29.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004039/0.4141, allocations: 1.933 MB / 0.5214 GB, free: 28.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008818/0.415, allocations: 0.6016 MB / 0.522 GB, free: 27.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004083/0.4191, allocations: 3.344 MB / 0.5252 GB, free: 25.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.4192, allocations: 38.53 kB / 0.5253 GB, free: 25.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 2.906e-06/0.4192, allocations: 0 / 0.5253 GB, free: 25.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.003714/0.4229, allocations: 1.809 MB / 0.527 GB, free: 24.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.4229, allocations: 66.67 kB / 0.5271 GB, free: 24.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002727/0.4257, allocations: 2.191 MB / 0.5292 GB, free: 23.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.59e-05/0.4258, allocations: 40.55 kB / 0.5293 GB, free: 23.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007523/0.4265, allocations: 1.816 MB / 0.5311 GB, free: 22.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.4268, allocations: 376.5 kB / 0.5314 GB, free: 22.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006085/0.4274, allocations: 0.6383 MB / 0.532 GB, free: 21.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.278e-05/0.4274, allocations: 301.1 kB / 0.5323 GB, free: 21.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/0.4286, allocations: 1.008 MB / 0.5333 GB, free: 21.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/0.4304, allocations: 2.907 MB / 0.5361 GB, free: 17.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003041/0.4335, allocations: 4.196 MB / 0.5402 GB, free: 13.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.767e-05/0.4335, allocations: 18.69 kB / 0.5403 GB, free: 13.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.004739/0.4383, allocations: 3.817 MB / 0.544 GB, free: 11.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.4383, allocations: 37 kB / 0.544 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.901e-05/0.4384, allocations: 64 kB / 0.5441 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.673e-05/0.4385, allocations: 96 kB / 0.5442 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.4402, allocations: 0.7099 MB / 0.5449 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.289e-05/0.4403, allocations: 139.4 kB / 0.545 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/0.4422, allocations: 461.6 kB / 0.5454 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.4425, allocations: 192 kB / 0.5456 GB, free: 10.1 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.001485/0.4439, allocations: 1.401 MB / 0.547 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.4442, allocations: 175.3 kB / 0.5472 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/0.4457, allocations: 1.189 MB / 0.5483 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.773e-05/0.4458, allocations: 23.98 kB / 0.5483 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.4458, allocations: 3.938 kB / 0.5484 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.4459, allocations: 5.766 kB / 0.5484 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004802/0.4507, allocations: 3.932 MB / 0.5522 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.4507, allocations: 4.281 kB / 0.5522 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005309/0.4512, allocations: 139.8 kB / 0.5523 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.4512, allocations: 4 kB / 0.5523 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.593e-05/0.4513, allocations: 20.06 kB / 0.5524 GB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.4513, allocations: 8 kB / 0.5524 GB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.4513, allocations: 0 / 0.5524 GB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.4533, allocations: 1.962 MB / 0.5543 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003272/0.4536, allocations: 274.5 kB / 0.5545 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.4538, allocations: 16 kB / 0.5546 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005373/0.4544, allocations: 35.41 kB / 0.5546 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.464e-05/0.4545, allocations: 52.38 kB / 0.5546 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.154e-05/0.4545, allocations: 31.98 kB / 0.5547 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001667/0.4562, allocations: 1.416 MB / 0.5561 GB, free: 15.28 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4562, allocations: 0 / 0.5561 GB, free: 15.28 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002349/0.4585, allocations: 0.6977 MB / 0.5567 GB, free: 14.59 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.0003225/0.4589, allocations: 165.8 kB / 0.5569 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003392/0.4623, allocations: 2.254 MB / 0.5591 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.4623, allocations: 4.25 kB / 0.5591 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006972/0.463, allocations: 0.5228 MB / 0.5596 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.4645, allocations: 313.7 kB / 0.5599 GB, free: 11.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008345/0.4729, allocations: 5.596 MB / 0.5654 GB, free: 5.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002159/0.4751, allocations: 2.291 MB / 0.5676 GB, free: 3.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005418/0.4756, allocations: 167.4 kB / 0.5678 GB, free: 3.246 MB / 398.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4756, allocations: 4 kB / 0.5678 GB, free: 3.242 MB / 398.1 MB Notification: Performance of Templates: time 0.04862/0.5242, allocations: 34.09 MB / 0.6011 GB, free: 1.289 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)