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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 214.3 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05025/0.05025, allocations: 9.239 MB / 321.7 MB, free: 9.84 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/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002396/0.002396, allocations: 75.88 kB / 448.2 MB, free: 14.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1031, allocations: 55.46 MB / 0.4918 GB, free: 6.516 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01228/0.1153, allocations: 9.362 MB / 0.501 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006346/0.1217, allocations: 2.868 MB / 0.5038 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001156/0.1228, allocations: 51.81 kB / 0.5038 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009925/0.1238, allocations: 464.8 kB / 0.5043 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004044/0.1279, allocations: 1.716 MB / 0.5059 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.1284, allocations: 175.7 kB / 0.5061 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004029/0.1324, allocations: 3.068 MB / 0.5091 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.1337, allocations: 0.9503 MB / 0.51 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.1352, allocations: 1.144 MB / 0.5111 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002212/0.1374, allocations: 1.681 MB / 0.5128 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004862/0.1379, allocations: 292 kB / 0.5131 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.201/0.3389, allocations: 0.8063 MB / 0.5138 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.3404, allocations: 1.522 MB / 0.5153 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.3417, allocations: 1.382 MB / 0.5167 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00607/0.3478, allocations: 6.08 MB / 0.5226 GB, free: 9.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3478, allocations: 0.7031 kB / 0.5226 GB, free: 9.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3478, allocations: 0.5312 kB / 0.5226 GB, free: 9.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001439/0.3479, allocations: 0 / 0.5226 GB, free: 9.297 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.01096/0.3589, allocations: 4.623 MB / 0.5271 GB, free: 7.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3589, allocations: 10.03 kB / 0.5271 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007297/0.3662, allocations: 1.93 MB / 0.529 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003051/0.3693, allocations: 1.542 MB / 0.5305 GB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.3694, allocations: 190.6 kB / 0.5307 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005233/0.3699, allocations: 253.8 kB / 0.531 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01381/0.3837, allocations: 9.792 MB / 0.5405 GB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.284e-05/0.3838, allocations: 28.52 kB / 0.5405 GB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003523/0.3842, allocations: 124.6 kB / 0.5407 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003311/0.3875, allocations: 2.302 MB / 0.5429 GB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.4018, allocations: 8.454 MB / 0.5512 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04785/0.4496, allocations: 27.64 MB / 0.5782 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007127/0.4568, allocations: 2.246 MB / 0.5804 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/0.4588, allocations: 0.9779 MB / 0.5813 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01005/0.4689, allocations: 3.583 MB / 0.5848 GB, free: 13.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.4689, allocations: 56.5 kB / 0.5849 GB, free: 12.95 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 5.36e-06/0.469, allocations: 0 / 0.5849 GB, free: 12.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.02023/0.4892, allocations: 8.093 MB / 0.5928 GB, free: 4.863 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.4893, allocations: 69.84 kB / 0.5928 GB, free: 4.785 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005203/0.4945, allocations: 2.699 MB / 0.5955 GB, free: 2.051 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/0.4946, allocations: 49.7 kB / 0.5955 GB, free: 1.996 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002412/0.497, allocations: 2.74 MB / 0.5982 GB, free: 15.26 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008567/0.4979, allocations: 0.7094 MB / 0.5989 GB, free: 14.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002/0.4999, allocations: 0.9995 MB / 0.5999 GB, free: 13.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.5001, allocations: 349.9 kB / 0.6002 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/0.5032, allocations: 1.563 MB / 0.6017 GB, free: 11.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005666/0.5089, allocations: 4.356 MB / 0.606 GB, free: 5.938 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009086/0.518, allocations: 6.39 MB / 0.6122 GB, free: 14.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/0.5181, allocations: 28 kB / 0.6122 GB, free: 14.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01175/0.5299, allocations: 5.985 MB / 0.6181 GB, free: 8.629 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.379e-05/0.5299, allocations: 48 kB / 0.6181 GB, free: 8.582 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001679/0.5301, allocations: 99.94 kB / 0.6182 GB, free: 8.484 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009034/0.531, allocations: 352.7 kB / 0.6186 GB, free: 8.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003611/0.5346, allocations: 1.092 MB / 0.6196 GB, free: 7.047 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005081/0.5397, allocations: 3.545 MB / 0.6231 GB, free: 3.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003282/0.543, allocations: 247.9 kB / 0.6233 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005907/0.5436, allocations: 295.2 kB / 0.6236 GB, free: 2.883 MB / 462.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.003448/0.547, allocations: 1.89 MB / 0.6255 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005083/0.5475, allocations: 238.4 kB / 0.6257 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004716/0.5523, allocations: 2.368 MB / 0.628 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001918/0.5524, allocations: 47.97 kB / 0.628 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.5525, allocations: 0 / 0.628 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.5525, allocations: 7.969 kB / 0.6281 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/0.5651, allocations: 5.543 MB / 0.6335 GB, free: 8.715 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.5651, allocations: 4 kB / 0.6335 GB, free: 8.711 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.5662, allocations: 259.6 kB / 0.6337 GB, free: 8.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006263/0.5668, allocations: 221 kB / 0.6339 GB, free: 8.238 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.5669, allocations: 35.98 kB / 0.634 GB, free: 8.203 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003701/0.5706, allocations: 2.803 MB / 0.6367 GB, free: 5.309 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/0.5706, allocations: 7.938 kB / 0.6367 GB, free: 5.301 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006237/0.5769, allocations: 3.679 MB / 0.6403 GB, free: 1.555 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006563/0.5775, allocations: 218.4 kB / 0.6405 GB, free: 1.34 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004331/0.578, allocations: 35.03 kB / 0.6405 GB, free: 1.309 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.579, allocations: 79.91 kB / 0.6406 GB, free: 1.23 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.5792, allocations: 117 kB / 0.6407 GB, free: 1.117 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.5794, allocations: 59.98 kB / 0.6408 GB, free: 1.059 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002988/0.5823, allocations: 1.548 MB / 0.6423 GB, free: 15.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5823, allocations: 0 / 0.6423 GB, free: 15.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003921/0.5863, allocations: 0.8154 MB / 0.6431 GB, free: 14.68 MB / 494.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.0003982/0.5867, allocations: 169.9 kB / 0.6433 GB, free: 14.51 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007256/0.5939, allocations: 3.7 MB / 0.6469 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.5939, allocations: 5.594 kB / 0.6469 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.5959, allocations: 1.131 MB / 0.648 GB, free: 9.668 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001876/0.5978, allocations: 304.2 kB / 0.6483 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01622/0.614, allocations: 8 MB / 0.6561 GB, free: 1.312 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004294/0.6183, allocations: 2.455 MB / 0.6585 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003567/0.6219, allocations: 1.366 MB / 0.6598 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000768/0.6227, allocations: 187.4 kB / 0.66 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of SimCode: time 1.743e-06/0.6227, allocations: 3.938 kB / 0.66 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of Templates: time 0.05381/0.6765, allocations: 24.32 MB / 0.6837 GB, free: 5.375 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.010978136211634] Failed to read output from testmodel.py, exit status != 0: 0.6858554929494858 0.700376727 0.349410679 Calling exit ...