Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.001753/0.001753, allocations: 108.6 kB / 16.45 MB, free: 6.453 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.002427/0.002427, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.534/1.534, 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.04777/0.04777, allocations: 9.226 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.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.InvertedCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab",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.001956/0.001956, allocations: 67.89 kB / 442.5 MB, free: 2.527 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1252, allocations: 55.44 MB / 498 MB, free: 11.01 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01095/0.1362, allocations: 8.674 MB / 0.4948 GB, free: 2.293 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006184/0.1424, allocations: 2.663 MB / 0.4974 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.1438, allocations: 39.81 kB / 0.4974 GB, free: 15.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.1448, allocations: 377.4 kB / 0.4978 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003687/0.1485, allocations: 1.432 MB / 0.4992 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.149, allocations: 139.8 kB / 0.4993 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003794/0.1528, allocations: 2.524 MB / 0.5018 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.1544, allocations: 0.7941 MB / 0.5025 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001905/0.1563, allocations: 0.9183 MB / 0.5034 GB, free: 9.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.159, allocations: 1.44 MB / 0.5048 GB, free: 7.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006656/0.1596, allocations: 232 kB / 0.5051 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.1616, allocations: 0.8893 MB / 0.5059 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.1631, allocations: 1.231 MB / 0.5071 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00199/0.1651, allocations: 1.549 MB / 0.5086 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2708/0.4359, allocations: 4.975 MB / 0.5135 GB, free: 11.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4359, allocations: 4.438 kB / 0.5135 GB, free: 11.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4359, allocations: 0 / 0.5135 GB, free: 11.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001726/0.4361, allocations: 0.5312 kB / 0.5135 GB, free: 11.47 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.01126/0.4474, allocations: 3.993 MB / 0.5174 GB, free: 9.988 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4474, allocations: 9.375 kB / 0.5174 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008751/0.4483, allocations: 0.5363 MB / 0.5179 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007319/0.4556, allocations: 1.791 MB / 0.5197 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003079/0.4587, allocations: 1.372 MB / 0.521 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.4588, allocations: 150.2 kB / 0.5212 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005775/0.4594, allocations: 199.4 kB / 0.5214 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01711/0.4765, allocations: 7.968 MB / 0.5291 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.523e-05/0.4766, allocations: 21.23 kB / 0.5292 GB, free: 8.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003394/0.477, allocations: 100.1 kB / 0.5293 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003005/0.48, allocations: 1.846 MB / 0.5311 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/0.4955, allocations: 7.163 MB / 0.5381 GB, free: 5.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03742/0.5329, allocations: 24.11 MB / 0.5616 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005778/0.5387, allocations: 2.298 MB / 0.5638 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.5402, allocations: 0.7773 MB / 0.5646 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007968/0.5482, allocations: 4.756 MB / 0.5692 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.5482, allocations: 43.78 kB / 0.5693 GB, free: 9.062 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.266e-06/0.5482, allocations: 1.969 kB / 0.5693 GB, free: 9.062 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01646/0.5647, allocations: 7.098 MB / 0.5762 GB, free: 1.934 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.967e-05/0.5648, allocations: 69.86 kB / 0.5763 GB, free: 1.855 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005796/0.5706, allocations: 2.631 MB / 0.5789 GB, free: 15.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004633/0.571, allocations: 49.7 kB / 0.5789 GB, free: 15.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002531/0.5736, allocations: 2.163 MB / 0.581 GB, free: 12.99 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008048/0.5744, allocations: 0.5943 MB / 0.5816 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.5756, allocations: 0.7856 MB / 0.5824 GB, free: 11.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.5758, allocations: 301.1 kB / 0.5827 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002658/0.5784, allocations: 1.313 MB / 0.5839 GB, free: 9.996 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004222/0.5827, allocations: 3.439 MB / 0.5873 GB, free: 5.539 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008625/0.5913, allocations: 5.09 MB / 0.5923 GB, free: 15.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.967e-05/0.5914, allocations: 25.75 kB / 0.5923 GB, free: 15.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01382/0.6052, allocations: 4.816 MB / 0.597 GB, free: 11.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.994e-05/0.6053, allocations: 39.98 kB / 0.597 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/0.6054, allocations: 77.97 kB / 0.5971 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007332/0.6061, allocations: 202.6 kB / 0.5973 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005499/0.6116, allocations: 0.9013 MB / 0.5982 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003964/0.6156, allocations: 2.331 MB / 0.6005 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005712/0.6213, allocations: 219.7 kB / 0.6007 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001055/0.6224, allocations: 232 kB / 0.6009 GB, free: 7.047 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 338 * 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 (478): * Single equations (assignments): 473 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004609/0.627, allocations: 1.555 MB / 0.6024 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006899/0.6277, allocations: 230.5 kB / 0.6026 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005781/0.6334, allocations: 1.947 MB / 0.6045 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000172/0.6336, allocations: 23.98 kB / 0.6045 GB, free: 3.266 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/0.6336, allocations: 5.25 kB / 0.6046 GB, free: 3.262 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.58e-05/0.6336, allocations: 8.625 kB / 0.6046 GB, free: 3.254 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01604/0.6497, allocations: 5.583 MB / 0.61 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.6497, allocations: 0 / 0.61 GB, free: 13.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/0.6513, allocations: 243.8 kB / 0.6102 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004647/0.6518, allocations: 99.5 kB / 0.6103 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.6519, allocations: 24 kB / 0.6104 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003002/0.6549, allocations: 2.069 MB / 0.6124 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.6549, allocations: 8 kB / 0.6124 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008075/0.663, allocations: 3.035 MB / 0.6154 GB, free: 7.926 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/0.6643, allocations: 307.6 kB / 0.6156 GB, free: 7.605 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004402/0.6648, allocations: 24 kB / 0.6157 GB, free: 7.582 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.6661, allocations: 83.75 kB / 0.6158 GB, free: 7.504 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/0.6664, allocations: 80.89 kB / 0.6158 GB, free: 7.426 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000166/0.6666, allocations: 43.98 kB / 0.6159 GB, free: 7.383 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004599/0.6712, allocations: 1.695 MB / 0.6175 GB, free: 5.672 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6712, allocations: 0 / 0.6175 GB, free: 5.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006165/0.6773, allocations: 0.6484 MB / 0.6182 GB, free: 5.023 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.v) * 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 (124): * Single equations (assignments): 119 * 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 {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009152/0.6865, allocations: 3.689 MB / 0.6218 GB, free: 1.293 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008578/0.6951, allocations: 3.014 MB / 0.6247 GB, free: 14.29 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.6951, allocations: 0 / 0.6247 GB, free: 14.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002498/0.6976, allocations: 0.9231 MB / 0.6256 GB, free: 13.35 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/0.7007, allocations: 401.1 kB / 0.626 GB, free: 12.97 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05073/0.7514, allocations: 27.43 MB / 0.6528 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003361/0.7548, allocations: 2.563 MB / 0.6553 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003068/0.7578, allocations: 1.205 MB / 0.6565 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/0.7603, allocations: 1.296 MB / 0.6577 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of SimCode: time 2.114e-06/0.7603, allocations: 0 / 0.6577 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/0.8607, allocations: 46.48 MB / 0.7031 GB, free: 11.51 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.03/16.89, allocations: 15.23 kB / 0.7031 GB, free: 11.5 MB / 0.545 GB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_InvertedCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.017257507992326] Failed to read output from testmodel.py, exit status != 0: 17.011579881000216 17.278324111 16.597668987 Calling exit ...