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.001367/0.001367, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001844/0.001844, allocations: 217.5 kB / 23.03 MB, free: 4.922 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.531/1.531, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.04861/0.04861, allocations: 9.235 MB / 322.4 MB, free: 9.84 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.001948/0.001948, allocations: 64.19 kB / 448.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1301, allocations: 55.46 MB / 0.4921 GB, free: 7.004 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01054/0.1406, allocations: 7.731 MB / 0.4997 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005995/0.1466, allocations: 2.581 MB / 0.5022 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001542/0.1481, allocations: 39.88 kB / 0.5022 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.1493, allocations: 389.3 kB / 0.5026 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004319/0.1536, allocations: 1.471 MB / 0.504 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006462/0.1542, allocations: 171.8 kB / 0.5042 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004318/0.1585, allocations: 2.608 MB / 0.5067 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001389/0.1599, allocations: 0.8208 MB / 0.5075 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.1614, allocations: 0.9533 MB / 0.5085 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002352/0.1638, allocations: 1.471 MB / 0.5099 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005046/0.1643, allocations: 240 kB / 0.5101 GB, free: 4.449 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.1658, allocations: 0.7724 MB / 0.5109 GB, free: 3.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.1671, allocations: 1.242 MB / 0.5121 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001426/0.1685, allocations: 1.122 MB / 0.5132 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2713/0.4398, allocations: 5.069 MB / 0.5181 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.4398, allocations: 0 / 0.5181 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4398, allocations: 0.8438 kB / 0.5181 GB, free: 12.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001672/0.44, allocations: 0 / 0.5181 GB, free: 12.66 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.01202/0.452, allocations: 3.982 MB / 0.522 GB, free: 11.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.4521, allocations: 8.5 kB / 0.522 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001097/0.4522, allocations: 74.84 kB / 0.5221 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001023/0.4532, allocations: 0.5421 MB / 0.5226 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007287/0.4605, allocations: 1.796 MB / 0.5244 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004589/0.4651, allocations: 1.369 MB / 0.5257 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.4653, allocations: 153.6 kB / 0.5259 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007718/0.4661, allocations: 207.3 kB / 0.5261 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01817/0.4842, allocations: 8.001 MB / 0.5339 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.318e-05/0.4843, allocations: 22.27 kB / 0.5339 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003267/0.4846, allocations: 102.1 kB / 0.534 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/0.4875, allocations: 1.843 MB / 0.5358 GB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.5017, allocations: 7.175 MB / 0.5428 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03765/0.5394, allocations: 22.96 MB / 0.5652 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005293/0.5446, allocations: 1.86 MB / 0.567 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/0.5459, allocations: 0.7704 MB / 0.5678 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007425/0.5534, allocations: 2.981 MB / 0.5707 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.668e-05/0.5534, allocations: 44.12 kB / 0.5708 GB, free: 12.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 4.378e-06/0.5534, allocations: 0 / 0.5708 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01605/0.5695, allocations: 6.822 MB / 0.5774 GB, free: 6.117 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.5695, allocations: 64.72 kB / 0.5775 GB, free: 6.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004505/0.5741, allocations: 2.686 MB / 0.5801 GB, free: 3.328 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002246/0.5743, allocations: 45.7 kB / 0.5801 GB, free: 3.277 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001798/0.5761, allocations: 2.195 MB / 0.5823 GB, free: 1.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007734/0.5768, allocations: 0.5961 MB / 0.5829 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/0.5781, allocations: 0.7904 MB / 0.5836 GB, free: 15.7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.5783, allocations: 313.1 kB / 0.5839 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/0.5807, allocations: 1.292 MB / 0.5852 GB, free: 14.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00407/0.5848, allocations: 3.434 MB / 0.5886 GB, free: 9.641 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008041/0.5928, allocations: 5.087 MB / 0.5935 GB, free: 3.832 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-05/0.5929, allocations: 25.8 kB / 0.5935 GB, free: 3.809 MB / 430.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01001/0.6029, allocations: 4.9 MB / 0.5983 GB, free: 15.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.016e-05/0.603, allocations: 40 kB / 0.5984 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.722e-05/0.6031, allocations: 72 kB / 0.5984 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009361/0.604, allocations: 337.2 kB / 0.5988 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002935/0.6069, allocations: 0.8617 MB / 0.5996 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005257/0.6122, allocations: 3.513 MB / 0.603 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003354/0.6155, allocations: 214.6 kB / 0.6032 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000591/0.6161, allocations: 228 kB / 0.6035 GB, free: 9.824 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.003037/0.6192, allocations: 1.566 MB / 0.605 GB, free: 8.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005113/0.6197, allocations: 238.4 kB / 0.6052 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/0.6236, allocations: 2.02 MB / 0.6072 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001105/0.6237, allocations: 23.98 kB / 0.6072 GB, free: 5.961 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.6237, allocations: 7.938 kB / 0.6072 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.6237, allocations: 8.031 kB / 0.6072 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/0.6347, allocations: 5.354 MB / 0.6125 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.6347, allocations: 4 kB / 0.6125 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008766/0.6356, allocations: 204.5 kB / 0.6127 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007355/0.6363, allocations: 228.7 kB / 0.6129 GB, free: 100 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.341e-05/0.6364, allocations: 34.5 kB / 0.6129 GB, free: 68 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003861/0.6403, allocations: 2.828 MB / 0.6157 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.6403, allocations: 3.938 kB / 0.6157 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005176/0.6454, allocations: 3.105 MB / 0.6187 GB, free: 9.973 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.6466, allocations: 398.2 kB / 0.6191 GB, free: 9.582 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003055/0.6469, allocations: 24 kB / 0.6191 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008369/0.6477, allocations: 65.25 kB / 0.6192 GB, free: 9.496 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.648, allocations: 93.02 kB / 0.6193 GB, free: 9.402 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.6481, allocations: 42.34 kB / 0.6193 GB, free: 9.363 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003144/0.6512, allocations: 1.736 MB / 0.621 GB, free: 7.613 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6512, allocations: 3.938 kB / 0.621 GB, free: 7.609 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003469/0.6547, allocations: 0.6716 MB / 0.6216 GB, free: 6.941 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.005443/0.6601, allocations: 3.755 MB / 0.6253 GB, free: 3.137 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006108/0.6662, allocations: 3.063 MB / 0.6283 GB, free: 80 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.6662, allocations: 0 / 0.6283 GB, free: 80 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001801/0.668, allocations: 0.9882 MB / 0.6293 GB, free: 15.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.6705, allocations: 423.2 kB / 0.6297 GB, free: 14.68 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05275/0.7232, allocations: 28.1 MB / 0.6571 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003069/0.7263, allocations: 2.032 MB / 0.6591 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003005/0.7293, allocations: 1.187 MB / 0.6603 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002381/0.7317, allocations: 1.347 MB / 0.6616 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of SimCode: time 2.034e-06/0.7317, allocations: 0 / 0.6616 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/0.8418, allocations: 50.48 MB / 0.7109 GB, free: 9.297 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.54/19.38, allocations: 0 / 0.7109 GB, free: 9.297 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 & /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: 22.46751933498308] Failed to read output from testmodel.py, exit status != 0: 19.579805858084 19.785357411 19.342932008000002 Calling exit ...