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.001435/0.001435, 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.001453/0.001453, allocations: 216.2 kB / 22.25 MB, free: 4.852 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.429/1.429, allocations: 230.6 MB / 256 MB, free: 7.816 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.04838/0.04838, allocations: 9.233 MB / 321.7 MB, free: 9.879 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.002095/0.002095, allocations: 67.89 kB / 447.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.121, allocations: 55.47 MB / 0.4913 GB, free: 7.094 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01057/0.1315, allocations: 7.77 MB / 0.4989 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006483/0.138, allocations: 2.597 MB / 0.5015 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001712/0.1397, allocations: 39.88 kB / 0.5015 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.1413, allocations: 397.3 kB / 0.5019 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005242/0.1465, allocations: 1.463 MB / 0.5033 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009321/0.1474, allocations: 175.8 kB / 0.5035 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004703/0.1521, allocations: 2.598 MB / 0.506 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001791/0.1539, allocations: 0.8053 MB / 0.5068 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00198/0.1559, allocations: 0.961 MB / 0.5077 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002557/0.1585, allocations: 1.397 MB / 0.5091 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007555/0.1592, allocations: 240 kB / 0.5093 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001955/0.1612, allocations: 0.7723 MB / 0.5101 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001682/0.1629, allocations: 1.238 MB / 0.5113 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.165, allocations: 1.126 MB / 0.5124 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2679/0.4329, allocations: 5.072 MB / 0.5173 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4329, allocations: 4.75 kB / 0.5174 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4329, allocations: 0 / 0.5174 GB, free: 12.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001287/0.433, allocations: 0 / 0.5174 GB, free: 12.62 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.01188/0.4449, allocations: 3.975 MB / 0.5212 GB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.339e-05/0.445, allocations: 9.688 kB / 0.5212 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001046/0.446, allocations: 0.5413 MB / 0.5218 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007049/0.4531, allocations: 1.801 MB / 0.5235 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003497/0.4566, allocations: 1.365 MB / 0.5249 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.4567, allocations: 155.3 kB / 0.525 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006048/0.4574, allocations: 207.2 kB / 0.5252 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/0.4716, allocations: 8.002 MB / 0.533 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.572e-05/0.4717, allocations: 23.98 kB / 0.533 GB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/0.472, allocations: 93.86 kB / 0.5331 GB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003038/0.475, allocations: 1.848 MB / 0.5349 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01442/0.4895, allocations: 7.163 MB / 0.5419 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03718/0.5266, allocations: 22.97 MB / 0.5644 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005114/0.5318, allocations: 1.849 MB / 0.5662 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.5331, allocations: 0.7743 MB / 0.5669 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0074/0.5405, allocations: 2.98 MB / 0.5698 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.929e-05/0.5405, allocations: 47.56 kB / 0.5699 GB, free: 13.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 5.219e-06/0.5406, allocations: 1.312 kB / 0.5699 GB, free: 13.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01497/0.5555, allocations: 6.817 MB / 0.5765 GB, free: 6.277 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.5556, allocations: 66.03 kB / 0.5766 GB, free: 6.199 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004159/0.5597, allocations: 2.811 MB / 0.5793 GB, free: 3.363 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.812e-05/0.5598, allocations: 49.3 kB / 0.5794 GB, free: 3.312 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00182/0.5617, allocations: 2.194 MB / 0.5815 GB, free: 1.125 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005951/0.5623, allocations: 0.5971 MB / 0.5821 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001155/0.5634, allocations: 0.7935 MB / 0.5829 GB, free: 15.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5636, allocations: 305.1 kB / 0.5832 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002225/0.5658, allocations: 1.292 MB / 0.5844 GB, free: 14.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004395/0.5702, allocations: 3.433 MB / 0.5878 GB, free: 9.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00695/0.5771, allocations: 5.092 MB / 0.5928 GB, free: 3.867 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-05/0.5772, allocations: 24 kB / 0.5928 GB, free: 3.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009198/0.5864, allocations: 4.906 MB / 0.5976 GB, free: 15.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.148e-05/0.5865, allocations: 36 kB / 0.5976 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.779e-05/0.5865, allocations: 76 kB / 0.5977 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008873/0.5874, allocations: 335.9 kB / 0.598 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002708/0.5901, allocations: 0.8616 MB / 0.5989 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004886/0.595, allocations: 3.524 MB / 0.6023 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002747/0.5978, allocations: 195.9 kB / 0.6025 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003705/0.5981, allocations: 235.3 kB / 0.6027 GB, free: 9.852 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.002887/0.601, allocations: 1.563 MB / 0.6042 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004043/0.6014, allocations: 238.4 kB / 0.6045 GB, free: 8.043 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003638/0.6051, allocations: 2.019 MB / 0.6064 GB, free: 6.016 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/0.6052, allocations: 28.48 kB / 0.6065 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.6052, allocations: 7.938 kB / 0.6065 GB, free: 5.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.6052, allocations: 7.172 kB / 0.6065 GB, free: 5.977 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.6155, allocations: 5.348 MB / 0.6117 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.6155, allocations: 4 kB / 0.6117 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008335/0.6163, allocations: 199.7 kB / 0.6119 GB, free: 372 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006852/0.617, allocations: 236.9 kB / 0.6121 GB, free: 132 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.403e-05/0.6171, allocations: 30.41 kB / 0.6121 GB, free: 104 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003721/0.6208, allocations: 2.825 MB / 0.6149 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.6208, allocations: 8 kB / 0.6149 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00508/0.6259, allocations: 3.114 MB / 0.618 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.6271, allocations: 386.3 kB / 0.6183 GB, free: 9.621 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002777/0.6274, allocations: 24 kB / 0.6183 GB, free: 9.598 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007973/0.6282, allocations: 67.52 kB / 0.6184 GB, free: 9.535 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.6284, allocations: 99.95 kB / 0.6185 GB, free: 9.438 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.866e-05/0.6285, allocations: 43.98 kB / 0.6185 GB, free: 9.395 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002962/0.6315, allocations: 1.732 MB / 0.6202 GB, free: 7.648 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6315, allocations: 0 / 0.6202 GB, free: 7.648 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003096/0.6345, allocations: 0.6796 MB / 0.6209 GB, free: 6.969 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.005468/0.64, allocations: 3.746 MB / 0.6246 GB, free: 3.172 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005789/0.6458, allocations: 3.063 MB / 0.6275 GB, free: 116 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.6458, allocations: 4 kB / 0.6276 GB, free: 112 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.6475, allocations: 0.9833 MB / 0.6285 GB, free: 15.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/0.6497, allocations: 407.6 kB / 0.6289 GB, free: 14.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04976/0.6994, allocations: 28.11 MB / 0.6564 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003019/0.7024, allocations: 2.034 MB / 0.6583 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00301/0.7054, allocations: 1.187 MB / 0.6595 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002035/0.7075, allocations: 1.347 MB / 0.6608 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of SimCode: time 1.212e-06/0.7075, allocations: 0 / 0.6608 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1069/0.8144, allocations: 49.02 MB / 0.7087 GB, free: 10.76 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.37/15.19, allocations: 4.656 kB / 0.7087 GB, free: 10.76 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.005058042239398] Failed to read output from testmodel.py, exit status != 0: 15.337809543125331 15.533716432 15.097380719 Calling exit ...