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.001857/0.001857, 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.002207/0.002207, allocations: 214.9 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.696/1.696, allocations: 230.6 MB / 256 MB, free: 8.004 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.05167/0.05167, allocations: 9.24 MB / 321.7 MB, free: 10.08 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.002121/0.002121, allocations: 63.91 kB / 447.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.148, allocations: 55.47 MB / 0.4914 GB, free: 7.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.0135/0.1615, allocations: 8.866 MB / 0.5001 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007601/0.1691, allocations: 2.737 MB / 0.5027 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00195/0.171, allocations: 39.88 kB / 0.5028 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.1723, allocations: 397.3 kB / 0.5032 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005101/0.1774, allocations: 1.459 MB / 0.5046 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005842/0.178, allocations: 171.8 kB / 0.5048 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004671/0.1826, allocations: 2.611 MB / 0.5073 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001439/0.1841, allocations: 0.8169 MB / 0.5081 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.1857, allocations: 0.961 MB / 0.509 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00245/0.1882, allocations: 1.467 MB / 0.5105 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004433/0.1886, allocations: 240 kB / 0.5107 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.1906, allocations: 0.8932 MB / 0.5116 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001481/0.1921, allocations: 1.238 MB / 0.5128 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3195/0.5116, allocations: 1.588 MB / 0.5143 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007598/0.5192, allocations: 5.06 MB / 0.5193 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.5192, allocations: 0.875 kB / 0.5193 GB, free: 11.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.5192, allocations: 0 / 0.5193 GB, free: 11.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001469/0.5194, allocations: 2 kB / 0.5193 GB, free: 11.88 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.0113/0.5307, allocations: 3.982 MB / 0.5232 GB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.5307, allocations: 12.16 kB / 0.5232 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001002/0.5317, allocations: 0.5372 MB / 0.5237 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007791/0.5395, allocations: 1.797 MB / 0.5255 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004/0.5435, allocations: 1.354 MB / 0.5268 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003896/0.5439, allocations: 159.8 kB / 0.5269 GB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005453/0.5444, allocations: 196.9 kB / 0.5271 GB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01699/0.5614, allocations: 8.005 MB / 0.5349 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.5615, allocations: 26.73 kB / 0.535 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003359/0.5619, allocations: 99.77 kB / 0.5351 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003342/0.5652, allocations: 1.847 MB / 0.5369 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01483/0.58, allocations: 7.174 MB / 0.5439 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03857/0.6186, allocations: 24.31 MB / 0.5676 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005803/0.6244, allocations: 1.86 MB / 0.5694 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.6259, allocations: 0.78 MB / 0.5702 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008184/0.634, allocations: 3.232 MB / 0.5733 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.181e-05/0.6341, allocations: 48.62 kB / 0.5734 GB, free: 9.512 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 3.947e-06/0.6341, allocations: 0 / 0.5734 GB, free: 9.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.0164/0.6505, allocations: 6.809 MB / 0.58 GB, free: 2.699 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/0.6506, allocations: 72.7 kB / 0.5801 GB, free: 2.617 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004576/0.6551, allocations: 2.678 MB / 0.5827 GB, free: 15.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.6553, allocations: 52.67 kB / 0.5828 GB, free: 15.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001699/0.657, allocations: 2.187 MB / 0.5849 GB, free: 13.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007911/0.6578, allocations: 0.5991 MB / 0.5855 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/0.6589, allocations: 0.7904 MB / 0.5863 GB, free: 12.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.659, allocations: 309.1 kB / 0.5866 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.6614, allocations: 1.296 MB / 0.5878 GB, free: 10.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004019/0.6654, allocations: 3.435 MB / 0.5912 GB, free: 6.223 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007042/0.6725, allocations: 5.083 MB / 0.5961 GB, free: 420 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.666e-05/0.6725, allocations: 24 kB / 0.5962 GB, free: 396 kB / 430.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009081/0.6816, allocations: 4.9 MB / 0.601 GB, free: 11.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.047e-05/0.6817, allocations: 36 kB / 0.601 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.952e-05/0.6818, allocations: 79.47 kB / 0.6011 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008892/0.6827, allocations: 341.1 kB / 0.6014 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002898/0.6856, allocations: 0.8625 MB / 0.6022 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005457/0.691, allocations: 3.548 MB / 0.6057 GB, free: 6.762 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002907/0.6939, allocations: 195.9 kB / 0.6059 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006383/0.6946, allocations: 239.7 kB / 0.6061 GB, free: 6.34 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.003908/0.6985, allocations: 1.572 MB / 0.6076 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006198/0.6991, allocations: 234.4 kB / 0.6079 GB, free: 4.527 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004288/0.7034, allocations: 2.014 MB / 0.6098 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001101/0.7035, allocations: 31.27 kB / 0.6099 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.7035, allocations: 3.938 kB / 0.6099 GB, free: 2.469 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.7035, allocations: 13.08 kB / 0.6099 GB, free: 2.457 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/0.7155, allocations: 5.646 MB / 0.6154 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.722e-05/0.7155, allocations: 7.984 kB / 0.6154 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000889/0.7164, allocations: 195.8 kB / 0.6156 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006971/0.7171, allocations: 240.9 kB / 0.6158 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.5e-05/0.7172, allocations: 28.55 kB / 0.6158 GB, free: 12.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003986/0.7212, allocations: 2.847 MB / 0.6186 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.7212, allocations: 4 kB / 0.6186 GB, free: 9.305 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005409/0.7266, allocations: 3.113 MB / 0.6217 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/0.7277, allocations: 390.3 kB / 0.622 GB, free: 5.766 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000287/0.728, allocations: 24 kB / 0.6221 GB, free: 5.742 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009403/0.729, allocations: 63.92 kB / 0.6221 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.7291, allocations: 99.89 kB / 0.6222 GB, free: 5.582 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.534e-05/0.7292, allocations: 40 kB / 0.6223 GB, free: 5.543 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00335/0.7326, allocations: 1.732 MB / 0.624 GB, free: 3.797 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7326, allocations: 0 / 0.624 GB, free: 3.797 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003244/0.7358, allocations: 0.6757 MB / 0.6246 GB, free: 3.121 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.005781/0.7416, allocations: 3.745 MB / 0.6283 GB, free: 15.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006393/0.748, allocations: 3.073 MB / 0.6313 GB, free: 12.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.748, allocations: 4.438 kB / 0.6313 GB, free: 12.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.7497, allocations: 0.9765 MB / 0.6322 GB, free: 11.26 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/0.7522, allocations: 421 kB / 0.6326 GB, free: 10.87 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05256/0.8047, allocations: 28.11 MB / 0.6601 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003631/0.8084, allocations: 2.595 MB / 0.6626 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003432/0.8118, allocations: 1.19 MB / 0.6638 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002259/0.8141, allocations: 1.343 MB / 0.6651 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of SimCode: time 3.487e-06/0.8141, allocations: 0 / 0.6651 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1225/0.9365, allocations: 51.68 MB / 0.7156 GB, free: 3.465 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.64/19.58, allocations: 1.688 kB / 0.7156 GB, free: 3.465 MB / 0.545 GB " [Timeout remaining time 640] (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: 23.063163700000587] Failed to read output from testmodel.py, exit status != 0: 19.72199307200208 19.988057407 19.465391974 Calling exit ...