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.001341/0.001341, allocations: 104 kB / 16.45 MB, free: 6.453 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.00138/0.00138, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.526/1.526, allocations: 230.6 MB / 252.8 MB, free: 8.934 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.04794/0.04794, allocations: 9.216 MB / 318.1 MB, free: 11.2 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: "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) [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.001953/0.001953, allocations: 71.88 kB / 442.5 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1224, allocations: 55.42 MB / 498 MB, free: 11 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.0134/0.1358, allocations: 10.73 MB / 0.4968 GB, free: 224 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008216/0.144, allocations: 3.011 MB / 0.4997 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002052/0.146, allocations: 43.88 kB / 0.4997 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.1475, allocations: 464.8 kB / 0.5002 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005571/0.1531, allocations: 1.708 MB / 0.5019 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007493/0.1538, allocations: 175.8 kB / 0.502 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005467/0.1593, allocations: 3.095 MB / 0.505 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001807/0.1611, allocations: 0.9656 MB / 0.506 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.1632, allocations: 1.152 MB / 0.5071 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002687/0.1659, allocations: 1.755 MB / 0.5088 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007265/0.1666, allocations: 292 kB / 0.5091 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002285/0.1689, allocations: 0.9284 MB / 0.51 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001767/0.1707, allocations: 1.527 MB / 0.5115 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2579/0.4286, allocations: 1.935 MB / 0.5134 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007866/0.4364, allocations: 6.07 MB / 0.5193 GB, free: 7.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4364, allocations: 0 / 0.5193 GB, free: 7.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4364, allocations: 0.7031 kB / 0.5193 GB, free: 7.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002144/0.4366, allocations: 5.906 kB / 0.5193 GB, free: 7.969 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.01399/0.4506, allocations: 4.698 MB / 0.5239 GB, free: 6.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/0.4507, allocations: 9.625 kB / 0.5239 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001661/0.4524, allocations: 0.6708 MB / 0.5246 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008366/0.4607, allocations: 1.936 MB / 0.5265 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005762/0.4665, allocations: 1.604 MB / 0.528 GB, free: 5.363 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/0.4667, allocations: 193.7 kB / 0.5282 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001316/0.468, allocations: 257.3 kB / 0.5285 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01952/0.4876, allocations: 9.791 MB / 0.538 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.871e-05/0.4877, allocations: 27.34 kB / 0.5381 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003981/0.4881, allocations: 117.8 kB / 0.5382 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003995/0.4921, allocations: 2.298 MB / 0.5404 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/0.5098, allocations: 8.474 MB / 0.5487 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05622/0.566, allocations: 30.63 MB / 0.5786 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007194/0.5732, allocations: 2.705 MB / 0.5812 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.5751, allocations: 0.9811 MB / 0.5822 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/0.5867, allocations: 5.835 MB / 0.5879 GB, free: 5.438 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.843e-05/0.5867, allocations: 53.12 kB / 0.588 GB, free: 5.379 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 5.691e-06/0.5867, allocations: 0 / 0.588 GB, free: 5.379 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.02077/0.6075, allocations: 8.333 MB / 0.5961 GB, free: 13.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.6076, allocations: 64.72 kB / 0.5962 GB, free: 12.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005293/0.6128, allocations: 3.203 MB / 0.5993 GB, free: 9.715 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002933/0.6131, allocations: 53.7 kB / 0.5993 GB, free: 9.656 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.6152, allocations: 2.702 MB / 0.602 GB, free: 6.965 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008221/0.616, allocations: 0.7107 MB / 0.6027 GB, free: 6.266 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/0.6175, allocations: 0.9887 MB / 0.6036 GB, free: 5.266 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.6176, allocations: 305.1 kB / 0.6039 GB, free: 4.965 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00267/0.6203, allocations: 1.571 MB / 0.6055 GB, free: 3.387 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005152/0.6254, allocations: 4.356 MB / 0.6097 GB, free: 13.69 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008841/0.6343, allocations: 6.378 MB / 0.6159 GB, free: 6.344 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-05/0.6344, allocations: 32 kB / 0.616 GB, free: 6.312 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01387/0.6482, allocations: 6.041 MB / 0.6219 GB, free: 468 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.627e-05/0.6483, allocations: 51.98 kB / 0.6219 GB, free: 416 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/0.6485, allocations: 96 kB / 0.622 GB, free: 320 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009769/0.6494, allocations: 369.4 kB / 0.6224 GB, free: 15.95 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003827/0.6533, allocations: 1.096 MB / 0.6234 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005102/0.6584, allocations: 3.706 MB / 0.627 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004053/0.6624, allocations: 251.5 kB / 0.6273 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/0.6635, allocations: 296 kB / 0.6276 GB, free: 10.48 MB / 478.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.004104/0.6676, allocations: 1.878 MB / 0.6294 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006023/0.6682, allocations: 286.1 kB / 0.6297 GB, free: 8.305 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004738/0.6729, allocations: 2.421 MB / 0.632 GB, free: 5.871 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001925/0.6731, allocations: 43.91 kB / 0.6321 GB, free: 5.828 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.6731, allocations: 4 kB / 0.6321 GB, free: 5.824 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.6732, allocations: 15.84 kB / 0.6321 GB, free: 5.812 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0142/0.6873, allocations: 6.84 MB / 0.6388 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.547e-05/0.6874, allocations: 4 kB / 0.6388 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.6885, allocations: 263.6 kB / 0.639 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007385/0.6892, allocations: 253 kB / 0.6393 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.6893, allocations: 31.98 kB / 0.6393 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00382/0.6932, allocations: 2.961 MB / 0.6422 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.6932, allocations: 4 kB / 0.6422 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00656/0.6997, allocations: 3.739 MB / 0.6459 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.7009, allocations: 363.2 kB / 0.6462 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004758/0.7014, allocations: 28 kB / 0.6462 GB, free: 7.035 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.7024, allocations: 83.84 kB / 0.6463 GB, free: 6.953 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.7027, allocations: 111.8 kB / 0.6464 GB, free: 6.848 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.7028, allocations: 55.98 kB / 0.6465 GB, free: 6.793 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003635/0.7064, allocations: 2.033 MB / 0.6485 GB, free: 4.758 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7064, allocations: 0 / 0.6485 GB, free: 4.758 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004677/0.7111, allocations: 0.8241 MB / 0.6493 GB, free: 3.934 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.007035/0.7181, allocations: 4.398 MB / 0.6536 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007389/0.7255, allocations: 3.715 MB / 0.6572 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.7255, allocations: 0.75 kB / 0.6572 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.7276, allocations: 1.146 MB / 0.6583 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002511/0.7301, allocations: 461.7 kB / 0.6587 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0644/0.7945, allocations: 34.47 MB / 0.6924 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004266/0.7988, allocations: 3.011 MB / 0.6953 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003684/0.8025, allocations: 1.432 MB / 0.6967 GB, free: 15.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002638/0.8051, allocations: 1.694 MB / 0.6984 GB, free: 13.57 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/0.8051, allocations: 0 / 0.6984 GB, free: 13.57 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3642/1.169, allocations: 54.69 MB / 0.7518 GB, free: 197.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.07/21.23, allocations: 3.5 kB / 0.7518 GB, free: 197.5 MB / 0.5606 GB " [Timeout remaining time 639] (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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 24.077924380995682] Failed to read output from testmodel.py, exit status != 0: 21.35342290000699 21.364309585 20.925633993 Calling exit ...