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.001236/0.001236, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001441/0.001441, allocations: 217.5 kB / 22.25 MB, free: 5.121 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.517/1.517, allocations: 230.6 MB / 256 MB, free: 7.98 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.04829/0.04829, allocations: 9.242 MB / 321.7 MB, free: 10.05 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.002026/0.002026, allocations: 67.89 kB / 447.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1202, allocations: 55.47 MB / 0.4914 GB, free: 7.508 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01858/0.1387, allocations: 14.46 MB / 0.5055 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.15, allocations: 4.679 MB / 0.5101 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003072/0.1531, allocations: 87.62 kB / 0.5102 GB, free: 4.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004328/0.1574, allocations: 1.63 MB / 0.5118 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2895/0.4469, allocations: 2.599 MB / 0.5143 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002013/0.4489, allocations: 0.5722 MB / 0.5149 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009125/0.458, allocations: 5.208 MB / 0.52 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006072/0.4641, allocations: 2.706 MB / 0.5226 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005354/0.4695, allocations: 1.795 MB / 0.5244 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006722/0.4762, allocations: 2.738 MB / 0.527 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001927/0.4781, allocations: 382.2 kB / 0.5274 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004009/0.4821, allocations: 1.222 MB / 0.5286 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003701/0.4858, allocations: 2.315 MB / 0.5308 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005489/0.4913, allocations: 2.791 MB / 0.5336 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01411/0.5054, allocations: 8.739 MB / 0.5421 GB, free: 1.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5054, allocations: 1.688 kB / 0.5421 GB, free: 1.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5054, allocations: 3.281 kB / 0.5421 GB, free: 1.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003595/0.5058, allocations: 1.062 kB / 0.5421 GB, free: 1.109 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.0211/0.5269, allocations: 6.666 MB / 0.5486 GB, free: 12.72 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.11e-05/0.527, allocations: 9.938 kB / 0.5486 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002656/0.5296, allocations: 0.9528 MB / 0.5496 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01288/0.5425, allocations: 3.436 MB / 0.5529 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009286/0.5518, allocations: 2.923 MB / 0.5558 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003409/0.5521, allocations: 280.2 kB / 0.556 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002654/0.5548, allocations: 365.6 kB / 0.5564 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02966/0.5844, allocations: 14.02 MB / 0.5701 GB, free: 9.789 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000173/0.5846, allocations: 55.56 kB / 0.5701 GB, free: 9.734 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000657/0.5853, allocations: 178.6 kB / 0.5703 GB, free: 9.617 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005193/0.5904, allocations: 3.139 MB / 0.5734 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02714/0.6176, allocations: 12.2 MB / 0.5853 GB, free: 10.28 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07961/0.6972, allocations: 51.74 MB / 0.6358 GB, free: 5.551 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/0.7084, allocations: 4.098 MB / 0.6398 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002792/0.7112, allocations: 1.699 MB / 0.6415 GB, free: 15.72 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/0.7253, allocations: 6.792 MB / 0.6481 GB, free: 8.973 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/0.7253, allocations: 59.81 kB / 0.6482 GB, free: 8.906 MB / 494.1 MB Notification: Performance of pre-optimization done (n=242): time 6.372e-06/0.7253, allocations: 0 / 0.6482 GB, free: 8.906 MB / 494.1 MB Notification: Performance of matching and sorting (n=272): time 0.03225/0.7576, allocations: 14.6 MB / 0.6624 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.7577, allocations: 154.5 kB / 0.6626 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008434/0.7661, allocations: 5.399 MB / 0.6678 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004122/0.7665, allocations: 68.3 kB / 0.6679 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003442/0.77, allocations: 4.26 MB / 0.6721 GB, free: 420 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001489/0.7715, allocations: 1.084 MB / 0.6731 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002507/0.774, allocations: 1.646 MB / 0.6747 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.7741, allocations: 305.1 kB / 0.675 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004268/0.7784, allocations: 2.538 MB / 0.6775 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00902/0.7874, allocations: 7.352 MB / 0.6847 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01492/0.8023, allocations: 10.74 MB / 0.6952 GB, free: 4.008 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001345/0.8024, allocations: 51.94 kB / 0.6952 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02038/0.8228, allocations: 9.924 MB / 0.7049 GB, free: 10.02 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.8229, allocations: 83.91 kB / 0.705 GB, free: 9.941 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002513/0.8232, allocations: 168 kB / 0.7052 GB, free: 9.777 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.8245, allocations: 0.4966 MB / 0.7056 GB, free: 9.277 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006392/0.8309, allocations: 1.844 MB / 0.7074 GB, free: 7.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006388/0.8372, allocations: 5.093 MB / 0.7124 GB, free: 2.105 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006936/0.8442, allocations: 419.6 kB / 0.7128 GB, free: 1.695 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001713/0.8459, allocations: 495.9 kB / 0.7133 GB, free: 1.215 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.007235/0.8531, allocations: 2.848 MB / 0.7161 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/0.8542, allocations: 484.7 kB / 0.7165 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005708/0.8599, allocations: 2.962 MB / 0.7194 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-05/0.86, allocations: 31.98 kB / 0.7195 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.86, allocations: 4 kB / 0.7195 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.491e-05/0.86, allocations: 19.91 kB / 0.7195 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/0.8787, allocations: 9.035 MB / 0.7283 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-05/0.8787, allocations: 8.062 kB / 0.7283 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/0.8804, allocations: 383.4 kB / 0.7287 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008204/0.8813, allocations: 273.5 kB / 0.7289 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001825/0.8814, allocations: 54.41 kB / 0.729 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2444/1.126, allocations: 4.156 MB / 0.7331 GB, free: 185 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/1.126, allocations: 13.84 kB / 0.7331 GB, free: 185 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008888/1.135, allocations: 5.668 MB / 0.7386 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001765/1.137, allocations: 467.6 kB / 0.739 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006625/1.137, allocations: 45.02 kB / 0.7391 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/1.139, allocations: 112.7 kB / 0.7392 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004189/1.139, allocations: 166 kB / 0.7394 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001729/1.139, allocations: 78.72 kB / 0.7394 GB, free: 184.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007809/1.147, allocations: 3.397 MB / 0.7427 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/1.147, allocations: 1.531 kB / 0.7428 GB, free: 183.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009172/1.156, allocations: 1.231 MB / 0.744 GB, free: 183.2 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.009837/1.166, allocations: 6.343 MB / 0.7501 GB, free: 180.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01146/1.178, allocations: 5.957 MB / 0.756 GB, free: 178.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/1.178, allocations: 3.969 kB / 0.756 GB, free: 178.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002785/1.18, allocations: 1.705 MB / 0.7576 GB, free: 177.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004342/1.185, allocations: 0.6442 MB / 0.7583 GB, free: 177.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09076/1.276, allocations: 58.75 MB / 0.8156 GB, free: 123.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008699/1.284, allocations: 4.232 MB / 0.8198 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007379/1.292, allocations: 2.709 MB / 0.8224 GB, free: 117 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004847/1.296, allocations: 2.612 MB / 0.825 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of SimCode: time 2.104e-06/1.296, allocations: 0 / 0.825 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/1.451, allocations: 89.31 MB / 0.9122 GB, free: 25.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.22/27.67, allocations: 7.984 kB / 0.9122 GB, free: 25.5 MB / 0.5606 GB " [Timeout remaining time 632] (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: 30.63419373400029] Failed to read output from testmodel.py, exit status != 0: 27.852298445999622 27.875221236 27.364985722 Calling exit ...