Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.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.0013/0.0013, 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.001496/0.001496, allocations: 209 kB / 22.24 MB, free: 4.859 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.478/1.478, allocations: 230.6 MB / 256 MB, free: 8.012 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.04864/0.04864, allocations: 9.228 MB / 321.7 MB, free: 9.984 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.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.WheelBasedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab",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.002197/0.002197, allocations: 71.89 kB / 447.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1169, allocations: 55.47 MB / 0.4913 GB, free: 7.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.WheelBasedCraneCrab): time 0.01494/0.1318, allocations: 7.214 MB / 0.4984 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007857/0.1397, allocations: 2.426 MB / 0.5008 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.1413, allocations: 39.88 kB / 0.5008 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001461/0.1428, allocations: 373.6 kB / 0.5012 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005905/0.1487, allocations: 1.44 MB / 0.5026 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007227/0.1494, allocations: 95.81 kB / 0.5026 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004864/0.1543, allocations: 2.408 MB / 0.505 GB, free: 9.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/0.156, allocations: 0.6733 MB / 0.5057 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002282/0.1583, allocations: 0.8949 MB / 0.5065 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002942/0.1612, allocations: 1.319 MB / 0.5078 GB, free: 6.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006946/0.1619, allocations: 220 kB / 0.508 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.1638, allocations: 0.745 MB / 0.5088 GB, free: 5.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001658/0.1654, allocations: 1.219 MB / 0.5099 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001959/0.1674, allocations: 1.055 MB / 0.511 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2285/0.3959, allocations: 4.945 MB / 0.5158 GB, free: 12.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3959, allocations: 0 / 0.5158 GB, free: 12.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.3959, allocations: 0 / 0.5158 GB, free: 12.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002398/0.3961, allocations: 1.031 kB / 0.5158 GB, free: 12.22 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: 1171 * Number of variables: 1171 Notification: Performance of Generate backend data structure: time 0.0129/0.409, allocations: 4.781 MB / 0.5205 GB, free: 10.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.4091, allocations: 10.84 kB / 0.5205 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008228/0.4099, allocations: 0.543 MB / 0.521 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006678/0.4166, allocations: 1.776 MB / 0.5228 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004085/0.4206, allocations: 1.284 MB / 0.524 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/0.4209, allocations: 144 kB / 0.5241 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001236/0.4221, allocations: 190.5 kB / 0.5243 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.4374, allocations: 8.351 MB / 0.5325 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.77e-05/0.4375, allocations: 29.2 kB / 0.5325 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003477/0.4379, allocations: 102.8 kB / 0.5326 GB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002942/0.4408, allocations: 1.931 MB / 0.5345 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01483/0.4556, allocations: 7.531 MB / 0.5418 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03871/0.4943, allocations: 24.81 MB / 0.5661 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00704/0.5014, allocations: 2.082 MB / 0.5681 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.5028, allocations: 0.8236 MB / 0.5689 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007061/0.5099, allocations: 3.058 MB / 0.5719 GB, free: 9.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.93e-05/0.5099, allocations: 43.56 kB / 0.5719 GB, free: 9.855 MB / 414.1 MB Notification: Performance of pre-optimization done (n=141): time 5.531e-06/0.5099, allocations: 4.547 kB / 0.5719 GB, free: 9.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01631/0.5263, allocations: 6.844 MB / 0.5786 GB, free: 3.004 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.5263, allocations: 68.7 kB / 0.5787 GB, free: 2.926 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004173/0.5305, allocations: 2.761 MB / 0.5814 GB, free: 140 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.5307, allocations: 49.7 kB / 0.5814 GB, free: 84 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001806/0.5325, allocations: 2.223 MB / 0.5836 GB, free: 13.87 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007271/0.5332, allocations: 0.6158 MB / 0.5842 GB, free: 13.26 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.5345, allocations: 0.8372 MB / 0.585 GB, free: 12.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5346, allocations: 307.7 kB / 0.5853 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002441/0.5371, allocations: 1.312 MB / 0.5866 GB, free: 10.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004858/0.5419, allocations: 3.707 MB / 0.5902 GB, free: 5.922 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008649/0.5506, allocations: 5.449 MB / 0.5955 GB, free: 15.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001147/0.5507, allocations: 24 kB / 0.5956 GB, free: 15.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.01077/0.5614, allocations: 5.11 MB / 0.6006 GB, free: 10.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.145e-05/0.5615, allocations: 40 kB / 0.6006 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/0.5616, allocations: 88.08 kB / 0.6007 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007198/0.5623, allocations: 281.3 kB / 0.6009 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003085/0.5654, allocations: 0.9241 MB / 0.6019 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004325/0.5697, allocations: 3.069 MB / 0.6048 GB, free: 6.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/0.5726, allocations: 199.9 kB / 0.605 GB, free: 5.969 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005106/0.5731, allocations: 251.4 kB / 0.6053 GB, free: 5.727 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 12 (body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (510): * Single equations (assignments): 505 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002839/0.5759, allocations: 1.615 MB / 0.6069 GB, free: 4.102 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004353/0.5764, allocations: 238.5 kB / 0.6071 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003641/0.58, allocations: 1.96 MB / 0.609 GB, free: 1.895 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/0.5801, allocations: 31.97 kB / 0.609 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.5801, allocations: 4.062 kB / 0.609 GB, free: 1.859 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.5801, allocations: 4.688 kB / 0.609 GB, free: 1.855 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/0.5916, allocations: 5.661 MB / 0.6146 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.5916, allocations: 4 kB / 0.6146 GB, free: 12.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008847/0.5925, allocations: 218.5 kB / 0.6148 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004819/0.593, allocations: 164.7 kB / 0.6149 GB, free: 11.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.314e-05/0.5931, allocations: 35.98 kB / 0.615 GB, free: 11.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003284/0.5964, allocations: 2.496 MB / 0.6174 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/0.5964, allocations: 11.94 kB / 0.6174 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005182/0.6016, allocations: 3.132 MB / 0.6205 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007371/0.6023, allocations: 230.5 kB / 0.6207 GB, free: 5.609 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003055/0.6026, allocations: 31.98 kB / 0.6207 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008343/0.6034, allocations: 59.94 kB / 0.6208 GB, free: 5.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002012/0.6036, allocations: 100.7 kB / 0.6209 GB, free: 5.422 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.6037, allocations: 51.42 kB / 0.6209 GB, free: 5.375 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002834/0.6066, allocations: 1.668 MB / 0.6226 GB, free: 3.691 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6066, allocations: 4 kB / 0.6226 GB, free: 3.688 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003292/0.6099, allocations: 0.6679 MB / 0.6232 GB, free: 3.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 5 (idealRolling.w,body.r[1],body.phi,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 (118): * Single equations (assignments): 113 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005696/0.6156, allocations: 3.78 MB / 0.6269 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00612/0.6217, allocations: 3.146 MB / 0.63 GB, free: 12.01 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/0.6217, allocations: 0 / 0.63 GB, free: 12.01 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.6236, allocations: 0.9664 MB / 0.6309 GB, free: 11.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/0.626, allocations: 390.9 kB / 0.6313 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05022/0.6762, allocations: 28.82 MB / 0.6594 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003104/0.6793, allocations: 2.025 MB / 0.6614 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003119/0.6825, allocations: 1.268 MB / 0.6627 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002114/0.6846, allocations: 1.284 MB / 0.6639 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of SimCode: time 8.81e-07/0.6846, allocations: 0 / 0.6639 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1445/0.8291, allocations: 45.68 MB / 0.7085 GB, free: 8.824 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/15.19, allocations: 0 / 0.7085 GB, free: 8.824 MB / 0.545 GB " [Timeout remaining time 645] (rm -f PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab_fmu --startTime=0 --stopTime=4.5 --stepSize=0.0018 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_WheelBasedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.WheelBasedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.12830246798694] Failed to read output from testmodel.py, exit status != 0: 15.33014890132472 15.604727636 15.204885095 Calling exit ...