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.001833/0.001833, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.002071/0.002071, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.487/1.487, allocations: 230.6 MB / 252.8 MB, free: 8.949 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.04747/0.04747, allocations: 9.224 MB / 318.1 MB, free: 11.2 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.001904/0.001904, allocations: 63.91 kB / 442.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1268, allocations: 55.43 MB / 498 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01042/0.1372, allocations: 8.836 MB / 0.4949 GB, free: 2.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005879/0.1431, allocations: 2.725 MB / 0.4976 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.1442, allocations: 47.81 kB / 0.4976 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009171/0.1452, allocations: 381.4 kB / 0.498 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003561/0.1487, allocations: 1.455 MB / 0.4994 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.1493, allocations: 171.7 kB / 0.4996 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003478/0.1527, allocations: 2.614 MB / 0.5021 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001354/0.1541, allocations: 0.8358 MB / 0.5029 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.1553, allocations: 0.9572 MB / 0.5039 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.1572, allocations: 1.463 MB / 0.5053 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003955/0.1576, allocations: 240 kB / 0.5055 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001608/0.1592, allocations: 0.8893 MB / 0.5064 GB, free: 6.312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.1604, allocations: 1.246 MB / 0.5076 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.162, allocations: 1.584 MB / 0.5092 GB, free: 3.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.267/0.429, allocations: 5.063 MB / 0.5141 GB, free: 11.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.429, allocations: 0 / 0.5141 GB, free: 11.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.429, allocations: 0 / 0.5141 GB, free: 11.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001736/0.4292, allocations: 3.031 kB / 0.5141 GB, free: 11.58 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.01072/0.4399, allocations: 4.053 MB / 0.5181 GB, free: 10.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.44, allocations: 10.38 kB / 0.5181 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008636/0.4408, allocations: 0.5377 MB / 0.5186 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007326/0.4482, allocations: 1.8 MB / 0.5204 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003262/0.4514, allocations: 1.418 MB / 0.5217 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.4516, allocations: 161.2 kB / 0.5219 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005345/0.4521, allocations: 197.5 kB / 0.5221 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01638/0.4685, allocations: 8.008 MB / 0.5299 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-05/0.4686, allocations: 25.17 kB / 0.5299 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003217/0.4689, allocations: 97.38 kB / 0.53 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00328/0.4722, allocations: 1.845 MB / 0.5318 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0162/0.4884, allocations: 7.17 MB / 0.5388 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03788/0.5262, allocations: 24.39 MB / 0.5627 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005957/0.5322, allocations: 2.316 MB / 0.5649 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001444/0.5336, allocations: 0.7807 MB / 0.5657 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008208/0.5418, allocations: 4.653 MB / 0.5702 GB, free: 8.461 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/0.5419, allocations: 43.56 kB / 0.5703 GB, free: 8.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 4.839e-06/0.5419, allocations: 0 / 0.5703 GB, free: 8.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01519/0.5571, allocations: 6.97 MB / 0.5771 GB, free: 1.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.5571, allocations: 68.72 kB / 0.5771 GB, free: 1.332 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004159/0.5613, allocations: 2.677 MB / 0.5798 GB, free: 14.63 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.5614, allocations: 45.7 kB / 0.5798 GB, free: 14.58 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001641/0.5631, allocations: 2.202 MB / 0.5819 GB, free: 12.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006052/0.5637, allocations: 0.5874 MB / 0.5825 GB, free: 11.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.5648, allocations: 0.7974 MB / 0.5833 GB, free: 11 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.5649, allocations: 307.1 kB / 0.5836 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002137/0.567, allocations: 1.292 MB / 0.5849 GB, free: 9.402 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003988/0.571, allocations: 3.441 MB / 0.5882 GB, free: 4.938 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006624/0.5777, allocations: 5.08 MB / 0.5932 GB, free: 15.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-05/0.5777, allocations: 20 kB / 0.5932 GB, free: 15.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009083/0.5868, allocations: 4.903 MB / 0.598 GB, free: 10.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.856e-05/0.5869, allocations: 41.7 kB / 0.598 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.609e-05/0.587, allocations: 72 kB / 0.5981 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008841/0.5878, allocations: 339.9 kB / 0.5984 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.5906, allocations: 0.8655 MB / 0.5993 GB, free: 9.246 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005043/0.5957, allocations: 3.647 MB / 0.6028 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003178/0.5989, allocations: 204.8 kB / 0.603 GB, free: 5.262 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004803/0.5993, allocations: 239 kB / 0.6032 GB, free: 5.031 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.002631/0.602, allocations: 1.562 MB / 0.6048 GB, free: 3.461 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004578/0.6024, allocations: 246.4 kB / 0.605 GB, free: 3.219 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003667/0.6061, allocations: 2.014 MB / 0.607 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001152/0.6062, allocations: 23.98 kB / 0.607 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.6062, allocations: 7.938 kB / 0.607 GB, free: 1.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.6062, allocations: 7.984 kB / 0.607 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.6165, allocations: 5.692 MB / 0.6126 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.6165, allocations: 0 / 0.6126 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008846/0.6174, allocations: 199.7 kB / 0.6128 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000745/0.6181, allocations: 236.1 kB / 0.613 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.653e-05/0.6182, allocations: 31.98 kB / 0.613 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003812/0.622, allocations: 2.958 MB / 0.6159 GB, free: 7.836 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.622, allocations: 8.125 kB / 0.6159 GB, free: 7.828 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/0.6272, allocations: 3.106 MB / 0.6189 GB, free: 4.676 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009963/0.6282, allocations: 467.4 kB / 0.6194 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/0.6284, allocations: 30.27 kB / 0.6194 GB, free: 4.172 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008025/0.6292, allocations: 64.72 kB / 0.6195 GB, free: 4.109 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.6294, allocations: 84.83 kB / 0.6196 GB, free: 4.027 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.394e-05/0.6295, allocations: 43.98 kB / 0.6196 GB, free: 3.984 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002758/0.6323, allocations: 1.724 MB / 0.6213 GB, free: 2.246 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6323, allocations: 0 / 0.6213 GB, free: 2.246 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002963/0.6352, allocations: 0.6903 MB / 0.622 GB, free: 1.559 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.005402/0.6406, allocations: 3.749 MB / 0.6256 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005937/0.6466, allocations: 3.063 MB / 0.6286 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.6466, allocations: 4 kB / 0.6286 GB, free: 10.69 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.6482, allocations: 0.9787 MB / 0.6296 GB, free: 9.703 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/0.6503, allocations: 402.1 kB / 0.63 GB, free: 9.324 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04527/0.6956, allocations: 28.04 MB / 0.6573 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003008/0.6986, allocations: 2.595 MB / 0.6599 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002645/0.7013, allocations: 1.188 MB / 0.661 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/0.7031, allocations: 1.342 MB / 0.6623 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of SimCode: time 1.202e-06/0.7031, allocations: 0 / 0.6623 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1032/0.8064, allocations: 48.44 MB / 0.7097 GB, free: 5.188 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.02/16.83, allocations: 11.09 kB / 0.7097 GB, free: 5.18 MB / 0.545 GB " [Timeout remaining time 643] (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: 19.810529915004736] Failed to read output from testmodel.py, exit status != 0: 16.943486885997117 17.153980452 16.722184619 Calling exit ...