Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.001371/0.001371, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001735/0.001735, allocations: 214 kB / 22.25 MB, free: 4.855 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.532/1.532, allocations: 230.6 MB / 256 MB, free: 7.793 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.0509/0.0509, allocations: 9.234 MB / 321.7 MB, free: 9.836 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.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",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.002371/0.002371, allocations: 71.88 kB / 447.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1119, allocations: 55.47 MB / 0.4913 GB, free: 7.016 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01149/0.1234, allocations: 7.766 MB / 0.4989 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00647/0.1299, allocations: 2.589 MB / 0.5015 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.1312, allocations: 39.88 kB / 0.5015 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.1324, allocations: 393.3 kB / 0.5019 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004101/0.1365, allocations: 1.475 MB / 0.5033 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007371/0.1372, allocations: 167.8 kB / 0.5035 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.141, allocations: 2.606 MB / 0.506 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.1425, allocations: 0.8053 MB / 0.5068 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.1443, allocations: 0.961 MB / 0.5077 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/0.1467, allocations: 1.405 MB / 0.5091 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007494/0.1475, allocations: 240 kB / 0.5093 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0019/0.1494, allocations: 0.7684 MB / 0.5101 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.151, allocations: 1.242 MB / 0.5113 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002113/0.1532, allocations: 1.126 MB / 0.5124 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2331/0.3862, allocations: 5.07 MB / 0.5174 GB, free: 12.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3862, allocations: 0 / 0.5174 GB, free: 12.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3862, allocations: 0 / 0.5174 GB, free: 12.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002278/0.3865, allocations: 1.062 kB / 0.5174 GB, free: 12.56 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01377/0.4002, allocations: 3.978 MB / 0.5212 GB, free: 11.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4003, allocations: 10.19 kB / 0.5212 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001958/0.4022, allocations: 0.5435 MB / 0.5218 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007599/0.4098, allocations: 1.797 MB / 0.5235 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004409/0.4142, allocations: 1.367 MB / 0.5249 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.4145, allocations: 156.8 kB / 0.525 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/0.4159, allocations: 196.9 kB / 0.5252 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01685/0.4328, allocations: 8.003 MB / 0.533 GB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001577/0.4329, allocations: 30.33 kB / 0.533 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009099/0.4338, allocations: 92.8 kB / 0.5331 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003108/0.4369, allocations: 1.853 MB / 0.5349 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.4512, allocations: 7.165 MB / 0.5419 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0371/0.4883, allocations: 22.95 MB / 0.5644 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005693/0.494, allocations: 1.862 MB / 0.5662 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/0.4955, allocations: 0.7711 MB / 0.5669 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008303/0.5038, allocations: 2.976 MB / 0.5698 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/0.5039, allocations: 49.53 kB / 0.5699 GB, free: 13.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 4.899e-06/0.5039, allocations: 0 / 0.5699 GB, free: 13.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01599/0.5199, allocations: 6.816 MB / 0.5765 GB, free: 6.266 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.5199, allocations: 64.72 kB / 0.5766 GB, free: 6.188 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005363/0.5253, allocations: 2.815 MB / 0.5793 GB, free: 3.348 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00023/0.5255, allocations: 47.66 kB / 0.5794 GB, free: 3.297 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.5274, allocations: 2.197 MB / 0.5815 GB, free: 1.109 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007849/0.5282, allocations: 0.5949 MB / 0.5821 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001705/0.5299, allocations: 0.7935 MB / 0.5829 GB, free: 15.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.53, allocations: 309.1 kB / 0.5832 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002526/0.5326, allocations: 1.292 MB / 0.5844 GB, free: 14.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004527/0.5371, allocations: 3.435 MB / 0.5878 GB, free: 9.664 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00731/0.5444, allocations: 5.078 MB / 0.5928 GB, free: 3.859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.935e-05/0.5445, allocations: 25.12 kB / 0.5928 GB, free: 3.836 MB / 430.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01094/0.5554, allocations: 4.906 MB / 0.5976 GB, free: 15.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.5556, allocations: 36.97 kB / 0.5976 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001426/0.5557, allocations: 76.95 kB / 0.5977 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009878/0.5567, allocations: 332.6 kB / 0.598 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002994/0.5597, allocations: 0.868 MB / 0.5988 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005/0.5647, allocations: 3.524 MB / 0.6023 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/0.5677, allocations: 200 kB / 0.6025 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008376/0.5686, allocations: 239.9 kB / 0.6027 GB, free: 9.828 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * Array equations: 4 * 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.003687/0.5723, allocations: 1.565 MB / 0.6042 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006574/0.5729, allocations: 235.1 kB / 0.6045 GB, free: 8.023 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004224/0.5772, allocations: 2.014 MB / 0.6064 GB, free: 5.996 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/0.5773, allocations: 27.98 kB / 0.6065 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.5773, allocations: 3.938 kB / 0.6065 GB, free: 5.965 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.5773, allocations: 3.984 kB / 0.6065 GB, free: 5.961 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.5897, allocations: 5.365 MB / 0.6117 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.5897, allocations: 0 / 0.6117 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008781/0.5906, allocations: 199.8 kB / 0.6119 GB, free: 348 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000715/0.5913, allocations: 239.8 kB / 0.6121 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.5914, allocations: 28 kB / 0.6121 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003845/0.5953, allocations: 2.82 MB / 0.6149 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.772e-06/0.5953, allocations: 4 kB / 0.6149 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005472/0.6007, allocations: 3.112 MB / 0.6179 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.602, allocations: 386.3 kB / 0.6183 GB, free: 9.605 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005375/0.6025, allocations: 28.86 kB / 0.6183 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.6037, allocations: 67.67 kB / 0.6184 GB, free: 9.516 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.6039, allocations: 92.69 kB / 0.6185 GB, free: 9.422 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.604, allocations: 47.98 kB / 0.6185 GB, free: 9.375 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003576/0.6076, allocations: 1.728 MB / 0.6202 GB, free: 7.633 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6076, allocations: 4 kB / 0.6202 GB, free: 7.629 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003425/0.611, allocations: 0.6757 MB / 0.6209 GB, free: 6.953 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * 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.006249/0.6173, allocations: 3.76 MB / 0.6246 GB, free: 3.145 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006089/0.6234, allocations: 3.063 MB / 0.6276 GB, free: 92 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.6234, allocations: 0 / 0.6276 GB, free: 92 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.6253, allocations: 0.9764 MB / 0.6285 GB, free: 15.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002924/0.6282, allocations: 411.4 kB / 0.6289 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0521/0.6803, allocations: 28.11 MB / 0.6564 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003869/0.6841, allocations: 2.031 MB / 0.6583 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003424/0.6876, allocations: 1.188 MB / 0.6595 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002499/0.6901, allocations: 1.343 MB / 0.6608 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of SimCode: time 1.193e-06/0.6901, allocations: 0 / 0.6608 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1121/0.8021, allocations: 49.01 MB / 0.7087 GB, free: 10.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/15.03, allocations: 10.91 kB / 0.7087 GB, free: 10.75 MB / 0.545 GB " [Timeout remaining time 645] (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.10978137375787] Failed to read output from testmodel.py, exit status != 0: 15.180142383091152 15.383698414 14.994072662 Calling exit ...