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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 191.6 kB / 22.23 MB, free: 5.156 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.05014/0.05014, allocations: 9.247 MB / 315.5 MB, free: 15.61 MB / 254.1 MB
"
[Timeout remaining time 180]
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=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin")
translateModel(PlanarMechanics.Examples.CounterSpin,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CounterSpin") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 63.89 kB / 439.7 MB, free: 11.11 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1154, allocations: 54.3 MB / 494 MB, free: 4.719 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CounterSpin): time 0.009386/0.1248, allocations: 6.921 MB / 0.4892 GB, free: 13.77 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.005467/0.1303, allocations: 2.375 MB / 0.4915 GB, free: 11.38 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001046/0.1313, allocations: 27.88 kB / 0.4916 GB, free: 11.35 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0008397/0.1321, allocations: 306.2 kB / 0.4919 GB, free: 11.05 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003099/0.1352, allocations: 1.171 MB / 0.493 GB, free: 9.875 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.1355, allocations: 79.78 kB / 0.4931 GB, free: 9.797 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003066/0.1386, allocations: 2.043 MB / 0.4951 GB, free: 7.754 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003206/0.1389, allocations: 67.39 kB / 0.4951 GB, free: 7.672 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.1404, allocations: 0.7198 MB / 0.4958 GB, free: 6.949 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.001957/0.1424, allocations: 1.172 MB / 0.497 GB, free: 5.773 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0003619/0.1427, allocations: 188 kB / 0.4972 GB, free: 5.59 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001633/0.1444, allocations: 0.7723 MB / 0.4979 GB, free: 4.816 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001169/0.1456, allocations: 1.04 MB / 0.4989 GB, free: 3.773 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001391/0.1469, allocations: 1.289 MB / 0.5002 GB, free: 2.477 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.005907/0.1528, allocations: 4.365 MB / 0.5045 GB, free: 14.09 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1529, allocations: 4 kB / 0.5045 GB, free: 14.09 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.522e-06/0.1529, allocations: 0 / 0.5045 GB, free: 14.09 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 8.246e-05/0.1529, allocations: 0 / 0.5045 GB, free: 14.09 MB / 382.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.008965/0.1619, allocations: 3.595 MB / 0.508 GB, free: 10.45 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.1619, allocations: 8.625 kB / 0.508 GB, free: 10.44 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006317/0.1683, allocations: 1.719 MB / 0.5097 GB, free: 8.719 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/0.1707, allocations: 1.097 MB / 0.5107 GB, free: 7.59 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.1708, allocations: 119.1 kB / 0.5108 GB, free: 7.473 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003651/0.1712, allocations: 148.1 kB / 0.511 GB, free: 7.328 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.2698/0.4409, allocations: 7.057 MB / 0.5179 GB, free: 32.1 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.4411, allocations: 13.59 kB / 0.5179 GB, free: 32.1 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009206/0.442, allocations: 68.12 kB / 0.5179 GB, free: 32.1 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003208/0.4452, allocations: 1.731 MB / 0.5196 GB, free: 32.09 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01342/0.4586, allocations: 6.456 MB / 0.5259 GB, free: 30.77 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03266/0.4913, allocations: 20.87 MB / 0.5463 GB, free: 17.04 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.004008/0.4953, allocations: 1.418 MB / 0.5477 GB, free: 16.36 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008731/0.4961, allocations: 0.5598 MB / 0.5483 GB, free: 16.09 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.003934/0.5001, allocations: 2.236 MB / 0.5504 GB, free: 14.8 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.5001, allocations: 35.22 kB / 0.5505 GB, free: 14.76 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=93): time 2.475e-06/0.5001, allocations: 0 / 0.5505 GB, free: 14.76 MB / 382.1 MB
Notification: Performance of matching and sorting (n=93): time 0.003497/0.5036, allocations: 1.811 MB / 0.5522 GB, free: 13.32 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.5036, allocations: 56.06 kB / 0.5523 GB, free: 13.25 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002439/0.5061, allocations: 2.205 MB / 0.5544 GB, free: 11.09 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.5061, allocations: 37.64 kB / 0.5545 GB, free: 11.05 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0007263/0.5068, allocations: 1.903 MB / 0.5563 GB, free: 9.23 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.507, allocations: 380.6 kB / 0.5567 GB, free: 8.863 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006259/0.5077, allocations: 0.6434 MB / 0.5573 GB, free: 8.211 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 4.419e-05/0.5077, allocations: 301.1 kB / 0.5576 GB, free: 7.914 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.509, allocations: 1.013 MB / 0.5586 GB, free: 6.898 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.5108, allocations: 2.896 MB / 0.5614 GB, free: 3.059 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.004194/0.515, allocations: 4.198 MB / 0.5655 GB, free: 13.93 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.385e-05/0.5151, allocations: 21.62 kB / 0.5656 GB, free: 13.91 MB / 398.1 MB
Notification: Performance of matching and sorting (n=413) (initialization): time 0.007028/0.5221, allocations: 3.833 MB / 0.5693 GB, free: 10.08 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.492e-05/0.5222, allocations: 32 kB / 0.5693 GB, free: 10.05 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.853e-05/0.5222, allocations: 71.19 kB / 0.5694 GB, free: 9.98 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001027/0.5223, allocations: 88 kB / 0.5695 GB, free: 9.895 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/0.5245, allocations: 0.7141 MB / 0.5702 GB, free: 9.18 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001247/0.5246, allocations: 139.4 kB / 0.5703 GB, free: 9.043 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002477/0.5271, allocations: 475.6 kB / 0.5708 GB, free: 8.578 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003184/0.5274, allocations: 196 kB / 0.571 GB, free: 8.387 MB / 398.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.002259/0.5297, allocations: 1.394 MB / 0.5723 GB, free: 6.984 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.53, allocations: 186.7 kB / 0.5725 GB, free: 6.801 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002232/0.5322, allocations: 1.195 MB / 0.5737 GB, free: 5.602 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.934e-05/0.5323, allocations: 19.98 kB / 0.5737 GB, free: 5.582 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5323, allocations: 1.188 kB / 0.5737 GB, free: 5.582 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.5324, allocations: 3.984 kB / 0.5737 GB, free: 5.578 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007262/0.5396, allocations: 3.918 MB / 0.5775 GB, free: 1.598 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.5396, allocations: 0 / 0.5775 GB, free: 1.598 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006344/0.5403, allocations: 135.8 kB / 0.5776 GB, free: 1.465 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.706e-05/0.5403, allocations: 16.22 kB / 0.5777 GB, free: 1.449 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.603e-05/0.5403, allocations: 19.98 kB / 0.5777 GB, free: 1.43 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.5403, allocations: 4 kB / 0.5777 GB, free: 1.426 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.5403, allocations: 4.875 kB / 0.5777 GB, free: 1.422 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003081/0.5434, allocations: 1.962 MB / 0.5796 GB, free: 15.43 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0005292/0.544, allocations: 190.7 kB / 0.5798 GB, free: 15.24 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/0.5441, allocations: 19.94 kB / 0.5798 GB, free: 15.22 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005857/0.5447, allocations: 41.98 kB / 0.5798 GB, free: 15.18 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.5448, allocations: 52.36 kB / 0.5799 GB, free: 15.13 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.591e-05/0.5449, allocations: 27.98 kB / 0.5799 GB, free: 15.1 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.002318/0.5472, allocations: 1.416 MB / 0.5813 GB, free: 13.7 MB / 414.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.5472, allocations: 0 / 0.5813 GB, free: 13.7 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.002651/0.5499, allocations: 0.7146 MB / 0.582 GB, free: 12.98 MB / 414.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.0003575/0.5502, allocations: 160.4 kB / 0.5822 GB, free: 12.82 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.00404/0.5543, allocations: 2.171 MB / 0.5843 GB, free: 10.66 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.5543, allocations: 0 / 0.5843 GB, free: 10.66 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008262/0.5551, allocations: 0.4901 MB / 0.5848 GB, free: 10.18 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.5566, allocations: 314 kB / 0.585 GB, free: 9.887 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/0.567, allocations: 5.352 MB / 0.5903 GB, free: 4.48 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002724/0.5697, allocations: 2.283 MB / 0.5925 GB, free: 2.16 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.002454/0.5722, allocations: 0.9767 MB / 0.5935 GB, free: 1.18 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.5725, allocations: 139.4 kB / 0.5936 GB, free: 1.043 MB / 414.1 MB
Notification: Performance of SimCode: time 7.72e-07/0.5725, allocations: 0 / 0.5936 GB, free: 1.043 MB / 414.1 MB
Notification: Performance of Templates: time 0.04232/0.6148, allocations: 20.71 MB / 0.6138 GB, free: 12.44 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CounterSpin.makefile [Timeout 660]
(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) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.909432607702911]
Failed to read output from testmodel.py, exit status != 0:
0.6234358800575137 0.63953979 0.48335793200000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f52c53997b0>