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.001303/0.001303, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001717/0.001717, allocations: 214.1 kB / 23.04 MB, free: 5.074 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.585/1.585, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.04927/0.04927, allocations: 9.245 MB / 322.5 MB, free: 10.04 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.00206/0.00206, allocations: 72.11 kB / 448.5 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1362, allocations: 55.47 MB / 0.4922 GB, free: 7.496 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01209/0.1483, allocations: 8.852 MB / 0.5008 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007052/0.1553, allocations: 2.74 MB / 0.5035 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001668/0.157, allocations: 43.81 kB / 0.5035 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.1583, allocations: 385.4 kB / 0.5039 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004786/0.1631, allocations: 1.478 MB / 0.5054 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008366/0.1639, allocations: 175.7 kB / 0.5055 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004671/0.1686, allocations: 2.593 MB / 0.5081 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001851/0.1704, allocations: 0.8209 MB / 0.5089 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002443/0.1729, allocations: 0.9571 MB / 0.5098 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002733/0.1756, allocations: 1.463 MB / 0.5112 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006713/0.1763, allocations: 244 kB / 0.5115 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002057/0.1784, allocations: 0.8972 MB / 0.5123 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00162/0.18, allocations: 1.238 MB / 0.5135 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2765/0.4565, allocations: 1.579 MB / 0.5151 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007501/0.464, allocations: 5.072 MB / 0.52 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.464, allocations: 0 / 0.52 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.464, allocations: 1.156 kB / 0.52 GB, free: 11.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001964/0.4642, allocations: 0 / 0.52 GB, free: 11.8 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.01104/0.4753, allocations: 3.978 MB / 0.5239 GB, free: 10.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.4753, allocations: 9.578 kB / 0.5239 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001019/0.4754, allocations: 72.23 kB / 0.524 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008603/0.4763, allocations: 0.5418 MB / 0.5245 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007078/0.4834, allocations: 1.793 MB / 0.5263 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003539/0.4869, allocations: 1.364 MB / 0.5276 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.4871, allocations: 150.8 kB / 0.5278 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000784/0.4879, allocations: 203.7 kB / 0.528 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0167/0.5046, allocations: 8.006 MB / 0.5358 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/0.5047, allocations: 24.55 kB / 0.5358 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003661/0.505, allocations: 93.23 kB / 0.5359 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00328/0.5083, allocations: 1.849 MB / 0.5377 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/0.5224, allocations: 7.177 MB / 0.5447 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03854/0.561, allocations: 24.31 MB / 0.5684 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005598/0.5666, allocations: 1.864 MB / 0.5703 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.568, allocations: 0.7753 MB / 0.571 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007445/0.5754, allocations: 3.223 MB / 0.5742 GB, free: 9.406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.949e-05/0.5755, allocations: 47.41 kB / 0.5742 GB, free: 9.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=131): time 3.977e-06/0.5755, allocations: 1.875 kB / 0.5742 GB, free: 9.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.0161/0.5916, allocations: 6.823 MB / 0.5809 GB, free: 2.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.5916, allocations: 64.72 kB / 0.5809 GB, free: 2.461 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004727/0.5964, allocations: 2.684 MB / 0.5836 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002116/0.5966, allocations: 45.7 kB / 0.5836 GB, free: 15.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.5983, allocations: 2.206 MB / 0.5858 GB, free: 13.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006634/0.599, allocations: 0.5873 MB / 0.5863 GB, free: 12.92 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.6002, allocations: 0.7938 MB / 0.5871 GB, free: 12.12 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.6004, allocations: 309.1 kB / 0.5874 GB, free: 11.81 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00223/0.6026, allocations: 1.296 MB / 0.5887 GB, free: 10.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004038/0.6066, allocations: 3.433 MB / 0.592 GB, free: 6.059 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006652/0.6133, allocations: 5.08 MB / 0.597 GB, free: 252 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.195e-05/0.6133, allocations: 20 kB / 0.597 GB, free: 232 kB / 430.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01032/0.6237, allocations: 4.898 MB / 0.6018 GB, free: 11.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/0.6237, allocations: 43.88 kB / 0.6018 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.14e-05/0.6238, allocations: 81.03 kB / 0.6019 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008686/0.6247, allocations: 332.6 kB / 0.6022 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002894/0.6276, allocations: 0.8676 MB / 0.6031 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004892/0.6325, allocations: 3.542 MB / 0.6065 GB, free: 6.625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003209/0.6357, allocations: 211.8 kB / 0.6067 GB, free: 6.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006191/0.6363, allocations: 228 kB / 0.6069 GB, free: 6.195 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.003267/0.6396, allocations: 1.571 MB / 0.6085 GB, free: 4.621 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005138/0.6401, allocations: 238.4 kB / 0.6087 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004196/0.6443, allocations: 2.014 MB / 0.6107 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001267/0.6444, allocations: 27.92 kB / 0.6107 GB, free: 2.332 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.6444, allocations: 7.984 kB / 0.6107 GB, free: 2.324 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/0.6444, allocations: 3.984 kB / 0.6107 GB, free: 2.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0138/0.6582, allocations: 5.656 MB / 0.6162 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.6582, allocations: 0 / 0.6162 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008685/0.6591, allocations: 203.8 kB / 0.6164 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007135/0.6598, allocations: 232.6 kB / 0.6166 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-05/0.6599, allocations: 32.03 kB / 0.6167 GB, free: 12.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00372/0.6636, allocations: 2.854 MB / 0.6195 GB, free: 9.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.6636, allocations: 0 / 0.6195 GB, free: 9.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005212/0.6688, allocations: 3.114 MB / 0.6225 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/0.6701, allocations: 386.3 kB / 0.6229 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003165/0.6704, allocations: 27.44 kB / 0.6229 GB, free: 5.598 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008534/0.6713, allocations: 67.92 kB / 0.623 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.6715, allocations: 88.77 kB / 0.623 GB, free: 5.441 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-05/0.6716, allocations: 52.14 kB / 0.6231 GB, free: 5.391 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00301/0.6746, allocations: 1.728 MB / 0.6248 GB, free: 3.648 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6746, allocations: 0 / 0.6248 GB, free: 3.648 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003427/0.678, allocations: 0.6757 MB / 0.6254 GB, free: 2.973 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.00563/0.6836, allocations: 3.756 MB / 0.6291 GB, free: 15.16 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006037/0.6897, allocations: 3.063 MB / 0.6321 GB, free: 12.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.6897, allocations: 0 / 0.6321 GB, free: 12.11 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001748/0.6914, allocations: 0.9824 MB / 0.6331 GB, free: 11.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.6937, allocations: 411.6 kB / 0.6335 GB, free: 10.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05315/0.7469, allocations: 28.12 MB / 0.6609 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003749/0.7506, allocations: 2.594 MB / 0.6635 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003184/0.7538, allocations: 1.185 MB / 0.6646 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002545/0.7563, allocations: 1.343 MB / 0.6659 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of SimCode: time 1.753e-06/0.7563, allocations: 8 kB / 0.6659 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1135/0.8699, allocations: 51.7 MB / 0.7164 GB, free: 3.297 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.65/19.52, allocations: 18.66 kB / 0.7164 GB, free: 3.285 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.64701698801946] Failed to read output from testmodel.py, exit status != 0: 19.71848877798766 19.939961149 19.47045083 Calling exit ...