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.001908/0.001908, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002528/0.002528, allocations: 212.3 kB / 22.24 MB, free: 4.855 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.462/1.462, allocations: 230.6 MB / 256 MB, free: 7.812 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.05332/0.05332, allocations: 9.238 MB / 321.7 MB, free: 9.879 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.002404/0.002404, allocations: 67.89 kB / 447.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1265, allocations: 55.47 MB / 0.4913 GB, free: 7.086 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01172/0.1382, allocations: 7.349 MB / 0.4985 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006429/0.1446, allocations: 2.488 MB / 0.5009 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.146, allocations: 39.88 kB / 0.501 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1471, allocations: 373.5 kB / 0.5013 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004492/0.1516, allocations: 1.447 MB / 0.5028 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005314/0.1521, allocations: 123.8 kB / 0.5029 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003891/0.156, allocations: 2.476 MB / 0.5053 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001364/0.1573, allocations: 0.7337 MB / 0.506 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.1592, allocations: 0.9027 MB / 0.5069 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.1622, allocations: 1.358 MB / 0.5082 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009526/0.1632, allocations: 232 kB / 0.5084 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002917/0.1661, allocations: 0.7606 MB / 0.5092 GB, free: 4.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002017/0.1681, allocations: 1.219 MB / 0.5104 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001665/0.1698, allocations: 1.079 MB / 0.5114 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2687/0.4385, allocations: 4.946 MB / 0.5163 GB, free: 12.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.4385, allocations: 0.5312 kB / 0.5163 GB, free: 12.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4385, allocations: 1.422 kB / 0.5163 GB, free: 12.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000185/0.4387, allocations: 0.7031 kB / 0.5163 GB, free: 12.36 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.01111/0.4498, allocations: 3.868 MB / 0.52 GB, free: 10.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4499, allocations: 12.28 kB / 0.52 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008516/0.4507, allocations: 0.5291 MB / 0.5206 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007105/0.4578, allocations: 1.791 MB / 0.5223 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003943/0.4618, allocations: 1.298 MB / 0.5236 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.462, allocations: 147.9 kB / 0.5237 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008932/0.4628, allocations: 195.2 kB / 0.5239 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01541/0.4783, allocations: 7.916 MB / 0.5316 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.391e-05/0.4784, allocations: 26.08 kB / 0.5317 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003331/0.4787, allocations: 89.28 kB / 0.5317 GB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00335/0.482, allocations: 1.847 MB / 0.5335 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01704/0.4991, allocations: 7.11 MB / 0.5405 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04171/0.5408, allocations: 22.46 MB / 0.5624 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005476/0.5463, allocations: 1.845 MB / 0.5642 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/0.5477, allocations: 0.7627 MB / 0.565 GB, free: 1.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007684/0.5554, allocations: 2.93 MB / 0.5678 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.45e-05/0.5554, allocations: 43.56 kB / 0.5679 GB, free: 14.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 4.749e-06/0.5555, allocations: 0 / 0.5679 GB, free: 14.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.01675/0.5722, allocations: 6.875 MB / 0.5746 GB, free: 7.609 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.5723, allocations: 64.72 kB / 0.5747 GB, free: 7.531 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004744/0.577, allocations: 2.735 MB / 0.5773 GB, free: 4.766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002661/0.5773, allocations: 41.7 kB / 0.5774 GB, free: 4.719 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001888/0.5792, allocations: 2.142 MB / 0.5795 GB, free: 2.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000777/0.5799, allocations: 0.5968 MB / 0.58 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001229/0.5812, allocations: 0.7813 MB / 0.5808 GB, free: 1.211 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.5813, allocations: 305.1 kB / 0.5811 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002317/0.5836, allocations: 1.278 MB / 0.5823 GB, free: 15.63 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004218/0.5879, allocations: 3.371 MB / 0.5856 GB, free: 11.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007623/0.5955, allocations: 5.006 MB / 0.5905 GB, free: 5.559 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.742e-05/0.5956, allocations: 20 kB / 0.5905 GB, free: 5.539 MB / 430.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01071/0.6063, allocations: 4.827 MB / 0.5953 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.84e-05/0.6064, allocations: 40.06 kB / 0.5953 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/0.6065, allocations: 72 kB / 0.5954 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000916/0.6074, allocations: 341.6 kB / 0.5957 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/0.6105, allocations: 0.8539 MB / 0.5965 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005275/0.6158, allocations: 3.513 MB / 0.5999 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003262/0.619, allocations: 195.9 kB / 0.6001 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006605/0.6197, allocations: 228 kB / 0.6004 GB, free: 11.61 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.003049/0.6227, allocations: 1.549 MB / 0.6019 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005145/0.6232, allocations: 234.5 kB / 0.6021 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003816/0.6271, allocations: 1.993 MB / 0.604 GB, free: 7.812 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001183/0.6272, allocations: 27.25 kB / 0.6041 GB, free: 7.789 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.6272, allocations: 4 kB / 0.6041 GB, free: 7.785 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/0.6272, allocations: 11.97 kB / 0.6041 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.6383, allocations: 5.315 MB / 0.6093 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.6383, allocations: 4 kB / 0.6093 GB, free: 2.391 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.6392, allocations: 200.6 kB / 0.6095 GB, free: 2.195 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007307/0.6399, allocations: 244.9 kB / 0.6097 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.939e-05/0.64, allocations: 35.27 kB / 0.6097 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0041/0.6441, allocations: 2.812 MB / 0.6125 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.6441, allocations: 4 kB / 0.6125 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005433/0.6495, allocations: 3.101 MB / 0.6155 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008665/0.6504, allocations: 226.5 kB / 0.6157 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.6507, allocations: 28 kB / 0.6158 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008019/0.6515, allocations: 67.86 kB / 0.6158 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.6517, allocations: 96.7 kB / 0.6159 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.6518, allocations: 51.03 kB / 0.616 GB, free: 11.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00314/0.655, allocations: 1.675 MB / 0.6176 GB, free: 9.688 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.655, allocations: 0 / 0.6176 GB, free: 9.688 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003497/0.6584, allocations: 0.6678 MB / 0.6182 GB, free: 9.02 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.005592/0.664, allocations: 3.731 MB / 0.6219 GB, free: 5.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00582/0.6699, allocations: 3.04 MB / 0.6249 GB, free: 2.195 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/0.6699, allocations: 9.625 kB / 0.6249 GB, free: 2.188 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.6716, allocations: 0.9655 MB / 0.6258 GB, free: 1.211 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.6738, allocations: 387.4 kB / 0.6262 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0474/0.7212, allocations: 27.48 MB / 0.653 GB, free: 2.656 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003126/0.7243, allocations: 1.988 MB / 0.655 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003015/0.7273, allocations: 1.179 MB / 0.6561 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002179/0.7295, allocations: 1.296 MB / 0.6574 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of SimCode: time 1.452e-06/0.7295, allocations: 0 / 0.6574 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1327/0.8622, allocations: 47.62 MB / 0.7039 GB, free: 15.04 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/15.04, allocations: 12.05 kB / 0.7039 GB, free: 15.03 MB / 0.545 GB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.75832577701658] Failed to read output from testmodel.py, exit status != 0: 15.186931654810905 15.212007282 14.768334919 Calling exit ...