Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.001286/0.001286, allocations: 103.3 kB / 16.45 MB, free: 6.449 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.001346/0.001346, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.539/1.539, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.04821/0.04821, allocations: 9.224 MB / 318.1 MB, free: 11.2 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.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.001964/0.001964, allocations: 72.12 kB / 442.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1256, allocations: 55.43 MB / 498 MB, free: 11 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01018/0.1357, allocations: 8.362 MB / 0.4945 GB, free: 2.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00602/0.1418, allocations: 2.624 MB / 0.497 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.143, allocations: 39.88 kB / 0.4971 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.1441, allocations: 381.5 kB / 0.4974 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004026/0.1481, allocations: 1.424 MB / 0.4988 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.1486, allocations: 135.8 kB / 0.4989 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003839/0.1524, allocations: 2.483 MB / 0.5014 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00153/0.154, allocations: 0.7488 MB / 0.5021 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001647/0.1556, allocations: 0.9105 MB / 0.503 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002209/0.1578, allocations: 1.421 MB / 0.5044 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000496/0.1583, allocations: 228 kB / 0.5046 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001642/0.16, allocations: 0.8815 MB / 0.5055 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00135/0.1613, allocations: 1.207 MB / 0.5066 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001891/0.1632, allocations: 1.534 MB / 0.5081 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2717/0.4349, allocations: 4.945 MB / 0.513 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.4349, allocations: 1.656 kB / 0.513 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4349, allocations: 2.062 kB / 0.513 GB, free: 11.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001972/0.4351, allocations: 1.375 kB / 0.513 GB, free: 11.35 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01155/0.4467, allocations: 3.94 MB / 0.5168 GB, free: 9.887 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4467, allocations: 10.11 kB / 0.5168 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001085/0.4478, allocations: 0.5316 MB / 0.5173 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007756/0.4556, allocations: 1.783 MB / 0.5191 GB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00368/0.4592, allocations: 1.358 MB / 0.5204 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.4594, allocations: 150.1 kB / 0.5206 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008324/0.4602, allocations: 195 kB / 0.5207 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01636/0.4766, allocations: 7.91 MB / 0.5285 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-05/0.4767, allocations: 22.75 kB / 0.5285 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003513/0.477, allocations: 91.98 kB / 0.5286 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003188/0.4802, allocations: 1.849 MB / 0.5304 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01601/0.4962, allocations: 7.121 MB / 0.5373 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0387/0.5349, allocations: 23.87 MB / 0.5607 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005689/0.5406, allocations: 2.304 MB / 0.5629 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.542, allocations: 0.7617 MB / 0.5636 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007501/0.5495, allocations: 4.607 MB / 0.5681 GB, free: 9.938 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.741e-05/0.5495, allocations: 43.56 kB / 0.5682 GB, free: 9.883 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.978e-06/0.5495, allocations: 0 / 0.5682 GB, free: 9.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.0164/0.5659, allocations: 7.089 MB / 0.5751 GB, free: 2.754 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.566, allocations: 72.7 kB / 0.5752 GB, free: 2.672 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004227/0.5702, allocations: 2.592 MB / 0.5777 GB, free: 52 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000236/0.5705, allocations: 45.7 kB / 0.5778 GB, free: 0 / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001696/0.5722, allocations: 2.142 MB / 0.5798 GB, free: 13.87 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006413/0.5728, allocations: 0.5953 MB / 0.5804 GB, free: 13.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/0.5739, allocations: 0.7772 MB / 0.5812 GB, free: 12.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.574, allocations: 312.2 kB / 0.5815 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002333/0.5764, allocations: 1.28 MB / 0.5827 GB, free: 10.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004049/0.5804, allocations: 3.373 MB / 0.586 GB, free: 6.547 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006734/0.5871, allocations: 4.993 MB / 0.5909 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.656e-05/0.5872, allocations: 20 kB / 0.5909 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009296/0.5965, allocations: 4.84 MB / 0.5956 GB, free: 12.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.5966, allocations: 36.19 kB / 0.5957 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.871e-05/0.5966, allocations: 76 kB / 0.5958 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008827/0.5975, allocations: 340.6 kB / 0.5961 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/0.6004, allocations: 0.8461 MB / 0.5969 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00549/0.6059, allocations: 3.652 MB / 0.6005 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/0.6092, allocations: 193.2 kB / 0.6007 GB, free: 7.004 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000624/0.6098, allocations: 232 kB / 0.6009 GB, free: 6.777 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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 (463): * Single equations (assignments): 458 * 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.00293/0.6128, allocations: 1.551 MB / 0.6024 GB, free: 5.219 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/0.6132, allocations: 233.4 kB / 0.6026 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003628/0.6169, allocations: 1.99 MB / 0.6046 GB, free: 2.988 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001002/0.617, allocations: 23.98 kB / 0.6046 GB, free: 2.965 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.617, allocations: 4 kB / 0.6046 GB, free: 2.961 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/0.617, allocations: 9.609 kB / 0.6046 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.6273, allocations: 5.653 MB / 0.6101 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.6274, allocations: 7.984 kB / 0.6101 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008168/0.6282, allocations: 201 kB / 0.6103 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007285/0.6289, allocations: 248 kB / 0.6106 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/0.629, allocations: 27.98 kB / 0.6106 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003655/0.6326, allocations: 2.951 MB / 0.6135 GB, free: 9.652 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.6326, allocations: 0 / 0.6135 GB, free: 9.652 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004866/0.6375, allocations: 3.098 MB / 0.6165 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000666/0.6382, allocations: 311.6 kB / 0.6168 GB, free: 6.172 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002443/0.6384, allocations: 26.5 kB / 0.6168 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007431/0.6392, allocations: 59.92 kB / 0.6169 GB, free: 6.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.6394, allocations: 92.77 kB / 0.617 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.39e-05/0.6394, allocations: 47.98 kB / 0.617 GB, free: 5.953 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003024/0.6425, allocations: 1.68 MB / 0.6186 GB, free: 4.258 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6425, allocations: 0 / 0.6186 GB, free: 4.258 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003701/0.6462, allocations: 0.6634 MB / 0.6193 GB, free: 3.598 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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.005618/0.6518, allocations: 3.733 MB / 0.6229 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005684/0.6575, allocations: 3.028 MB / 0.6259 GB, free: 12.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.6575, allocations: 4.25 kB / 0.6259 GB, free: 12.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00169/0.6592, allocations: 0.9698 MB / 0.6268 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.6612, allocations: 393.6 kB / 0.6272 GB, free: 11.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04866/0.7099, allocations: 27.4 MB / 0.654 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003606/0.7135, allocations: 2.554 MB / 0.6565 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002815/0.7163, allocations: 1.18 MB / 0.6576 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/0.7182, allocations: 1.295 MB / 0.6589 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of SimCode: time 1.793e-06/0.7182, allocations: 0 / 0.6589 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1405/0.8588, allocations: 47.07 MB / 0.7049 GB, free: 9.422 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.02/16.88, allocations: 7.938 kB / 0.7049 GB, free: 9.414 MB / 0.545 GB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.CraneCrab_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.708789843003615] Failed to read output from testmodel.py, exit status != 0: 16.988860383993597 17.01113955 16.571674617 Calling exit ...