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.001848/0.001848, 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.001583/0.001583, allocations: 211.9 kB / 22.24 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.781 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.0501/0.0501, allocations: 9.236 MB / 321.7 MB, free: 9.832 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.002527/0.002527, allocations: 59.91 kB / 447.7 MB, free: 14.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.125, allocations: 55.48 MB / 0.4913 GB, free: 7.004 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01354/0.1385, allocations: 9.356 MB / 0.5005 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007188/0.1457, allocations: 2.871 MB / 0.5033 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.1475, allocations: 47.81 kB / 0.5033 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.1491, allocations: 472.8 kB / 0.5038 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005522/0.1546, allocations: 1.704 MB / 0.5054 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000879/0.1555, allocations: 175.7 kB / 0.5056 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005888/0.1614, allocations: 3.083 MB / 0.5086 GB, free: 5.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002311/0.1637, allocations: 0.9465 MB / 0.5095 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.1665, allocations: 1.148 MB / 0.5107 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00368/0.1702, allocations: 1.681 MB / 0.5123 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001246/0.1715, allocations: 292 kB / 0.5126 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002545/0.174, allocations: 0.8075 MB / 0.5134 GB, free: 348 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2734/0.4474, allocations: 1.528 MB / 0.5149 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.4488, allocations: 1.366 MB / 0.5162 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006568/0.4554, allocations: 6.089 MB / 0.5221 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4554, allocations: 0 / 0.5221 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4554, allocations: 0.9062 kB / 0.5222 GB, free: 8.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00013/0.4555, allocations: 0 / 0.5222 GB, free: 8.91 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.009845/0.4654, allocations: 4.63 MB / 0.5267 GB, free: 7.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.4654, allocations: 7.281 kB / 0.5267 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000832/0.4663, allocations: 0.6722 MB / 0.5273 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007008/0.4733, allocations: 1.935 MB / 0.5292 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.4765, allocations: 1.551 MB / 0.5307 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.4766, allocations: 194.1 kB / 0.5309 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004832/0.4771, allocations: 257.7 kB / 0.5312 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01417/0.4913, allocations: 9.785 MB / 0.5407 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001265/0.4914, allocations: 24.5 kB / 0.5407 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005187/0.492, allocations: 121.7 kB / 0.5409 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003444/0.4954, allocations: 2.307 MB / 0.5431 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01542/0.5108, allocations: 8.459 MB / 0.5514 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04864/0.5594, allocations: 28.83 MB / 0.5795 GB, free: 2.168 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006664/0.5661, allocations: 2.247 MB / 0.5817 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001883/0.568, allocations: 0.9817 MB / 0.5827 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008907/0.5769, allocations: 3.671 MB / 0.5863 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/0.577, allocations: 49.47 kB / 0.5863 GB, free: 11.24 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 4.368e-06/0.577, allocations: 0 / 0.5863 GB, free: 11.24 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.01856/0.5955, allocations: 8.184 MB / 0.5943 GB, free: 3.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.5956, allocations: 68.72 kB / 0.5944 GB, free: 2.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005494/0.6011, allocations: 3.373 MB / 0.5977 GB, free: 15.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001521/0.6012, allocations: 49.7 kB / 0.5977 GB, free: 15.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002168/0.6034, allocations: 2.712 MB / 0.6004 GB, free: 12.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007494/0.6041, allocations: 0.7047 MB / 0.601 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00152/0.6057, allocations: 0.9877 MB / 0.602 GB, free: 11.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.6058, allocations: 309.1 kB / 0.6023 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002773/0.6086, allocations: 1.563 MB / 0.6038 GB, free: 9.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005129/0.6137, allocations: 4.363 MB / 0.6081 GB, free: 3.566 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008427/0.6221, allocations: 6.375 MB / 0.6143 GB, free: 12.23 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.785e-05/0.6222, allocations: 28 kB / 0.6143 GB, free: 12.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01082/0.6331, allocations: 6.042 MB / 0.6202 GB, free: 6.238 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.315e-05/0.6331, allocations: 48 kB / 0.6203 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001453/0.6333, allocations: 96 kB / 0.6204 GB, free: 6.098 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009156/0.6342, allocations: 380.6 kB / 0.6207 GB, free: 5.727 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003321/0.6375, allocations: 1.092 MB / 0.6218 GB, free: 4.633 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005096/0.6426, allocations: 3.568 MB / 0.6253 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00311/0.6457, allocations: 257 kB / 0.6255 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000515/0.6462, allocations: 288 kB / 0.6258 GB, free: 444 kB / 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.003406/0.6496, allocations: 1.892 MB / 0.6277 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005646/0.6502, allocations: 290.1 kB / 0.6279 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004773/0.655, allocations: 2.41 MB / 0.6303 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00019/0.6552, allocations: 54.94 kB / 0.6303 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.6552, allocations: 8.062 kB / 0.6304 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.6552, allocations: 7.969 kB / 0.6304 GB, free: 11.76 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01342/0.6686, allocations: 6.474 MB / 0.6367 GB, free: 5.211 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.6686, allocations: 4 kB / 0.6367 GB, free: 5.207 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.6697, allocations: 259.6 kB / 0.6369 GB, free: 4.953 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007019/0.6704, allocations: 253 kB / 0.6372 GB, free: 4.703 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.6705, allocations: 35.98 kB / 0.6372 GB, free: 4.668 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004003/0.6745, allocations: 2.821 MB / 0.64 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.6745, allocations: 4 kB / 0.64 GB, free: 1.738 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006479/0.681, allocations: 3.742 MB / 0.6436 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008644/0.6819, allocations: 286 kB / 0.6439 GB, free: 13.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005128/0.6824, allocations: 38.33 kB / 0.6439 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.6835, allocations: 75.91 kB / 0.644 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.6837, allocations: 117 kB / 0.6441 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/0.6839, allocations: 55.5 kB / 0.6442 GB, free: 13.38 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003911/0.6878, allocations: 2.037 MB / 0.6462 GB, free: 11.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6878, allocations: 0 / 0.6462 GB, free: 11.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003854/0.6916, allocations: 0.8242 MB / 0.647 GB, free: 10.51 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.006957/0.6986, allocations: 4.391 MB / 0.6513 GB, free: 6.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007666/0.7062, allocations: 3.721 MB / 0.6549 GB, free: 2.332 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/0.7063, allocations: 0 / 0.6549 GB, free: 2.332 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001954/0.7082, allocations: 1.145 MB / 0.656 GB, free: 1.18 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/0.7109, allocations: 469.1 kB / 0.6565 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05991/0.7708, allocations: 34.55 MB / 0.6902 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00348/0.7742, allocations: 2.459 MB / 0.6926 GB, free: 7.758 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003545/0.7778, allocations: 1.428 MB / 0.694 GB, free: 6.324 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002445/0.7802, allocations: 1.686 MB / 0.6956 GB, free: 4.637 MB / 0.5294 GB Notification: Performance of SimCode: time 1.222e-06/0.7802, allocations: 0 / 0.6956 GB, free: 4.637 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3612/1.141, allocations: 55.16 MB / 0.7495 GB, free: 174.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.55/16.69, allocations: 1.625 kB / 0.7495 GB, free: 174.8 MB / 0.545 GB " [Timeout remaining time 643] (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: 19.541470289230347] Failed to read output from testmodel.py, exit status != 0: 16.846950235776603 16.856262393 16.398364484 Calling exit ...