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.001604/0.001604, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001997/0.001997, allocations: 219 kB / 22.26 MB, free: 5.117 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.57/1.57, 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.04866/0.04866, allocations: 9.234 MB / 321.7 MB, free: 10.04 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.002338/0.002338, allocations: 71.83 kB / 447.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1519, allocations: 55.48 MB / 0.4914 GB, free: 7.465 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.01197/0.1639, allocations: 8.708 MB / 0.4999 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005882/0.1698, allocations: 2.671 MB / 0.5025 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009617/0.1707, allocations: 39.81 kB / 0.5026 GB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.1718, allocations: 373.5 kB / 0.5029 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003473/0.1752, allocations: 1.436 MB / 0.5043 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006232/0.1759, allocations: 147.7 kB / 0.5045 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003601/0.1795, allocations: 2.514 MB / 0.5069 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001418/0.1809, allocations: 0.7789 MB / 0.5077 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001452/0.1823, allocations: 0.9261 MB / 0.5086 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002396/0.1847, allocations: 1.428 MB / 0.51 GB, free: 4.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005753/0.1853, allocations: 239.9 kB / 0.5102 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.1876, allocations: 0.8854 MB / 0.5111 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001721/0.1893, allocations: 1.238 MB / 0.5123 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001953/0.1913, allocations: 1.553 MB / 0.5138 GB, free: 444 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3255/0.5168, allocations: 4.976 MB / 0.5187 GB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.192e-05/0.5168, allocations: 0.5156 kB / 0.5187 GB, free: 11.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.5168, allocations: 0 / 0.5187 GB, free: 11.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002162/0.517, allocations: 0 / 0.5187 GB, free: 11.9 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.0143/0.5313, allocations: 3.92 MB / 0.5225 GB, free: 10.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/0.5314, allocations: 11.22 kB / 0.5225 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001347/0.5327, allocations: 0.5353 MB / 0.523 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00839/0.5411, allocations: 1.791 MB / 0.5248 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004733/0.5459, allocations: 1.306 MB / 0.5261 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001881/0.546, allocations: 152.9 kB / 0.5262 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007228/0.5468, allocations: 198.3 kB / 0.5264 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01769/0.5645, allocations: 7.964 MB / 0.5342 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/0.5646, allocations: 30.41 kB / 0.5342 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003468/0.5649, allocations: 90.14 kB / 0.5343 GB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003594/0.5685, allocations: 1.85 MB / 0.5361 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01702/0.5856, allocations: 7.163 MB / 0.5431 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04583/0.6314, allocations: 24.04 MB / 0.5666 GB, free: 8 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005542/0.6369, allocations: 1.849 MB / 0.5684 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.6383, allocations: 0.7735 MB / 0.5691 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007718/0.646, allocations: 3.321 MB / 0.5724 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.567e-05/0.6461, allocations: 49.62 kB / 0.5724 GB, free: 10.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 4.087e-06/0.6461, allocations: 0 / 0.5724 GB, free: 10.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=154): time 0.01678/0.6629, allocations: 6.955 MB / 0.5792 GB, free: 3.086 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.6629, allocations: 68.66 kB / 0.5793 GB, free: 3.008 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004546/0.6675, allocations: 2.626 MB / 0.5818 GB, free: 360 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.6676, allocations: 45.7 kB / 0.5819 GB, free: 308 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/0.6694, allocations: 2.16 MB / 0.584 GB, free: 14.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006467/0.67, allocations: 0.6098 MB / 0.5846 GB, free: 13.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/0.6712, allocations: 0.7854 MB / 0.5853 GB, free: 12.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.6713, allocations: 301.1 kB / 0.5856 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/0.674, allocations: 1.304 MB / 0.5869 GB, free: 11.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00447/0.6785, allocations: 3.443 MB / 0.5903 GB, free: 6.699 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007546/0.686, allocations: 5.087 MB / 0.5952 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.163e-05/0.686, allocations: 24 kB / 0.5953 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of matching and sorting (n=512) (initialization): time 0.01005/0.6961, allocations: 4.81 MB / 0.6 GB, free: 12.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.088e-05/0.6962, allocations: 38.34 kB / 0.6 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.28e-05/0.6962, allocations: 76 kB / 0.6001 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004694/0.6967, allocations: 207.8 kB / 0.6003 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003254/0.7, allocations: 0.8978 MB / 0.6011 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002595/0.7026, allocations: 2.23 MB / 0.6033 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003031/0.7056, allocations: 216.8 kB / 0.6035 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004022/0.706, allocations: 238.2 kB / 0.6037 GB, free: 8.273 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.00351/0.7095, allocations: 1.55 MB / 0.6053 GB, free: 6.711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005414/0.71, allocations: 235.2 kB / 0.6055 GB, free: 6.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003869/0.7139, allocations: 1.946 MB / 0.6074 GB, free: 4.523 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001067/0.714, allocations: 23.98 kB / 0.6074 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.714, allocations: 4 kB / 0.6074 GB, free: 4.496 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/0.714, allocations: 7.969 kB / 0.6074 GB, free: 4.488 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.7248, allocations: 5.556 MB / 0.6128 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.7248, allocations: 4 kB / 0.6129 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.7258, allocations: 235.7 kB / 0.6131 GB, free: 14.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003197/0.7262, allocations: 107.5 kB / 0.6132 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.468e-05/0.7262, allocations: 24 kB / 0.6132 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.7283, allocations: 1.966 MB / 0.6151 GB, free: 12.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7283, allocations: 0 / 0.6151 GB, free: 12.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005308/0.7336, allocations: 3.039 MB / 0.6181 GB, free: 9.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007149/0.7344, allocations: 234.4 kB / 0.6183 GB, free: 9.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.7346, allocations: 24 kB / 0.6183 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009692/0.7356, allocations: 79.67 kB / 0.6184 GB, free: 8.992 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.7358, allocations: 84.84 kB / 0.6185 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.988e-05/0.7359, allocations: 43.98 kB / 0.6185 GB, free: 8.863 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002974/0.7389, allocations: 1.695 MB / 0.6202 GB, free: 7.152 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7389, allocations: 0 / 0.6202 GB, free: 7.152 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002973/0.7418, allocations: 0.6445 MB / 0.6208 GB, free: 6.508 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.005556/0.7474, allocations: 3.687 MB / 0.6244 GB, free: 2.777 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00639/0.7538, allocations: 3.017 MB / 0.6274 GB, free: 15.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.7538, allocations: 0 / 0.6274 GB, free: 15.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001665/0.7555, allocations: 0.9258 MB / 0.6283 GB, free: 14.84 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/0.7577, allocations: 393.9 kB / 0.6286 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04993/0.8076, allocations: 27.51 MB / 0.6555 GB, free: 268 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003366/0.811, allocations: 2.568 MB / 0.658 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003123/0.8141, allocations: 1.202 MB / 0.6592 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002058/0.8161, allocations: 1.288 MB / 0.6605 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of SimCode: time 1.162e-06/0.8161, allocations: 0 / 0.6605 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/0.9359, allocations: 49.7 MB / 0.709 GB, free: 9.746 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.5/19.43, allocations: 3.984 kB / 0.709 GB, free: 9.742 MB / 0.545 GB " [Timeout remaining time 640] (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: 22.831293505998474] Failed to read output from testmodel.py, exit status != 0: 19.578170395998313 19.88829541 19.367048227 Calling exit ...