Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.001413/0.001413, allocations: 110 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.001345/0.001345, allocations: 190.9 kB / 22.23 MB, free: 5.16 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.461/1.461, allocations: 225.6 MB / 251 MB, free: 13.01 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.04978/0.04978, allocations: 9.259 MB / 315.5 MB, free: 15.6 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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo")
translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 67.89 kB / 439.8 MB, free: 11.06 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1243, allocations: 54.28 MB / 494 MB, free: 4.688 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01337/0.1376, allocations: 10.77 MB / 0.493 GB, free: 9.867 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.006513/0.1441, allocations: 2.988 MB / 0.4959 GB, free: 6.871 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.1452, allocations: 47.81 kB / 0.4959 GB, free: 6.824 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001013/0.1462, allocations: 476.8 kB / 0.4964 GB, free: 6.355 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003777/0.15, allocations: 1.72 MB / 0.4981 GB, free: 4.629 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.1505, allocations: 175.7 kB / 0.4982 GB, free: 4.457 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.004301/0.1548, allocations: 3.125 MB / 0.5013 GB, free: 1.328 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001486/0.1563, allocations: 0.9543 MB / 0.5022 GB, free: 356 kB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001816/0.1581, allocations: 1.156 MB / 0.5034 GB, free: 15.19 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002451/0.1605, allocations: 1.763 MB / 0.5051 GB, free: 13.42 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0006119/0.1611, allocations: 292 kB / 0.5054 GB, free: 13.13 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001937/0.1631, allocations: 0.9245 MB / 0.5063 GB, free: 12.21 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001728/0.1648, allocations: 1.542 MB / 0.5078 GB, free: 10.66 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002409/0.1672, allocations: 1.953 MB / 0.5097 GB, free: 8.695 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.008417/0.1756, allocations: 6.111 MB / 0.5156 GB, free: 2.559 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1756, allocations: 0 / 0.5156 GB, free: 2.559 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.984e-06/0.1756, allocations: 0 / 0.5156 GB, free: 2.559 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 0.0002045/0.1759, allocations: 0 / 0.5156 GB, free: 2.559 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: 1467
 * Number of variables: 1467
Notification: Performance of Generate backend data structure: time 0.2319/0.4077, allocations: 4.599 MB / 0.5201 GB, free: 32.1 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4078, allocations: 9.625 kB / 0.5201 GB, free: 32.1 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007475/0.4153, allocations: 1.927 MB / 0.522 GB, free: 31.83 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003567/0.4188, allocations: 1.543 MB / 0.5235 GB, free: 31.52 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.419, allocations: 194.1 kB / 0.5237 GB, free: 31.51 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006042/0.4196, allocations: 253.7 kB / 0.524 GB, free: 31.48 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01588/0.4355, allocations: 9.78 MB / 0.5335 GB, free: 27.26 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.672e-05/0.4356, allocations: 27.91 kB / 0.5335 GB, free: 27.24 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003444/0.4359, allocations: 124.2 kB / 0.5336 GB, free: 27.15 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003428/0.4394, allocations: 2.302 MB / 0.5359 GB, free: 26.58 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/0.453, allocations: 8.478 MB / 0.5442 GB, free: 21.09 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03776/0.4908, allocations: 30.56 MB / 0.574 GB, free: 6.113 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.006455/0.4973, allocations: 2.253 MB / 0.5762 GB, free: 3.859 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001855/0.4991, allocations: 0.9709 MB / 0.5772 GB, free: 2.887 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.008451/0.5076, allocations: 3.961 MB / 0.581 GB, free: 14.93 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.5076, allocations: 47.88 kB / 0.5811 GB, free: 14.87 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=159): time 3.757e-06/0.5076, allocations: 0 / 0.5811 GB, free: 14.87 MB / 414.1 MB
Notification: Performance of matching and sorting (n=181): time 0.01871/0.5263, allocations: 8.153 MB / 0.589 GB, free: 6.68 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.5264, allocations: 71.25 kB / 0.5891 GB, free: 6.598 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005131/0.5315, allocations: 3.191 MB / 0.5922 GB, free: 3.391 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001182/0.5316, allocations: 49.7 kB / 0.5923 GB, free: 3.336 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.002503/0.5341, allocations: 2.706 MB / 0.5949 GB, free: 0.6055 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0008082/0.535, allocations: 0.7054 MB / 0.5956 GB, free: 15.89 MB / 430.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/0.5364, allocations: 0.9809 MB / 0.5966 GB, free: 14.9 MB / 430.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001697/0.5365, allocations: 305.1 kB / 0.5969 GB, free: 14.6 MB / 430.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002736/0.5393, allocations: 1.567 MB / 0.5984 GB, free: 13.03 MB / 430.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.005484/0.5447, allocations: 4.36 MB / 0.6026 GB, free: 7.285 MB / 430.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.009081/0.5538, allocations: 6.379 MB / 0.6089 GB, free: 15.53 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.168e-05/0.5539, allocations: 28 kB / 0.6089 GB, free: 15.5 MB / 446.1 MB
Notification: Performance of matching and sorting (n=642) (initialization): time 0.01212/0.566, allocations: 6.043 MB / 0.6148 GB, free: 9.461 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 7.419e-05/0.5661, allocations: 44 kB / 0.6148 GB, free: 9.418 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001419/0.5662, allocations: 100 kB / 0.6149 GB, free: 9.32 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0008942/0.5671, allocations: 344.5 kB / 0.6153 GB, free: 8.984 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003348/0.5705, allocations: 1.099 MB / 0.6163 GB, free: 7.883 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005106/0.5756, allocations: 3.602 MB / 0.6199 GB, free: 4.164 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003497/0.5791, allocations: 243.9 kB / 0.6201 GB, free: 3.926 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005234/0.5796, allocations: 296 kB / 0.6204 GB, free: 3.637 MB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 446
 * Number of states: 0 ()
 * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],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 (597):
 * Single equations (assignments): 591
 * Array equations: 5
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(2,17,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.003233/0.5828, allocations: 1.892 MB / 0.6222 GB, free: 1.734 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/0.5833, allocations: 286.1 kB / 0.6225 GB, free: 1.453 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004593/0.5879, allocations: 2.41 MB / 0.6248 GB, free: 15.02 MB / 462.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001836/0.5881, allocations: 39.97 kB / 0.6249 GB, free: 14.98 MB / 462.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.5881, allocations: 8.062 kB / 0.6249 GB, free: 14.97 MB / 462.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.5881, allocations: 8.25 kB / 0.6249 GB, free: 14.96 MB / 462.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/0.6009, allocations: 6.81 MB / 0.6315 GB, free: 8.039 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.6009, allocations: 4.469 kB / 0.6316 GB, free: 8.035 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.602, allocations: 267.5 kB / 0.6318 GB, free: 7.773 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0006412/0.6027, allocations: 220.3 kB / 0.632 GB, free: 7.559 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.812e-05/0.6028, allocations: 39.97 kB / 0.6321 GB, free: 7.52 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004207/0.607, allocations: 2.848 MB / 0.6348 GB, free: 4.555 MB / 462.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.607, allocations: 8 kB / 0.6348 GB, free: 4.547 MB / 462.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006747/0.6137, allocations: 3.741 MB / 0.6385 GB, free: 0.7383 MB / 462.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009702/0.6147, allocations: 278.1 kB / 0.6388 GB, free: 476 kB / 462.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003134/0.615, allocations: 39.97 kB / 0.6388 GB, free: 436 kB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009762/0.616, allocations: 87.78 kB / 0.6389 GB, free: 348 kB / 462.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.6162, allocations: 109 kB / 0.639 GB, free: 236 kB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.6163, allocations: 55.98 kB / 0.639 GB, free: 180 kB / 462.1 MB
Notification: Performance of sorting global known variables: time 0.00342/0.6198, allocations: 2.029 MB / 0.641 GB, free: 14.14 MB / 478.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.6198, allocations: 0 / 0.641 GB, free: 14.14 MB / 478.1 MB
Notification: Performance of remove unused functions: time 0.003848/0.6236, allocations: 0.8436 MB / 0.6418 GB, free: 13.3 MB / 478.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 16
 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v)
 * 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 (143):
 * Single equations (assignments): 137
 * Array equations: 5
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(2,15,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0004428/0.6241, allocations: 166.8 kB / 0.642 GB, free: 13.13 MB / 478.1 MB
Notification: Performance of simCode: created initialization part: time 0.007134/0.6312, allocations: 3.703 MB / 0.6456 GB, free: 9.438 MB / 478.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.6312, allocations: 0 / 0.6456 GB, free: 9.438 MB / 478.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002014/0.6332, allocations: 1.14 MB / 0.6467 GB, free: 8.281 MB / 478.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.6355, allocations: 472.7 kB / 0.6472 GB, free: 7.832 MB / 478.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/0.6509, allocations: 8.069 MB / 0.6551 GB, free: 15.68 MB / 494.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003643/0.6545, allocations: 3.003 MB / 0.658 GB, free: 12.64 MB / 494.1 MB
Notification: Performance of simCode: alias equations: time 0.003643/0.6581, allocations: 1.432 MB / 0.6594 GB, free: 11.2 MB / 494.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005528/0.6587, allocations: 207.4 kB / 0.6596 GB, free: 11 MB / 494.1 MB
Notification: Performance of SimCode: time 1.433e-06/0.6587, allocations: 0 / 0.6596 GB, free: 11 MB / 494.1 MB
Notification: Performance of Templates: time 0.06347/0.7222, allocations: 31.35 MB / 0.6902 GB, free: 11.79 MB / 0.5137 GB
"
[Timeout remaining time 659]
make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile [Timeout 660]
(rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo  -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 6.375516629777849]
Failed to read output from testmodel.py, exit status != 0:
0.7308367174118757 0.745603385 0.5668857860000001
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f7ec9dd97b0>