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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.0008185/0.0008184, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009065/0.0009062, allocations: 172.7 kB / 15.95 MB, free: 208 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.372/1.372, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1825/0.1825, allocations: 9.109 MB / 300.2 MB, free: 2.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003386, allocations: 12 kB / 363.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1236, allocations: 52.45 MB / 415.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.271/0.3946, allocations: 12.84 MB / 428.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008656/0.4033, allocations: 3.54 MB / 431.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00229/0.4057, allocations: 45.75 kB / 432 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.4072, allocations: 0.5856 MB / 432.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006427/0.4136, allocations: 2.19 MB / 434.8 MB, free: 33.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.4141, allocations: 71.3 kB / 434.8 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.417, allocations: 2.251 MB / 437.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003725/0.4174, allocations: 174.6 kB / 437.2 MB, free: 32.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009002/0.4183, allocations: 0.6266 MB / 437.9 MB, free: 32.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001205/0.4195, allocations: 1.047 MB / 438.9 MB, free: 32.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001979/0.4197, allocations: 103.6 kB / 439 MB, free: 32.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.4207, allocations: 0.6058 MB / 439.6 MB, free: 32.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000643/0.4214, allocations: 0.9145 MB / 440.5 MB, free: 32.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004071/0.4218, allocations: 0.5426 MB / 441.1 MB, free: 32.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002476/0.4243, allocations: 3.212 MB / 444.3 MB, free: 31.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4243, allocations: 0 / 444.3 MB, free: 31.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4243, allocations: 0 / 444.3 MB, free: 31.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.863e-05/0.4244, allocations: 0 / 444.3 MB, free: 31.78 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.00636/0.4308, allocations: 3.098 MB / 447.4 MB, free: 30.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.4308, allocations: 9.531 kB / 447.4 MB, free: 30.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005642/0.4365, allocations: 1.742 MB / 449.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/0.4383, allocations: 1.151 MB / 450.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.78e-05/0.4384, allocations: 110.4 kB / 450.4 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002844/0.4386, allocations: 149.8 kB / 450.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008731/0.4474, allocations: 7.034 MB / 457.6 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.88e-05/0.4475, allocations: 17.75 kB / 457.6 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002353/0.4477, allocations: 78.53 kB / 457.7 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00259/0.4503, allocations: 1.727 MB / 459.4 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01329/0.4636, allocations: 6.438 MB / 465.8 MB, free: 23.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03225/0.4959, allocations: 20.96 MB / 486.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003799/0.4997, allocations: 1.927 MB / 488.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008474/0.5006, allocations: 0.5944 MB / 489.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004288/0.5049, allocations: 3.347 MB / 492.7 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.505, allocations: 41.88 kB / 492.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 2.875e-06/0.505, allocations: 0 / 492.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003619/0.5086, allocations: 1.809 MB / 494.5 MB, free: 3.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.5086, allocations: 55.97 kB / 494.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.5112, allocations: 2.184 MB / 496.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.5113, allocations: 37.7 kB / 496.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.5124, allocations: 1.822 MB / 498.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000355/0.5127, allocations: 370.5 kB / 499 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.5129, allocations: 62.42 kB / 499 MB, free: 15.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002967/0.5132, allocations: 440.8 kB / 499.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001689/0.5149, allocations: 1.002 MB / 0.4887 GB, free: 13.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002973/0.5179, allocations: 2.886 MB / 0.4916 GB, free: 9.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002478/0.5203, allocations: 1.699 MB / 0.4932 GB, free: 8.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.867e-05/0.5204, allocations: 23.78 kB / 0.4932 GB, free: 8.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006263/0.5267, allocations: 3.801 MB / 0.497 GB, free: 4.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.5267, allocations: 32 kB / 0.497 GB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.75e-05/0.5268, allocations: 70.91 kB / 0.4971 GB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001059/0.5269, allocations: 96 kB / 0.4971 GB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002071/0.529, allocations: 0.7096 MB / 0.4978 GB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001152/0.5291, allocations: 139.4 kB / 0.498 GB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/0.5313, allocations: 467.2 kB / 0.4984 GB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002695/0.5316, allocations: 202.3 kB / 0.4986 GB, free: 2.664 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 (387): * Single equations (assignments): 383 * 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.00252/0.5341, allocations: 1.39 MB / 0.5 GB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003363/0.5345, allocations: 169.8 kB / 0.5001 GB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/0.5367, allocations: 1.19 MB / 0.5013 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.442e-05/0.5368, allocations: 27.97 kB / 0.5013 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.5368, allocations: 0 / 0.5013 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.5368, allocations: 3.984 kB / 0.5013 GB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006691/0.5435, allocations: 3.937 MB / 0.5052 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.5435, allocations: 4 kB / 0.5052 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006004/0.5441, allocations: 131.9 kB / 0.5053 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.257e-05/0.5442, allocations: 8.219 kB / 0.5053 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.5442, allocations: 31.88 kB / 0.5053 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.5442, allocations: 4 kB / 0.5053 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5443, allocations: 4 kB / 0.5053 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00278/0.547, allocations: 1.941 MB / 0.5072 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006016/0.5477, allocations: 278.6 kB / 0.5075 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.5478, allocations: 12.38 kB / 0.5075 GB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005349/0.5484, allocations: 46.56 kB / 0.5076 GB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.5485, allocations: 44.45 kB / 0.5076 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.65e-05/0.5486, allocations: 31.98 kB / 0.5076 GB, free: 9.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.551, allocations: 1.404 MB / 0.509 GB, free: 7.891 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.551, allocations: 0 / 0.509 GB, free: 7.891 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002884/0.5539, allocations: 0.7148 MB / 0.5097 GB, free: 7.176 MB / 382.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 (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.0003582/0.5543, allocations: 155.8 kB / 0.5098 GB, free: 7.016 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003599/0.5579, allocations: 2.217 MB / 0.512 GB, free: 4.801 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.5579, allocations: 0 / 0.512 GB, free: 4.801 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000746/0.5587, allocations: 0.534 MB / 0.5125 GB, free: 4.273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.5601, allocations: 294.4 kB / 0.5128 GB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009403/0.5695, allocations: 6.418 MB / 0.5191 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002404/0.5719, allocations: 2.282 MB / 0.5213 GB, free: 11.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002589/0.5745, allocations: 0.9962 MB / 0.5223 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003196/0.5748, allocations: 135.4 kB / 0.5224 GB, free: 10.08 MB / 398.1 MB Notification: Performance of SimCode: time 1.623e-06/0.5748, allocations: 0 / 0.5224 GB, free: 10.08 MB / 398.1 MB Notification: Performance of Templates: time 0.03489/0.6098, allocations: 17.56 MB / 0.5396 GB, free: 8.676 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)