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.001091/0.001091, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.009014/0.009014, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.401/1.401, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1703/0.1703, allocations: 9.112 MB / 300.5 MB, free: 2.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003659, allocations: 8 kB / 363.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1161, allocations: 52.43 MB / 416.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.2281/0.3443, allocations: 13.74 MB / 429.9 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006618/0.3509, allocations: 3.73 MB / 433.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002063/0.3531, allocations: 45.75 kB / 433.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007235/0.3538, allocations: 249.4 kB / 433.9 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002602/0.3564, allocations: 1.064 MB / 435 MB, free: 33.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.3567, allocations: 68.22 kB / 435 MB, free: 33.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.3593, allocations: 2.891 MB / 437.9 MB, free: 33.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.3596, allocations: 172.7 kB / 438.1 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000772/0.3604, allocations: 0.5929 MB / 438.7 MB, free: 33.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001202/0.3616, allocations: 1.059 MB / 439.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002408/0.3619, allocations: 99.09 kB / 439.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.3631, allocations: 0.7041 MB / 440.6 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007803/0.3639, allocations: 0.957 MB / 441.5 MB, free: 32.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.3649, allocations: 1.236 MB / 442.8 MB, free: 31.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003359/0.3683, allocations: 3.92 MB / 446.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3683, allocations: 0 / 446.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3683, allocations: 3.219 kB / 446.7 MB, free: 30.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.319e-05/0.3684, allocations: 0 / 446.7 MB, free: 30.8 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.006884/0.3753, allocations: 3.078 MB / 449.8 MB, free: 29.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.3753, allocations: 10.22 kB / 449.8 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006324/0.3817, allocations: 1.738 MB / 451.5 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0023/0.384, allocations: 1.162 MB / 452.7 MB, free: 28.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.755e-05/0.3841, allocations: 112.3 kB / 452.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003233/0.3844, allocations: 145.3 kB / 452.9 MB, free: 28.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008588/0.393, allocations: 7.06 MB / 460 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.97e-05/0.3931, allocations: 17.78 kB / 460 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002194/0.3933, allocations: 72.84 kB / 460.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002584/0.3959, allocations: 1.718 MB / 461.8 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/0.4082, allocations: 6.475 MB / 468.3 MB, free: 22.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03065/0.4389, allocations: 20.97 MB / 489.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003891/0.4428, allocations: 1.938 MB / 491.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.4439, allocations: 0.5901 MB / 491.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005578/0.4495, allocations: 3.345 MB / 495.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.4495, allocations: 43.06 kB / 495.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=93): time 3.827e-06/0.4495, allocations: 4 kB / 495.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=93): time 0.003731/0.4533, allocations: 1.815 MB / 497 MB, free: 1.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.4533, allocations: 59.97 kB / 497 MB, free: 1.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002918/0.4562, allocations: 2.192 MB / 499.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.079e-05/0.4563, allocations: 41.69 kB / 499.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001544/0.4579, allocations: 1.813 MB / 0.4893 GB, free: 13.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003785/0.4583, allocations: 375.3 kB / 0.4897 GB, free: 13.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.4586, allocations: 256.5 kB / 0.4899 GB, free: 12.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.4588, allocations: 305.1 kB / 0.4902 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.4604, allocations: 1.002 MB / 0.4912 GB, free: 11.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003077/0.4635, allocations: 2.909 MB / 0.494 GB, free: 7.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004828/0.4683, allocations: 4.181 MB / 0.4981 GB, free: 2.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-05/0.4684, allocations: 20 kB / 0.4981 GB, free: 2.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.006356/0.4747, allocations: 3.833 MB / 0.5019 GB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/0.4748, allocations: 40.25 kB / 0.5019 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.734e-05/0.4749, allocations: 68.31 kB / 0.502 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.572e-05/0.475, allocations: 92 kB / 0.5021 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002023/0.477, allocations: 0.7057 MB / 0.5028 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001073/0.4771, allocations: 139.4 kB / 0.5029 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.4795, allocations: 470.9 kB / 0.5033 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002721/0.4798, allocations: 196 kB / 0.5035 GB, free: 13.13 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.002252/0.482, allocations: 1.39 MB / 0.5049 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.4823, allocations: 169.8 kB / 0.505 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.4844, allocations: 1.203 MB / 0.5062 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-05/0.4845, allocations: 19.98 kB / 0.5062 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4845, allocations: 4 kB / 0.5062 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4845, allocations: 8.047 kB / 0.5063 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006414/0.491, allocations: 3.94 MB / 0.5101 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.491, allocations: 0 / 0.5101 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005833/0.4916, allocations: 127.9 kB / 0.5102 GB, free: 6.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.321e-05/0.4916, allocations: 8 kB / 0.5102 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.446e-05/0.4917, allocations: 19.98 kB / 0.5102 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.114e-05/0.4917, allocations: 12.16 kB / 0.5103 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4917, allocations: 8 kB / 0.5103 GB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.4944, allocations: 1.957 MB / 0.5122 GB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004844/0.4949, allocations: 274.7 kB / 0.5124 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.4951, allocations: 16 kB / 0.5125 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005863/0.4957, allocations: 43.73 kB / 0.5125 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.08e-05/0.4958, allocations: 48.45 kB / 0.5125 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.484e-05/0.4958, allocations: 31.98 kB / 0.5126 GB, free: 3.699 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002127/0.498, allocations: 1.416 MB / 0.514 GB, free: 2.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.498, allocations: 3.938 kB / 0.514 GB, free: 2.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002812/0.5008, allocations: 0.7081 MB / 0.5147 GB, free: 1.578 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 (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.0003556/0.5012, allocations: 151.2 kB / 0.5148 GB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003563/0.5047, allocations: 2.241 MB / 0.517 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5048, allocations: 0.75 kB / 0.517 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007183/0.5055, allocations: 0.5239 MB / 0.5175 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001963/0.5075, allocations: 295.1 kB / 0.5178 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009839/0.5173, allocations: 6.697 MB / 0.5243 GB, free: 7.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002439/0.5198, allocations: 2.279 MB / 0.5265 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002554/0.5224, allocations: 1 MB / 0.5275 GB, free: 4.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.5227, allocations: 135.4 kB / 0.5276 GB, free: 4.188 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5227, allocations: 0 / 0.5276 GB, free: 4.188 MB / 398.1 MB Notification: Performance of Templates: time 0.03663/0.5593, allocations: 17.89 MB / 0.5451 GB, free: 2.406 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)