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.00137/0.00137, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001662/0.001662, allocations: 214.9 kB / 22.24 MB, free: 5.262 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.6/1.6, 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.05086/0.05086, allocations: 9.239 MB / 321.7 MB, free: 9.938 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.002428/0.002428, allocations: 63.91 kB / 447.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1258, allocations: 55.46 MB / 0.4913 GB, free: 7.121 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.0114/0.1372, allocations: 7.35 MB / 0.4985 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006185/0.1434, allocations: 2.488 MB / 0.5009 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.1447, allocations: 39.81 kB / 0.501 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.146, allocations: 369.5 kB / 0.5013 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004286/0.1503, allocations: 1.44 MB / 0.5027 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006135/0.1509, allocations: 127.8 kB / 0.5029 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003865/0.1548, allocations: 2.485 MB / 0.5053 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001652/0.1564, allocations: 0.7453 MB / 0.506 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.1583, allocations: 0.9066 MB / 0.5069 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002743/0.1611, allocations: 1.354 MB / 0.5082 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008803/0.162, allocations: 228 kB / 0.5084 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002219/0.1642, allocations: 0.7684 MB / 0.5092 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.166, allocations: 1.219 MB / 0.5104 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002677/0.1687, allocations: 1.079 MB / 0.5114 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2625/0.4312, allocations: 4.945 MB / 0.5163 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4312, allocations: 4.719 kB / 0.5163 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4312, allocations: 0 / 0.5163 GB, free: 12.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001661/0.4313, allocations: 0 / 0.5163 GB, free: 12.39 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.01136/0.4427, allocations: 3.863 MB / 0.52 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.4428, allocations: 9.297 kB / 0.5201 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001229/0.444, allocations: 0.5341 MB / 0.5206 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01075/0.4547, allocations: 1.789 MB / 0.5223 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004448/0.4592, allocations: 1.3 MB / 0.5236 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002885/0.4595, allocations: 151.6 kB / 0.5237 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.4608, allocations: 192.5 kB / 0.5239 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02202/0.4829, allocations: 7.914 MB / 0.5316 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002533/0.4831, allocations: 20.39 kB / 0.5317 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001212/0.4843, allocations: 89.17 kB / 0.5318 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004585/0.4889, allocations: 1.844 MB / 0.5336 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02007/0.509, allocations: 7.116 MB / 0.5405 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03768/0.5467, allocations: 22.45 MB / 0.5624 GB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005202/0.5519, allocations: 1.846 MB / 0.5642 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.5532, allocations: 0.7657 MB / 0.565 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006642/0.5598, allocations: 2.927 MB / 0.5678 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.895e-05/0.5599, allocations: 48.38 kB / 0.5679 GB, free: 14.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.997e-06/0.5599, allocations: 3.844 kB / 0.5679 GB, free: 14.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=153): time 0.02045/0.5803, allocations: 6.875 MB / 0.5746 GB, free: 7.594 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.5804, allocations: 64.72 kB / 0.5747 GB, free: 7.516 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006376/0.5868, allocations: 2.728 MB / 0.5773 GB, free: 4.758 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/0.5871, allocations: 45.7 kB / 0.5774 GB, free: 4.707 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002405/0.5895, allocations: 2.137 MB / 0.5795 GB, free: 2.578 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/0.5905, allocations: 0.5991 MB / 0.58 GB, free: 1.988 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001643/0.5922, allocations: 0.7746 MB / 0.5808 GB, free: 1.207 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.5923, allocations: 313.1 kB / 0.5811 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003383/0.5957, allocations: 1.277 MB / 0.5823 GB, free: 15.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006002/0.6017, allocations: 3.378 MB / 0.5856 GB, free: 11.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008882/0.6106, allocations: 4.997 MB / 0.5905 GB, free: 5.547 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.794e-05/0.6107, allocations: 24 kB / 0.5905 GB, free: 5.523 MB / 430.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01091/0.6216, allocations: 4.823 MB / 0.5953 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.54e-05/0.6217, allocations: 41.55 kB / 0.5953 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001209/0.6218, allocations: 76.84 kB / 0.5954 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009917/0.6228, allocations: 335.6 kB / 0.5957 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003214/0.626, allocations: 0.85 MB / 0.5965 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005403/0.6314, allocations: 3.517 MB / 0.6 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002958/0.6344, allocations: 198 kB / 0.6001 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007545/0.6351, allocations: 236 kB / 0.6004 GB, free: 11.59 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.003234/0.6384, allocations: 1.545 MB / 0.6019 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005672/0.6389, allocations: 230.5 kB / 0.6021 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004184/0.6431, allocations: 2 MB / 0.604 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001207/0.6432, allocations: 27.98 kB / 0.6041 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.6432, allocations: 0 / 0.6041 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.6433, allocations: 7.969 kB / 0.6041 GB, free: 7.766 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.6565, allocations: 5.32 MB / 0.6093 GB, free: 2.379 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.6565, allocations: 4.047 kB / 0.6093 GB, free: 2.379 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009006/0.6574, allocations: 199.7 kB / 0.6095 GB, free: 2.184 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007678/0.6582, allocations: 241.5 kB / 0.6097 GB, free: 1.945 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.6583, allocations: 31.98 kB / 0.6097 GB, free: 1.914 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004385/0.6627, allocations: 2.827 MB / 0.6125 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/0.6627, allocations: 4 kB / 0.6125 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005797/0.6685, allocations: 3.093 MB / 0.6155 GB, free: 11.83 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009151/0.6694, allocations: 235.2 kB / 0.6157 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006121/0.67, allocations: 24 kB / 0.6158 GB, free: 11.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.6712, allocations: 59.92 kB / 0.6158 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.6714, allocations: 99.28 kB / 0.6159 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.6715, allocations: 48.5 kB / 0.616 GB, free: 11.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003679/0.6752, allocations: 1.675 MB / 0.6176 GB, free: 9.684 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6752, allocations: 4 kB / 0.6176 GB, free: 9.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003891/0.6791, allocations: 0.6681 MB / 0.6183 GB, free: 9.012 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.006172/0.6852, allocations: 3.734 MB / 0.6219 GB, free: 5.219 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006216/0.6915, allocations: 3.043 MB / 0.6249 GB, free: 2.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.6915, allocations: 0 / 0.6249 GB, free: 2.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.6933, allocations: 0.9683 MB / 0.6258 GB, free: 1.203 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/0.6961, allocations: 385.4 kB / 0.6262 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05466/0.7508, allocations: 27.47 MB / 0.653 GB, free: 2.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003907/0.7547, allocations: 1.995 MB / 0.655 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00323/0.7579, allocations: 1.182 MB / 0.6561 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002249/0.7601, allocations: 1.292 MB / 0.6574 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of SimCode: time 1.072e-06/0.7601, allocations: 0 / 0.6574 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1082/0.8684, allocations: 47.62 MB / 0.7039 GB, free: 15.02 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/15.02, allocations: 4 kB / 0.7039 GB, free: 15.02 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 & 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: 17.993916479870677] Failed to read output from testmodel.py, exit status != 0: 15.165483925957233 15.197170288 14.760429094 Calling exit ...