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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 105.6 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.05069/0.05069, allocations: 9.244 MB / 311.9 MB, free: 0.7344 MB / 238.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 63.91 kB / 434 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09045/0.0923, allocations: 54.26 MB / 488.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01038/0.1027, allocations: 8.832 MB / 497.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005578/0.1083, allocations: 2.69 MB / 499.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009365/0.1092, allocations: 39.88 kB / 499.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000825/0.11, allocations: 385.4 kB / 0.4885 GB, free: 11.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00316/0.1132, allocations: 1.463 MB / 0.4899 GB, free: 10.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005131/0.1137, allocations: 183.7 kB / 0.4901 GB, free: 10.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003289/0.117, allocations: 2.623 MB / 0.4927 GB, free: 7.418 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001246/0.1182, allocations: 0.8319 MB / 0.4935 GB, free: 6.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001274/0.1195, allocations: 0.9415 MB / 0.4944 GB, free: 5.613 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.1212, allocations: 1.46 MB / 0.4958 GB, free: 4.148 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003397/0.1216, allocations: 244 kB / 0.4961 GB, free: 3.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.1229, allocations: 0.8893 MB / 0.4969 GB, free: 3.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.1241, allocations: 1.258 MB / 0.4982 GB, free: 1.758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.1255, allocations: 1.6 MB / 0.4997 GB, free: 152 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005459/0.131, allocations: 5.096 MB / 0.5047 GB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.131, allocations: 0 / 0.5047 GB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.131, allocations: 4 kB / 0.5047 GB, free: 11.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.681e-05/0.1311, allocations: 4 kB / 0.5047 GB, free: 11.02 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.008395/0.1395, allocations: 4.031 MB / 0.5086 GB, free: 6.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1395, allocations: 8.031 kB / 0.5087 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006958/0.1402, allocations: 0.5429 MB / 0.5092 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006455/0.1467, allocations: 1.797 MB / 0.5109 GB, free: 4.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003246/0.1499, allocations: 1.418 MB / 0.5123 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.1501, allocations: 152.1 kB / 0.5125 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004911/0.1505, allocations: 207.8 kB / 0.5127 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2096/0.3602, allocations: 7.995 MB / 0.5205 GB, free: 31.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.449e-05/0.3603, allocations: 20.23 kB / 0.5205 GB, free: 31.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002546/0.3605, allocations: 97.03 kB / 0.5206 GB, free: 31.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00264/0.3632, allocations: 1.849 MB / 0.5224 GB, free: 30.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/0.3768, allocations: 7.177 MB / 0.5294 GB, free: 28.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03197/0.4087, allocations: 24.41 MB / 0.5532 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004338/0.4131, allocations: 2.303 MB / 0.5555 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.4141, allocations: 0.7679 MB / 0.5562 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006146/0.4202, allocations: 4.665 MB / 0.5608 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.4203, allocations: 43.56 kB / 0.5608 GB, free: 1.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.237e-06/0.4203, allocations: 0 / 0.5608 GB, free: 1.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01352/0.4338, allocations: 6.962 MB / 0.5676 GB, free: 10.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.4338, allocations: 64.72 kB / 0.5677 GB, free: 10.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004276/0.4381, allocations: 2.68 MB / 0.5703 GB, free: 8.164 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.4382, allocations: 48.61 kB / 0.5704 GB, free: 8.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001725/0.4399, allocations: 2.192 MB / 0.5725 GB, free: 5.918 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005935/0.4405, allocations: 0.6046 MB / 0.5731 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001244/0.4418, allocations: 0.7904 MB / 0.5739 GB, free: 4.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4419, allocations: 309.1 kB / 0.5742 GB, free: 4.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/0.4441, allocations: 1.288 MB / 0.5754 GB, free: 2.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003932/0.448, allocations: 3.436 MB / 0.5788 GB, free: 14.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006659/0.4547, allocations: 5.08 MB / 0.5837 GB, free: 8.293 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.434e-05/0.4548, allocations: 24 kB / 0.5838 GB, free: 8.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009257/0.464, allocations: 4.91 MB / 0.5885 GB, free: 3.355 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.525e-05/0.4641, allocations: 36 kB / 0.5886 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.4642, allocations: 79.98 kB / 0.5887 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009013/0.4651, allocations: 336.4 kB / 0.589 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002711/0.4679, allocations: 0.8656 MB / 0.5898 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004799/0.4727, allocations: 3.656 MB / 0.5934 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002478/0.4751, allocations: 191.9 kB / 0.5936 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000435/0.4756, allocations: 236 kB / 0.5938 GB, free: 13.83 MB / 430.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.00247/0.478, allocations: 1.565 MB / 0.5953 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004276/0.4785, allocations: 238.4 kB / 0.5956 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.482, allocations: 2.018 MB / 0.5975 GB, free: 9.984 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001016/0.4822, allocations: 27.92 kB / 0.5976 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.4822, allocations: 4 kB / 0.5976 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.4822, allocations: 3.984 kB / 0.5976 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.4927, allocations: 5.685 MB / 0.6031 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.4927, allocations: 0 / 0.6031 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008585/0.4935, allocations: 210.6 kB / 0.6033 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007007/0.4942, allocations: 228.9 kB / 0.6035 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.463e-05/0.4943, allocations: 35.98 kB / 0.6036 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003766/0.4981, allocations: 2.942 MB / 0.6064 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.4981, allocations: 4.031 kB / 0.6064 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004813/0.5029, allocations: 3.122 MB / 0.6095 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/0.5041, allocations: 463.4 kB / 0.6099 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004279/0.5045, allocations: 28 kB / 0.61 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008859/0.5054, allocations: 59.92 kB / 0.61 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.5056, allocations: 92.77 kB / 0.6101 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.294e-05/0.5057, allocations: 43.98 kB / 0.6102 GB, free: 12.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002867/0.5085, allocations: 1.724 MB / 0.6118 GB, free: 11 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5085, allocations: 0 / 0.6118 GB, free: 11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002878/0.5114, allocations: 0.6991 MB / 0.6125 GB, free: 10.3 MB / 446.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.005297/0.5167, allocations: 3.748 MB / 0.6162 GB, free: 6.488 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005328/0.522, allocations: 3.06 MB / 0.6192 GB, free: 3.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.522, allocations: 0 / 0.6192 GB, free: 3.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.5237, allocations: 0.9727 MB / 0.6201 GB, free: 2.449 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.5259, allocations: 434 kB / 0.6205 GB, free: 2.043 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04568/0.5716, allocations: 28.04 MB / 0.6479 GB, free: 3.227 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003452/0.575, allocations: 2.591 MB / 0.6504 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002854/0.5779, allocations: 1.185 MB / 0.6516 GB, free: 15.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001947/0.5798, allocations: 1.339 MB / 0.6529 GB, free: 14.07 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5798, allocations: 0 / 0.6529 GB, free: 14.07 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09828/0.6781, allocations: 48.48 MB / 0.7003 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.73, allocations: 6.25 kB / 0.7003 GB, free: 13.8 MB / 0.5294 GB " [Timeout remaining time 644] (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.150248189922422] Failed to read output from testmodel.py, exit status != 0: 15.841028578113765 15.855290099 15.721454082 Calling exit ...