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.001351/0.001351, 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.00153/0.00153, allocations: 214.5 kB / 22.25 MB, free: 5.262 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.454/1.454, allocations: 230.6 MB / 256 MB, free: 7.797 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.05104/0.05104, allocations: 9.246 MB / 321.7 MB, free: 9.859 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.002161/0.002161, allocations: 59.91 kB / 447.7 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1049, allocations: 55.46 MB / 0.4913 GB, free: 7.062 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01633/0.1212, allocations: 12.51 MB / 0.5036 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.1317, allocations: 4.423 MB / 0.5079 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002822/0.1345, allocations: 87.62 kB / 0.508 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003859/0.1384, allocations: 1.583 MB / 0.5095 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006986/0.1454, allocations: 2.611 MB / 0.512 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001679/0.1471, allocations: 0.5771 MB / 0.5126 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2258/0.3729, allocations: 5.188 MB / 0.5177 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0045/0.3774, allocations: 2.692 MB / 0.5203 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003481/0.3809, allocations: 1.806 MB / 0.5221 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004678/0.3856, allocations: 2.622 MB / 0.5246 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001292/0.3868, allocations: 381.8 kB / 0.525 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00309/0.3899, allocations: 1.085 MB / 0.5261 GB, free: 7.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003147/0.3931, allocations: 2.312 MB / 0.5283 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004032/0.3971, allocations: 1.99 MB / 0.5303 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.4077, allocations: 8.778 MB / 0.5388 GB, free: 3.602 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4077, allocations: 4.594 kB / 0.5388 GB, free: 3.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4077, allocations: 0.6562 kB / 0.5388 GB, free: 3.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002871/0.408, allocations: 0 / 0.5388 GB, free: 3.598 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.01732/0.4253, allocations: 6.664 MB / 0.5453 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.4254, allocations: 11.66 kB / 0.5454 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00252/0.4279, allocations: 0.9532 MB / 0.5463 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01343/0.4413, allocations: 3.443 MB / 0.5496 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008012/0.4493, allocations: 2.943 MB / 0.5525 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.4496, allocations: 282.2 kB / 0.5528 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001315/0.4509, allocations: 359.3 kB / 0.5531 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02659/0.4775, allocations: 14.02 MB / 0.5668 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000237/0.4777, allocations: 53.92 kB / 0.5669 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00159/0.4793, allocations: 179 kB / 0.567 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006193/0.4855, allocations: 3.139 MB / 0.5701 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02717/0.5127, allocations: 12.19 MB / 0.582 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08302/0.5957, allocations: 49.59 MB / 0.6304 GB, free: 12.08 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01175/0.6075, allocations: 4.093 MB / 0.6344 GB, free: 7.969 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003042/0.6105, allocations: 1.7 MB / 0.6361 GB, free: 6.262 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01584/0.6263, allocations: 6.324 MB / 0.6423 GB, free: 15.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.723e-05/0.6264, allocations: 59.81 kB / 0.6423 GB, free: 15.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=242): time 6.542e-06/0.6264, allocations: 0 / 0.6423 GB, free: 15.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=272): time 0.03752/0.6639, allocations: 14.62 MB / 0.6566 GB, free: 1.285 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002204/0.6641, allocations: 158.5 kB / 0.6568 GB, free: 1.098 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0109/0.675, allocations: 5.689 MB / 0.6623 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004138/0.6754, allocations: 61.7 kB / 0.6624 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.004473/0.6799, allocations: 4.259 MB / 0.6665 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001734/0.6817, allocations: 1.079 MB / 0.6676 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003176/0.6848, allocations: 1.645 MB / 0.6692 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.685, allocations: 305.1 kB / 0.6695 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00517/0.6901, allocations: 2.542 MB / 0.672 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01006/0.7002, allocations: 7.355 MB / 0.6792 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.015/0.7152, allocations: 10.73 MB / 0.6896 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001742/0.7154, allocations: 48 kB / 0.6897 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02127/0.7367, allocations: 9.926 MB / 0.6994 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000122/0.7368, allocations: 80 kB / 0.6995 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002346/0.737, allocations: 168 kB / 0.6996 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/0.7382, allocations: 0.4889 MB / 0.7001 GB, free: 0 / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006333/0.7446, allocations: 1.846 MB / 0.7019 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006454/0.751, allocations: 5.048 MB / 0.7068 GB, free: 8.867 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005688/0.7567, allocations: 429.2 kB / 0.7072 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001104/0.7578, allocations: 0.4915 MB / 0.7077 GB, free: 7.961 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.005265/0.7631, allocations: 2.858 MB / 0.7105 GB, free: 5.09 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009177/0.764, allocations: 484.7 kB / 0.711 GB, free: 4.613 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005564/0.7696, allocations: 2.96 MB / 0.7139 GB, free: 1.637 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-05/0.7696, allocations: 32 kB / 0.7139 GB, free: 1.605 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.7696, allocations: 4 kB / 0.7139 GB, free: 1.602 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/0.7696, allocations: 11.95 kB / 0.7139 GB, free: 1.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01807/0.7877, allocations: 8.587 MB / 0.7223 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/0.7877, allocations: 8 kB / 0.7223 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/0.7895, allocations: 387.4 kB / 0.7227 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008021/0.7903, allocations: 276.3 kB / 0.7229 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/0.7905, allocations: 51.05 kB / 0.723 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.7956, allocations: 4.141 MB / 0.727 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/0.7956, allocations: 12.53 kB / 0.727 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.214/1.01, allocations: 5.665 MB / 0.7326 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/1.011, allocations: 463.3 kB / 0.733 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/1.012, allocations: 53.06 kB / 0.7331 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001815/1.014, allocations: 106.7 kB / 0.7332 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/1.014, allocations: 171.5 kB / 0.7333 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/1.014, allocations: 76.95 kB / 0.7334 GB, free: 186.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006263/1.021, allocations: 3.387 MB / 0.7367 GB, free: 186.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/1.021, allocations: 1.406 kB / 0.7367 GB, free: 186.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007659/1.028, allocations: 1.233 MB / 0.7379 GB, free: 186.1 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.009122/1.037, allocations: 6.341 MB / 0.7441 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01491/1.052, allocations: 5.948 MB / 0.7499 GB, free: 182.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/1.052, allocations: 1.375 kB / 0.7499 GB, free: 182.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002881/1.055, allocations: 1.717 MB / 0.7516 GB, free: 181.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004559/1.06, allocations: 0.6366 MB / 0.7522 GB, free: 181.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07916/1.139, allocations: 58.74 MB / 0.8096 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005839/1.145, allocations: 3.727 MB / 0.8132 GB, free: 126.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005816/1.151, allocations: 2.708 MB / 0.8159 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003966/1.155, allocations: 2.612 MB / 0.8184 GB, free: 121.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.963e-06/1.155, allocations: 0 / 0.8184 GB, free: 121.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1388/1.293, allocations: 85.6 MB / 0.902 GB, free: 37.01 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.59/20.88, allocations: 2.812 kB / 0.902 GB, free: 37.01 MB / 0.5606 GB " [Timeout remaining time 639] (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: 23.680437557864934] Failed to read output from testmodel.py, exit status != 0: 21.0570064377971 21.070740217 20.660473598 Calling exit ...