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.002009/0.002009, 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.00162/0.00162, allocations: 213.6 kB / 22.25 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.453/1.453, allocations: 230.6 MB / 256 MB, free: 7.789 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.04928/0.04928, allocations: 9.233 MB / 321.7 MB, free: 9.828 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.002117/0.002117, allocations: 65.94 kB / 447.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1088, allocations: 55.47 MB / 0.4913 GB, free: 6.984 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.009937/0.1187, allocations: 7.652 MB / 0.4988 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004937/0.1237, allocations: 2.53 MB / 0.5013 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005997/0.1243, allocations: 35.88 kB / 0.5013 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007811/0.1251, allocations: 381.4 kB / 0.5017 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002922/0.128, allocations: 1.436 MB / 0.5031 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003494/0.1283, allocations: 139.8 kB / 0.5032 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002701/0.131, allocations: 2.503 MB / 0.5057 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.1321, allocations: 0.7789 MB / 0.5064 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001129/0.1332, allocations: 0.9183 MB / 0.5073 GB, free: 6.539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001748/0.1349, allocations: 1.374 MB / 0.5087 GB, free: 5.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000363/0.1353, allocations: 232 kB / 0.5089 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.1367, allocations: 0.7684 MB / 0.5096 GB, free: 4.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.1378, allocations: 1.238 MB / 0.5108 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001226/0.1391, allocations: 1.087 MB / 0.5119 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2392/0.3782, allocations: 4.992 MB / 0.5168 GB, free: 12.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3782, allocations: 0 / 0.5168 GB, free: 12.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3782, allocations: 0.9062 kB / 0.5168 GB, free: 12.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001821/0.3784, allocations: 0 / 0.5168 GB, free: 12.4 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.01133/0.3897, allocations: 3.921 MB / 0.5206 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.3898, allocations: 12.58 kB / 0.5206 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008814/0.3907, allocations: 0.5342 MB / 0.5211 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006975/0.3976, allocations: 1.793 MB / 0.5229 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004306/0.402, allocations: 1.324 MB / 0.5242 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.4021, allocations: 148.2 kB / 0.5243 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008592/0.403, allocations: 204.2 kB / 0.5245 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01512/0.4181, allocations: 7.959 MB / 0.5323 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-05/0.4182, allocations: 31.67 kB / 0.5323 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/0.4185, allocations: 93.45 kB / 0.5324 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002994/0.4215, allocations: 1.846 MB / 0.5342 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01463/0.4361, allocations: 7.151 MB / 0.5412 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03655/0.4727, allocations: 22.69 MB / 0.5634 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005337/0.478, allocations: 1.846 MB / 0.5652 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/0.4794, allocations: 0.7795 MB / 0.5659 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007327/0.4868, allocations: 3.073 MB / 0.5689 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.4868, allocations: 47.56 kB / 0.569 GB, free: 13.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.647e-06/0.4868, allocations: 0 / 0.569 GB, free: 13.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01615/0.503, allocations: 6.96 MB / 0.5758 GB, free: 6.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.503, allocations: 64.72 kB / 0.5758 GB, free: 6.602 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004273/0.5073, allocations: 2.753 MB / 0.5785 GB, free: 3.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001974/0.5075, allocations: 49.7 kB / 0.5786 GB, free: 3.766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001834/0.5093, allocations: 2.168 MB / 0.5807 GB, free: 1.605 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006822/0.51, allocations: 0.5939 MB / 0.5813 GB, free: 1.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001131/0.5111, allocations: 0.7855 MB / 0.582 GB, free: 232 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.5114, allocations: 305.1 kB / 0.5823 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002382/0.5137, allocations: 1.308 MB / 0.5836 GB, free: 14.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004242/0.518, allocations: 3.435 MB / 0.587 GB, free: 10.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007098/0.5251, allocations: 5.091 MB / 0.5919 GB, free: 4.344 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.75e-05/0.5251, allocations: 24 kB / 0.5919 GB, free: 4.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.008718/0.5338, allocations: 4.812 MB / 0.5966 GB, free: 15.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.278e-05/0.5339, allocations: 40.94 kB / 0.5967 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001131/0.534, allocations: 72 kB / 0.5968 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005439/0.5346, allocations: 213 kB / 0.597 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003035/0.5376, allocations: 0.8968 MB / 0.5978 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002598/0.5402, allocations: 2.173 MB / 0.6 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/0.543, allocations: 211.8 kB / 0.6002 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004468/0.5434, allocations: 228 kB / 0.6004 GB, free: 11.83 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.002754/0.5462, allocations: 1.558 MB / 0.6019 GB, free: 10.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005163/0.5467, allocations: 234.5 kB / 0.6021 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00393/0.5506, allocations: 1.947 MB / 0.604 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/0.5507, allocations: 31.98 kB / 0.6041 GB, free: 8.039 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.5507, allocations: 0 / 0.6041 GB, free: 8.039 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.5507, allocations: 7.969 kB / 0.6041 GB, free: 8.031 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0116/0.5623, allocations: 5.143 MB / 0.6091 GB, free: 2.844 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.5624, allocations: 4.188 kB / 0.6091 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.5634, allocations: 239.7 kB / 0.6093 GB, free: 2.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000337/0.5637, allocations: 103.8 kB / 0.6094 GB, free: 2.504 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.5639, allocations: 28 kB / 0.6094 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002163/0.566, allocations: 1.898 MB / 0.6113 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.566, allocations: 480 / 0.6113 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005165/0.5712, allocations: 3.049 MB / 0.6143 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008122/0.572, allocations: 228.2 kB / 0.6145 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/0.5723, allocations: 24 kB / 0.6145 GB, free: 13.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008906/0.5732, allocations: 83.91 kB / 0.6146 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.5734, allocations: 84.77 kB / 0.6147 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.5735, allocations: 43.12 kB / 0.6147 GB, free: 12.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002971/0.5764, allocations: 1.695 MB / 0.6164 GB, free: 11.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5764, allocations: 4 kB / 0.6164 GB, free: 11.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003072/0.5795, allocations: 0.6522 MB / 0.617 GB, free: 10.56 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.005861/0.5854, allocations: 3.679 MB / 0.6206 GB, free: 6.832 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006094/0.5915, allocations: 3.017 MB / 0.6235 GB, free: 3.828 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.5915, allocations: 4.188 kB / 0.6236 GB, free: 3.828 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.5932, allocations: 0.9224 MB / 0.6245 GB, free: 2.895 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002679/0.5959, allocations: 385.9 kB / 0.6248 GB, free: 2.527 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05403/0.6499, allocations: 27.52 MB / 0.6517 GB, free: 4.305 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003931/0.6538, allocations: 2.003 MB / 0.6537 GB, free: 2.273 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003388/0.6572, allocations: 1.206 MB / 0.6548 GB, free: 1.066 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002423/0.6596, allocations: 1.29 MB / 0.6561 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of SimCode: time 1.172e-06/0.6596, allocations: 0 / 0.6561 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1057/0.7653, allocations: 46.94 MB / 0.7019 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.16/14.93, allocations: 0 / 0.7019 GB, free: 1.363 MB / 0.5294 GB " [Timeout remaining time 645] (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: 17.687728047836572] Failed to read output from testmodel.py, exit status != 0: 15.06985838804394 15.093076948 14.710421127 Calling exit ...