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.00107/0.00107, allocations: 183.2 kB / 15.98 MB, free: 5.77 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.225/1.225, allocations: 222.9 MB / 239.7 MB, free: 10.99 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.0009983/0.0009981, allocations: 101.8 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04008/0.04008, allocations: 8.938 MB / 349 MB, free: 16 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009527/0.0009527, allocations: 59.02 kB / 411.1 MB, free: 57.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08172/0.08268, allocations: 51.4 MB / 462.5 MB, free: 5.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.01225/0.09497, allocations: 14.33 MB / 476.8 MB, free: 7.312 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008343/0.1034, allocations: 3.78 MB / 480.6 MB, free: 3.516 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002747/0.1062, allocations: 47.94 kB / 480.7 MB, free: 3.469 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000974/0.1072, allocations: 246.8 kB / 480.9 MB, free: 3.227 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002941/0.1102, allocations: 1.067 MB / 482 MB, free: 2.156 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003486/0.1105, allocations: 67.86 kB / 482 MB, free: 2.09 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.2043/0.3149, allocations: 2.905 MB / 485 MB, free: 11.19 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000415/0.3153, allocations: 175.8 kB / 485.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.3165, allocations: 0.586 MB / 485.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.3182, allocations: 1.066 MB / 486.8 MB, free: 11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003149/0.3185, allocations: 109.7 kB / 486.9 MB, free: 11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.3199, allocations: 0.7044 MB / 487.6 MB, free: 11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.321, allocations: 0.9375 MB / 488.5 MB, free: 10.88 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.3222, allocations: 1.215 MB / 489.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005074/0.3273, allocations: 4.015 MB / 493.8 MB, free: 9.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3273, allocations: 2.125 kB / 493.8 MB, free: 9.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.3273, allocations: 0 / 493.8 MB, free: 9.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.156e-05/0.3274, allocations: 4 kB / 493.8 MB, free: 9.855 MB / 314.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.007973/0.3354, allocations: 3.596 MB / 497.4 MB, free: 8.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3354, allocations: 9.094 kB / 497.4 MB, free: 8.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006003/0.3414, allocations: 1.702 MB / 499.1 MB, free: 8.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.3436, allocations: 1.155 MB / 0.4885 GB, free: 7.434 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.651e-05/0.3436, allocations: 112.3 kB / 0.4886 GB, free: 7.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003199/0.344, allocations: 149.8 kB / 0.4887 GB, free: 7.387 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009462/0.3534, allocations: 7.049 MB / 0.4956 GB, free: 3.523 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.057e-05/0.3535, allocations: 25.91 kB / 0.4957 GB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002293/0.3538, allocations: 71.42 kB / 0.4957 GB, free: 3.496 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002374/0.3561, allocations: 1.719 MB / 0.4974 GB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01003/0.3662, allocations: 6.465 MB / 0.5037 GB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02714/0.3934, allocations: 20.97 MB / 0.5242 GB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003737/0.3971, allocations: 1.932 MB / 0.5261 GB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008401/0.398, allocations: 0.5972 MB / 0.5267 GB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004528/0.4025, allocations: 3.337 MB / 0.5299 GB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.4026, allocations: 39.12 kB / 0.53 GB, free: 2.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=93): time 3.286e-06/0.4026, allocations: 0 / 0.53 GB, free: 2.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=93): time 0.003569/0.4062, allocations: 1.817 MB / 0.5317 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.132e-05/0.4062, allocations: 59.97 kB / 0.5318 GB, free: 0.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00271/0.4089, allocations: 2.196 MB / 0.5339 GB, free: 14.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.64e-05/0.409, allocations: 33.7 kB / 0.534 GB, free: 14.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009887/0.41, allocations: 1.821 MB / 0.5357 GB, free: 12.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002598/0.4102, allocations: 377.5 kB / 0.5361 GB, free: 12.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007685/0.411, allocations: 0.6383 MB / 0.5367 GB, free: 11.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.4111, allocations: 301.1 kB / 0.537 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001456/0.4126, allocations: 1.009 MB / 0.538 GB, free: 10.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002585/0.4152, allocations: 2.903 MB / 0.5408 GB, free: 6.434 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00408/0.4193, allocations: 4.198 MB / 0.5449 GB, free: 1.582 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.284e-05/0.4193, allocations: 27.94 kB / 0.545 GB, free: 1.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.005526/0.4248, allocations: 3.818 MB / 0.5487 GB, free: 13.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.4249, allocations: 32 kB / 0.5487 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.389e-05/0.425, allocations: 71.98 kB / 0.5488 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.457e-05/0.4251, allocations: 91.94 kB / 0.5489 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001834/0.4269, allocations: 0.7141 MB / 0.5496 GB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-05/0.427, allocations: 131.5 kB / 0.5497 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.4289, allocations: 463.1 kB / 0.5501 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/0.4291, allocations: 196 kB / 0.5503 GB, free: 12.09 MB / 378.7 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.002032/0.4311, allocations: 1.393 MB / 0.5517 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.4314, allocations: 173.7 kB / 0.5519 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.4334, allocations: 1.201 MB / 0.553 GB, free: 9.309 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.43e-05/0.4335, allocations: 23.97 kB / 0.5531 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.4335, allocations: 0 / 0.5531 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.567e-06/0.4335, allocations: 3.984 kB / 0.5531 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006684/0.4402, allocations: 3.937 MB / 0.5569 GB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-05/0.4402, allocations: 8.062 kB / 0.5569 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005788/0.4408, allocations: 131.8 kB / 0.557 GB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.766e-06/0.4409, allocations: 4 kB / 0.557 GB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.74e-05/0.4409, allocations: 19.98 kB / 0.5571 GB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.456e-06/0.4409, allocations: 8 kB / 0.5571 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4409, allocations: 3.938 kB / 0.5571 GB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007881/0.4488, allocations: 5.565 MB / 0.5625 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.4492, allocations: 266.7 kB / 0.5628 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.4494, allocations: 16 kB / 0.5628 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005568/0.4499, allocations: 39.08 kB / 0.5628 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.026e-05/0.45, allocations: 44.44 kB / 0.5629 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.265e-05/0.4501, allocations: 36 kB / 0.5629 GB, free: 14.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001955/0.4521, allocations: 1.416 MB / 0.5643 GB, free: 13.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4521, allocations: 0 / 0.5643 GB, free: 13.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00276/0.4549, allocations: 0.8604 MB / 0.5651 GB, free: 12.63 MB / 394.7 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.0004202/0.4553, allocations: 183.5 kB / 0.5653 GB, free: 12.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003492/0.4588, allocations: 2.252 MB / 0.5675 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4588, allocations: 0 / 0.5675 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007186/0.4595, allocations: 0.5266 MB / 0.568 GB, free: 9.684 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/0.4611, allocations: 287 kB / 0.5683 GB, free: 9.414 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.4716, allocations: 7.235 MB / 0.5753 GB, free: 2.109 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/0.4742, allocations: 2.317 MB / 0.5776 GB, free: 15.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002562/0.4769, allocations: 0.9927 MB / 0.5786 GB, free: 14.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.4772, allocations: 139.4 kB / 0.5787 GB, free: 14.62 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4772, allocations: 0 / 0.5787 GB, free: 14.62 MB / 410.7 MB Notification: Performance of Templates: time 0.03479/0.512, allocations: 19.29 MB / 0.5975 GB, free: 11.47 MB / 426.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)