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.006682/0.006682, allocations: 101.1 kB / 15.73 MB, free: 6.016 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.001395/0.001395, allocations: 192.7 kB / 16.67 MB, free: 5.934 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.466/1.466, allocations: 222.9 MB / 240.3 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04432/0.04432, allocations: 9.134 MB / 299.7 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 63.89 kB / 414.6 MB, free: 21.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09572, allocations: 51.44 MB / 466.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.00928/0.105, allocations: 6.847 MB / 472.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005415/0.1105, allocations: 2.351 MB / 475.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000947/0.1115, allocations: 27.94 kB / 475.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009714/0.1126, allocations: 298.2 kB / 475.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00321/0.1158, allocations: 1.136 MB / 476.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.1162, allocations: 75.84 kB / 476.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002733/0.119, allocations: 2.032 MB / 478.8 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003903/0.1194, allocations: 179.1 kB / 479 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.1205, allocations: 0.7042 MB / 479.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.1222, allocations: 1.059 MB / 480.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000647/0.1228, allocations: 188 kB / 481 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.1244, allocations: 0.7528 MB / 481.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001478/0.1259, allocations: 1.013 MB / 482.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002766/0.1286, allocations: 1.293 MB / 484 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005683/0.1343, allocations: 4.354 MB / 488.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1344, allocations: 0 / 488.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1344, allocations: 0 / 488.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.124e-05/0.1344, allocations: 0 / 488.4 MB, free: 11.39 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.007262/0.1417, allocations: 3.667 MB / 492 MB, free: 7.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1418, allocations: 12.03 kB / 492.1 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006153/0.1479, allocations: 1.719 MB / 493.8 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.1496, allocations: 1.162 MB / 494.9 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.332e-05/0.1497, allocations: 119 kB / 495.1 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002845/0.15, allocations: 148.2 kB / 495.2 MB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00934/0.1594, allocations: 7.05 MB / 0.4905 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.295e-05/0.1594, allocations: 15.88 kB / 0.4905 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003019/0.1598, allocations: 79.81 kB / 0.4906 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002698/0.1625, allocations: 1.726 MB / 0.4923 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/0.1745, allocations: 6.466 MB / 0.4986 GB, free: 4.809 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2557/0.4303, allocations: 20.92 MB / 0.519 GB, free: 28.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004312/0.4347, allocations: 1.935 MB / 0.5209 GB, free: 27.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.4357, allocations: 0.5983 MB / 0.5215 GB, free: 27.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004877/0.4406, allocations: 3.36 MB / 0.5248 GB, free: 25.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.4407, allocations: 37.88 kB / 0.5248 GB, free: 25.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=93): time 3.767e-06/0.4407, allocations: 1.828 kB / 0.5248 GB, free: 25.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.004001/0.4447, allocations: 1.815 MB / 0.5266 GB, free: 24.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.4448, allocations: 64.72 kB / 0.5266 GB, free: 24.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.4477, allocations: 2.199 MB / 0.5288 GB, free: 23.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.4477, allocations: 37.42 kB / 0.5288 GB, free: 23.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007141/0.4484, allocations: 1.899 MB / 0.5307 GB, free: 22.58 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/0.4486, allocations: 383.9 kB / 0.531 GB, free: 22.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006377/0.4493, allocations: 0.6428 MB / 0.5317 GB, free: 21.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.275e-05/0.4493, allocations: 307.6 kB / 0.532 GB, free: 21.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.4506, allocations: 1.005 MB / 0.5329 GB, free: 21.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002124/0.4527, allocations: 2.908 MB / 0.5358 GB, free: 17.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/0.4563, allocations: 4.186 MB / 0.5399 GB, free: 14.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.9e-05/0.4563, allocations: 18.56 kB / 0.5399 GB, free: 14.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.005542/0.4619, allocations: 3.835 MB / 0.5436 GB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.4619, allocations: 32 kB / 0.5437 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-05/0.462, allocations: 72.12 kB / 0.5437 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.879e-05/0.4621, allocations: 88 kB / 0.5438 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001847/0.4639, allocations: 0.7135 MB / 0.5445 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.618e-05/0.464, allocations: 139.3 kB / 0.5446 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/0.4664, allocations: 475.9 kB / 0.5451 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002491/0.4667, allocations: 200 kB / 0.5453 GB, free: 10.08 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.00188/0.4686, allocations: 1.395 MB / 0.5466 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.4688, allocations: 182.8 kB / 0.5468 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/0.4705, allocations: 1.197 MB / 0.548 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.904e-05/0.4706, allocations: 19.98 kB / 0.548 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4707, allocations: 3.938 kB / 0.548 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4707, allocations: 3.984 kB / 0.548 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005312/0.476, allocations: 3.936 MB / 0.5519 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.476, allocations: 10.84 kB / 0.5519 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/0.4766, allocations: 135.8 kB / 0.552 GB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-06/0.4766, allocations: 7.938 kB / 0.552 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.071e-05/0.4767, allocations: 19.98 kB / 0.552 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.311e-06/0.4767, allocations: 4 kB / 0.552 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4767, allocations: 4 kB / 0.552 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.4788, allocations: 1.967 MB / 0.554 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003718/0.4792, allocations: 271.7 kB / 0.5542 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001838/0.4793, allocations: 19.52 kB / 0.5542 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005731/0.4799, allocations: 35.95 kB / 0.5543 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.498e-05/0.48, allocations: 52.38 kB / 0.5543 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.75e-05/0.4801, allocations: 28 kB / 0.5543 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001867/0.482, allocations: 1.416 MB / 0.5557 GB, free: 15.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.482, allocations: 0 / 0.5557 GB, free: 15.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002725/0.4847, allocations: 0.7166 MB / 0.5564 GB, free: 14.53 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.000341/0.4851, allocations: 158.2 kB / 0.5566 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003498/0.4886, allocations: 2.256 MB / 0.5588 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.4886, allocations: 0 / 0.5588 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007359/0.4893, allocations: 0.5228 MB / 0.5593 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.4909, allocations: 312.3 kB / 0.5596 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.5011, allocations: 5.355 MB / 0.5648 GB, free: 5.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003024/0.5041, allocations: 2.281 MB / 0.567 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002555/0.5067, allocations: 0.9805 MB / 0.568 GB, free: 2.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/0.5072, allocations: 139.4 kB / 0.5681 GB, free: 2.5 MB / 398.1 MB Notification: Performance of SimCode: time 1.573e-06/0.5072, allocations: 0 / 0.5681 GB, free: 2.5 MB / 398.1 MB Notification: Performance of Templates: time 0.03846/0.5457, allocations: 18.31 MB / 0.586 GB, free: 312 kB / 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)