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.001536/0.001536, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001783/0.001783, allocations: 220.4 kB / 23 MB, free: 4.914 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.352/1.352, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.04662/0.04662, allocations: 9.242 MB / 322.4 MB, free: 9.875 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.00216/0.00216, allocations: 63.91 kB / 448.9 MB, free: 14.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.1015, allocations: 55.47 MB / 0.4926 GB, free: 6.582 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01186/0.1133, allocations: 9.363 MB / 0.5017 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006195/0.1195, allocations: 2.856 MB / 0.5045 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.121, allocations: 51.81 kB / 0.5045 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.1222, allocations: 476.7 kB / 0.505 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004009/0.1262, allocations: 1.708 MB / 0.5067 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005118/0.1267, allocations: 175.7 kB / 0.5068 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00391/0.1306, allocations: 3.087 MB / 0.5098 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001239/0.1319, allocations: 0.9465 MB / 0.5108 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.1333, allocations: 1.144 MB / 0.5119 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00227/0.1356, allocations: 1.681 MB / 0.5135 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004864/0.1361, allocations: 296 kB / 0.5138 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1829/0.319, allocations: 0.8093 MB / 0.5146 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001533/0.3206, allocations: 1.521 MB / 0.5161 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001375/0.3219, allocations: 1.37 MB / 0.5174 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007405/0.3293, allocations: 6.087 MB / 0.5234 GB, free: 9.348 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3293, allocations: 3.25 kB / 0.5234 GB, free: 9.348 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3294, allocations: 0 / 0.5234 GB, free: 9.348 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001447/0.3295, allocations: 1.094 kB / 0.5234 GB, free: 9.348 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.01008/0.3396, allocations: 4.615 MB / 0.5279 GB, free: 7.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3396, allocations: 10.83 kB / 0.5279 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00693/0.3465, allocations: 1.927 MB / 0.5298 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.3498, allocations: 1.547 MB / 0.5313 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.3499, allocations: 192.9 kB / 0.5315 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004853/0.3504, allocations: 249.4 kB / 0.5317 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.3635, allocations: 9.789 MB / 0.5413 GB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-05/0.3636, allocations: 31.89 kB / 0.5413 GB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003433/0.364, allocations: 115.3 kB / 0.5414 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003042/0.367, allocations: 2.302 MB / 0.5437 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/0.3807, allocations: 8.47 MB / 0.5519 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04146/0.4221, allocations: 27.64 MB / 0.5789 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006123/0.4283, allocations: 2.252 MB / 0.5811 GB, free: 1.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/0.43, allocations: 0.974 MB / 0.5821 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008744/0.4388, allocations: 3.585 MB / 0.5856 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.4388, allocations: 51.81 kB / 0.5856 GB, free: 13.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 6.261e-06/0.4388, allocations: 4.797 kB / 0.5856 GB, free: 13.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.01759/0.4564, allocations: 8.096 MB / 0.5935 GB, free: 4.926 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.454e-05/0.4565, allocations: 72.72 kB / 0.5936 GB, free: 4.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004034/0.4605, allocations: 2.691 MB / 0.5962 GB, free: 2.117 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.4607, allocations: 53.64 kB / 0.5963 GB, free: 2.059 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.4628, allocations: 2.741 MB / 0.599 GB, free: 15.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007212/0.4635, allocations: 0.7078 MB / 0.5996 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/0.4649, allocations: 1.003 MB / 0.6006 GB, free: 13.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.465, allocations: 345.9 kB / 0.601 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002679/0.4677, allocations: 1.567 MB / 0.6025 GB, free: 11.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005042/0.4728, allocations: 4.352 MB / 0.6067 GB, free: 6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00836/0.4811, allocations: 6.381 MB / 0.613 GB, free: 14.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-05/0.4812, allocations: 28 kB / 0.613 GB, free: 14.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01076/0.492, allocations: 5.988 MB / 0.6188 GB, free: 8.719 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.054e-05/0.492, allocations: 48 kB / 0.6189 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/0.4921, allocations: 99.94 kB / 0.619 GB, free: 8.574 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007914/0.4929, allocations: 349.3 kB / 0.6193 GB, free: 8.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003299/0.4962, allocations: 1.096 MB / 0.6204 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004724/0.501, allocations: 3.537 MB / 0.6238 GB, free: 3.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/0.5041, allocations: 243.9 kB / 0.6241 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004782/0.5046, allocations: 300.8 kB / 0.6244 GB, free: 2.969 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.003154/0.5077, allocations: 1.895 MB / 0.6262 GB, free: 1.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004392/0.5082, allocations: 234.4 kB / 0.6264 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004195/0.5123, allocations: 2.362 MB / 0.6287 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000173/0.5125, allocations: 48.73 kB / 0.6288 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.5125, allocations: 7.984 kB / 0.6288 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.5125, allocations: 7.922 kB / 0.6288 GB, free: 14.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.524, allocations: 5.537 MB / 0.6342 GB, free: 8.809 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.524, allocations: 4 kB / 0.6342 GB, free: 8.805 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.5251, allocations: 259.7 kB / 0.6345 GB, free: 8.551 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005897/0.5257, allocations: 224.9 kB / 0.6347 GB, free: 8.328 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.5258, allocations: 35.98 kB / 0.6347 GB, free: 8.293 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003576/0.5294, allocations: 2.807 MB / 0.6374 GB, free: 5.398 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.746e-06/0.5294, allocations: 7.938 kB / 0.6375 GB, free: 5.391 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006076/0.5354, allocations: 3.682 MB / 0.641 GB, free: 1.645 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007322/0.5362, allocations: 222.6 kB / 0.6413 GB, free: 1.426 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004731/0.5366, allocations: 31.98 kB / 0.6413 GB, free: 1.395 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.5377, allocations: 79.91 kB / 0.6414 GB, free: 1.316 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.5379, allocations: 116.9 kB / 0.6415 GB, free: 1.203 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/0.538, allocations: 62.48 kB / 0.6415 GB, free: 1.145 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00299/0.541, allocations: 1.549 MB / 0.6431 GB, free: 15.58 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.541, allocations: 4 kB / 0.6431 GB, free: 15.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003861/0.5449, allocations: 0.8085 MB / 0.6438 GB, free: 14.77 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.0004132/0.5453, allocations: 165.7 kB / 0.644 GB, free: 14.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006955/0.5523, allocations: 3.706 MB / 0.6476 GB, free: 10.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.5523, allocations: 4.625 kB / 0.6476 GB, free: 10.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001977/0.5543, allocations: 1.131 MB / 0.6487 GB, free: 9.75 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.5562, allocations: 299.1 kB / 0.649 GB, free: 9.469 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/0.5738, allocations: 8.447 MB / 0.6573 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004283/0.5781, allocations: 2.46 MB / 0.6597 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009204/0.579, allocations: 239.4 kB / 0.6599 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of SimCode: time 9.32e-07/0.579, allocations: 0 / 0.6599 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of Templates: time 0.2765/0.8555, allocations: 66.86 MB / 0.7252 GB, free: 180 MB / 0.545 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: 11.541885775048286] Failed to read output from testmodel.py, exit status != 0: 0.8639349080622196 0.876119103 0.544168887 Calling exit ...