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.001346/0.001346, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.001792/0.001792, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.545/1.545, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.04792/0.04792, allocations: 9.239 MB / 318.8 MB, free: 15.54 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="cs",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.001971/0.001971, allocations: 66.61 kB / 443.2 MB, free: 39.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09199/0.09396, allocations: 55.43 MB / 498.7 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.008099/0.1021, allocations: 8.839 MB / 0.4956 GB, free: 13.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005391/0.1075, allocations: 2.717 MB / 0.4983 GB, free: 10.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008831/0.1083, allocations: 47.88 kB / 0.4983 GB, free: 10.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008619/0.1092, allocations: 393.3 kB / 0.4987 GB, free: 10.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003127/0.1123, allocations: 1.443 MB / 0.5001 GB, free: 9.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.1128, allocations: 179.8 kB / 0.5003 GB, free: 8.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003172/0.116, allocations: 2.603 MB / 0.5028 GB, free: 6.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.1172, allocations: 0.8358 MB / 0.5036 GB, free: 5.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001241/0.1184, allocations: 0.9533 MB / 0.5046 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001899/0.1203, allocations: 1.46 MB / 0.506 GB, free: 3.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004358/0.1207, allocations: 240 kB / 0.5062 GB, free: 2.785 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001516/0.1222, allocations: 0.8932 MB / 0.5071 GB, free: 1.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.1236, allocations: 1.254 MB / 0.5083 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00204/0.1256, allocations: 1.58 MB / 0.5099 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006773/0.1324, allocations: 5.069 MB / 0.5148 GB, free: 9.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1324, allocations: 0 / 0.5148 GB, free: 9.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1324, allocations: 0 / 0.5148 GB, free: 9.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001291/0.1325, allocations: 4 kB / 0.5148 GB, free: 9.949 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.01758/0.1501, allocations: 4.051 MB / 0.5188 GB, free: 5.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.804e-05/0.1502, allocations: 12.03 kB / 0.5188 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001539/0.1503, allocations: 76.02 kB / 0.5188 GB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00224/0.1525, allocations: 0.5429 MB / 0.5194 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01065/0.1632, allocations: 1.797 MB / 0.5211 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00411/0.1673, allocations: 1.418 MB / 0.5225 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/0.1675, allocations: 159.8 kB / 0.5227 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007343/0.1683, allocations: 199.9 kB / 0.5229 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/0.186, allocations: 7.997 MB / 0.5307 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.1861, allocations: 27.75 kB / 0.5307 GB, free: 9.184 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000419/0.1865, allocations: 91.88 kB / 0.5308 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004355/0.1909, allocations: 1.848 MB / 0.5326 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0201/0.211, allocations: 7.176 MB / 0.5396 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04793/0.2589, allocations: 24.4 MB / 0.5634 GB, free: 7.164 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007742/0.2666, allocations: 2.301 MB / 0.5657 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/0.2686, allocations: 0.7816 MB / 0.5664 GB, free: 3.961 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/0.2787, allocations: 4.657 MB / 0.571 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.171e-05/0.2787, allocations: 43.56 kB / 0.571 GB, free: 14.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=131): time 9.618e-06/0.2787, allocations: 3.984 kB / 0.571 GB, free: 14.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=153): time 0.02315/0.3019, allocations: 6.985 MB / 0.5778 GB, free: 7.809 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.302, allocations: 64.72 kB / 0.5779 GB, free: 7.734 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006629/0.3086, allocations: 2.684 MB / 0.5805 GB, free: 5.023 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003048/0.3089, allocations: 49.7 kB / 0.5806 GB, free: 4.969 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002684/0.3116, allocations: 2.188 MB / 0.5827 GB, free: 2.758 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001131/0.3127, allocations: 0.6007 MB / 0.5833 GB, free: 2.152 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001746/0.3145, allocations: 0.7904 MB / 0.5841 GB, free: 1.352 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.3146, allocations: 309.1 kB / 0.5844 GB, free: 1.047 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2466/0.5613, allocations: 1.29 MB / 0.5856 GB, free: 88.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00341/0.5647, allocations: 3.44 MB / 0.589 GB, free: 85.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004781/0.5695, allocations: 5.071 MB / 0.5939 GB, free: 81.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.989e-05/0.5695, allocations: 20.72 kB / 0.594 GB, free: 81.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01009/0.5796, allocations: 4.906 MB / 0.5987 GB, free: 80.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-05/0.5797, allocations: 37.27 kB / 0.5988 GB, free: 80.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.646e-05/0.5798, allocations: 74.94 kB / 0.5989 GB, free: 80.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008552/0.5807, allocations: 334.7 kB / 0.5992 GB, free: 80.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002992/0.5837, allocations: 0.859 MB / 0.6 GB, free: 79.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003852/0.5875, allocations: 3.659 MB / 0.6036 GB, free: 77.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/0.5907, allocations: 196 kB / 0.6038 GB, free: 77.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007472/0.5915, allocations: 232 kB / 0.604 GB, free: 77.55 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.003294/0.5948, allocations: 1.562 MB / 0.6055 GB, free: 76.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004763/0.5952, allocations: 239 kB / 0.6057 GB, free: 76.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003302/0.5985, allocations: 2.018 MB / 0.6077 GB, free: 76.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001096/0.5987, allocations: 31.42 kB / 0.6077 GB, free: 76.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.5987, allocations: 3.938 kB / 0.6078 GB, free: 76.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.5987, allocations: 7.594 kB / 0.6078 GB, free: 76.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008671/0.6073, allocations: 5.686 MB / 0.6133 GB, free: 72.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.6074, allocations: 4 kB / 0.6133 GB, free: 72.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000775/0.6081, allocations: 206.5 kB / 0.6135 GB, free: 72.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006087/0.6087, allocations: 236.5 kB / 0.6137 GB, free: 72.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.026e-05/0.6088, allocations: 24.75 kB / 0.6138 GB, free: 72.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.6114, allocations: 2.955 MB / 0.6166 GB, free: 69.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.6114, allocations: 7.938 kB / 0.6167 GB, free: 69.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003695/0.6151, allocations: 3.112 MB / 0.6197 GB, free: 66.28 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/0.6161, allocations: 459.5 kB / 0.6201 GB, free: 65.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002626/0.6164, allocations: 27.98 kB / 0.6202 GB, free: 65.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008586/0.6172, allocations: 67.86 kB / 0.6202 GB, free: 65.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001637/0.6174, allocations: 84.83 kB / 0.6203 GB, free: 65.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-05/0.6175, allocations: 44.8 kB / 0.6203 GB, free: 65.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002219/0.6197, allocations: 1.735 MB / 0.622 GB, free: 63.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6197, allocations: 0 / 0.622 GB, free: 63.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003131/0.6228, allocations: 0.6719 MB / 0.6227 GB, free: 63.18 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.003914/0.6267, allocations: 3.751 MB / 0.6264 GB, free: 59.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0047/0.6314, allocations: 3.071 MB / 0.6294 GB, free: 56.33 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.6314, allocations: 0 / 0.6294 GB, free: 56.33 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.6327, allocations: 0.9772 MB / 0.6303 GB, free: 55.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.6345, allocations: 412.5 kB / 0.6307 GB, free: 54.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03159/0.6661, allocations: 28.04 MB / 0.6581 GB, free: 24.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002338/0.6685, allocations: 2.59 MB / 0.6606 GB, free: 21.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002323/0.6708, allocations: 1.186 MB / 0.6618 GB, free: 20.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/0.6722, allocations: 1.347 MB / 0.6631 GB, free: 19.05 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6722, allocations: 1.312 kB / 0.6631 GB, free: 19.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08817/0.7604, allocations: 48.47 MB / 0.7104 GB, free: 2.812 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.52/17.28, allocations: 12 kB / 0.7104 GB, free: 2.801 MB / 478.1 MB " [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 & /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: 20.177801145997364] Failed to read output from testmodel.py, exit status != 0: 17.457952341996133 17.482125085 17.345224572 Calling exit ...