Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.001362/0.001362, allocations: 110.4 kB / 16.46 MB, free: 6.508 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.001428/0.001428, allocations: 216.2 kB / 19.43 MB, free: 3.648 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.489/1.489, allocations: 230.6 MB / 252.8 MB, free: 9.109 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.04884/0.04884, allocations: 9.226 MB / 318.1 MB, free: 11.3 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.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrabTo3D,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D",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.002001/0.002001, allocations: 65.62 kB / 442.5 MB, free: 2.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1147, allocations: 55.42 MB / 498 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01795/0.1327, allocations: 14.43 MB / 0.5004 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.1431, allocations: 4.653 MB / 0.5049 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002933/0.146, allocations: 87.62 kB / 0.505 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004405/0.1504, allocations: 1.63 MB / 0.5066 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008186/0.1586, allocations: 2.592 MB / 0.5091 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001938/0.1606, allocations: 0.5732 MB / 0.5097 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2493/0.4099, allocations: 5.186 MB / 0.5148 GB, free: 6.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00441/0.4143, allocations: 2.572 MB / 0.5173 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004617/0.4189, allocations: 1.8 MB / 0.519 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005857/0.4248, allocations: 2.738 MB / 0.5217 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002431/0.4272, allocations: 382.2 kB / 0.5221 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005168/0.4324, allocations: 1.224 MB / 0.5233 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004888/0.4373, allocations: 2.309 MB / 0.5255 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00692/0.4442, allocations: 2.793 MB / 0.5282 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01594/0.4601, allocations: 8.742 MB / 0.5368 GB, free: 1.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4601, allocations: 0 / 0.5368 GB, free: 1.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4601, allocations: 0 / 0.5368 GB, free: 1.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004778/0.4606, allocations: 0 / 0.5368 GB, free: 1.797 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: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.02284/0.4834, allocations: 6.736 MB / 0.5434 GB, free: 13.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4835, allocations: 9.844 kB / 0.5434 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002676/0.4862, allocations: 0.9477 MB / 0.5443 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01344/0.4996, allocations: 3.444 MB / 0.5477 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008192/0.5078, allocations: 3.005 MB / 0.5506 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002552/0.508, allocations: 277.7 kB / 0.5509 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001745/0.5098, allocations: 358.6 kB / 0.5512 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03173/0.5415, allocations: 14.03 MB / 0.5649 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002089/0.5417, allocations: 57.72 kB / 0.5649 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001121/0.5429, allocations: 175.8 kB / 0.5651 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0059/0.5488, allocations: 3.136 MB / 0.5682 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03077/0.5795, allocations: 12.21 MB / 0.5801 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09278/0.6723, allocations: 51.9 MB / 0.6308 GB, free: 8.32 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01321/0.6855, allocations: 4.934 MB / 0.6356 GB, free: 3.168 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003541/0.6891, allocations: 1.702 MB / 0.6373 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01881/0.7079, allocations: 8.035 MB / 0.6451 GB, free: 9.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.387e-05/0.7079, allocations: 55.53 kB / 0.6452 GB, free: 9.098 MB / 494.1 MB Notification: Performance of pre-optimization done (n=242): time 7.314e-06/0.7079, allocations: 4 kB / 0.6452 GB, free: 9.094 MB / 494.1 MB Notification: Performance of matching and sorting (n=272): time 0.03736/0.7453, allocations: 14.75 MB / 0.6596 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.7454, allocations: 154.5 kB / 0.6597 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/0.7557, allocations: 5.41 MB / 0.665 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005354/0.7562, allocations: 61.7 kB / 0.6651 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004036/0.7603, allocations: 4.263 MB / 0.6692 GB, free: 468 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001717/0.762, allocations: 1.081 MB / 0.6703 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00308/0.7651, allocations: 1.647 MB / 0.6719 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.7652, allocations: 301.1 kB / 0.6722 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005033/0.7703, allocations: 2.538 MB / 0.6746 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/0.7807, allocations: 7.355 MB / 0.6818 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01636/0.7971, allocations: 10.74 MB / 0.6923 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001923/0.7973, allocations: 48 kB / 0.6924 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02284/0.8201, allocations: 9.935 MB / 0.7021 GB, free: 10.12 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.8203, allocations: 76 kB / 0.7021 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002604/0.8205, allocations: 168 kB / 0.7023 GB, free: 9.879 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.8218, allocations: 0.4924 MB / 0.7028 GB, free: 9.383 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00662/0.8284, allocations: 1.844 MB / 0.7046 GB, free: 7.535 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006786/0.8352, allocations: 5.295 MB / 0.7098 GB, free: 1.957 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007372/0.8426, allocations: 418.4 kB / 0.7102 GB, free: 1.551 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002244/0.8448, allocations: 488 kB / 0.7106 GB, free: 1.074 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1004): * Single equations (assignments): 994 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00739/0.8522, allocations: 2.858 MB / 0.7134 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/0.8534, allocations: 488.7 kB / 0.7139 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006342/0.8597, allocations: 2.963 MB / 0.7168 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.037e-05/0.8598, allocations: 28 kB / 0.7168 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/0.8598, allocations: 7.984 kB / 0.7168 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-05/0.8598, allocations: 15.95 kB / 0.7168 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02217/0.882, allocations: 9.073 MB / 0.7257 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.638e-05/0.882, allocations: 7.938 kB / 0.7257 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.8839, allocations: 387.4 kB / 0.7261 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008227/0.8847, allocations: 266.2 kB / 0.7263 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002132/0.8849, allocations: 51.52 kB / 0.7264 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2528/1.138, allocations: 4.363 MB / 0.7306 GB, free: 186.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/1.138, allocations: 20.44 kB / 0.7306 GB, free: 186.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008424/1.146, allocations: 5.663 MB / 0.7362 GB, free: 185.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/1.148, allocations: 0.5289 MB / 0.7367 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00104/1.149, allocations: 51.25 kB / 0.7367 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/1.151, allocations: 110.2 kB / 0.7368 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004226/1.151, allocations: 159.3 kB / 0.737 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/1.151, allocations: 77.62 kB / 0.7371 GB, free: 185.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.008194/1.16, allocations: 3.394 MB / 0.7404 GB, free: 184.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.51e-07/1.16, allocations: 0 / 0.7404 GB, free: 184.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01024/1.17, allocations: 1.235 MB / 0.7416 GB, free: 184.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.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 (207): * Single equations (assignments): 199 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,15,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01036/1.18, allocations: 6.329 MB / 0.7478 GB, free: 181.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01156/1.192, allocations: 5.962 MB / 0.7536 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/1.192, allocations: 0 / 0.7536 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00273/1.194, allocations: 1.706 MB / 0.7553 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00482/1.199, allocations: 0.6471 MB / 0.7559 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07989/1.279, allocations: 58.64 MB / 0.8131 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005349/1.285, allocations: 4.234 MB / 0.8173 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00553/1.29, allocations: 2.707 MB / 0.8199 GB, free: 117.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00418/1.294, allocations: 2.612 MB / 0.8225 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.222e-06/1.294, allocations: 0 / 0.8225 GB, free: 114.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1384/1.433, allocations: 86.25 MB / 0.9067 GB, free: 29.06 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.18/23.61, allocations: 0 / 0.9067 GB, free: 29.06 MB / 0.5606 GB " [Timeout remaining time 636] (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_CraneCrabTo3D.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 26.38700910299667] Failed to read output from testmodel.py, exit status != 0: 23.755886444996577 23.766608165 23.303733588 Calling exit ...