Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.001617/0.001617, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001984/0.001984, allocations: 216.9 kB / 22.25 MB, free: 5.121 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.46/1.46, allocations: 230.6 MB / 256 MB, free: 7.961 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.08825/0.08825, allocations: 9.232 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.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.FreeBody,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_FreeBody",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.002076/0.002076, allocations: 61.16 kB / 447.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1106, allocations: 55.46 MB / 0.4914 GB, free: 7.484 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.00804/0.1187, allocations: 5.897 MB / 0.4972 GB, free: 1.562 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004912/0.1236, allocations: 2.106 MB / 0.4992 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001073/0.1247, allocations: 27.94 kB / 0.4992 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008483/0.1255, allocations: 274.4 kB / 0.4995 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002851/0.1284, allocations: 1.128 MB / 0.5006 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.1285, allocations: 51.88 kB / 0.5007 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002377/0.1309, allocations: 1.856 MB / 0.5025 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.1311, allocations: 70.92 kB / 0.5025 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.1321, allocations: 0.6498 MB / 0.5032 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001589/0.1337, allocations: 1.098 MB / 0.5042 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.134, allocations: 176 kB / 0.5044 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001304/0.1354, allocations: 0.78 MB / 0.5052 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00095/0.1363, allocations: 0.9541 MB / 0.5061 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.1375, allocations: 1.184 MB / 0.5073 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004643/0.1421, allocations: 4.054 MB / 0.5112 GB, free: 3.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1421, allocations: 0 / 0.5112 GB, free: 3.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1421, allocations: 0 / 0.5112 GB, free: 3.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.3e-05/0.1422, allocations: 0 / 0.5112 GB, free: 3.098 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: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.005164/0.1473, allocations: 2.565 MB / 0.5137 GB, free: 500 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.1474, allocations: 16.03 kB / 0.5137 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005822/0.148, allocations: 433.1 kB / 0.5142 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2078/0.3558, allocations: 1.683 MB / 0.5158 GB, free: 24.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002247/0.3581, allocations: 1.029 MB / 0.5168 GB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.288e-05/0.3581, allocations: 102.2 kB / 0.5169 GB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003394/0.3585, allocations: 138.6 kB / 0.517 GB, free: 24.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008522/0.367, allocations: 6.495 MB / 0.5234 GB, free: 22.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.125e-05/0.3671, allocations: 13.19 kB / 0.5234 GB, free: 22.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002094/0.3673, allocations: 66.56 kB / 0.5235 GB, free: 22.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002735/0.37, allocations: 1.622 MB / 0.525 GB, free: 22.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/0.3835, allocations: 6.041 MB / 0.5309 GB, free: 20.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02435/0.4078, allocations: 18.15 MB / 0.5487 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002231/0.41, allocations: 1.043 MB / 0.5497 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006224/0.4107, allocations: 0.4993 MB / 0.5502 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003472/0.4141, allocations: 1.757 MB / 0.5519 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.4142, allocations: 36.03 kB / 0.5519 GB, free: 4.508 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 3.907e-06/0.4142, allocations: 0 / 0.5519 GB, free: 4.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.002627/0.4168, allocations: 1.503 MB / 0.5534 GB, free: 3.004 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.4168, allocations: 63.78 kB / 0.5534 GB, free: 2.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002241/0.4191, allocations: 2.012 MB / 0.5554 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.179e-05/0.4191, allocations: 33.7 kB / 0.5554 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001011/0.4201, allocations: 1.717 MB / 0.5571 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003259/0.4204, allocations: 337.4 kB / 0.5574 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007771/0.4212, allocations: 0.564 MB / 0.558 GB, free: 14.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.4214, allocations: 365.9 kB / 0.5583 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.4229, allocations: 0.9188 MB / 0.5592 GB, free: 12.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002857/0.4258, allocations: 2.568 MB / 0.5617 GB, free: 9.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004561/0.4304, allocations: 3.741 MB / 0.5654 GB, free: 4.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-05/0.4304, allocations: 16 kB / 0.5654 GB, free: 4.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.00592/0.4363, allocations: 3.431 MB / 0.5688 GB, free: 1.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/0.4364, allocations: 28 kB / 0.5688 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.814e-05/0.4364, allocations: 60.75 kB / 0.5689 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.669e-05/0.4365, allocations: 77.69 kB / 0.5689 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/0.4384, allocations: 0.6119 MB / 0.5695 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001066/0.4385, allocations: 119.6 kB / 0.5696 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/0.4404, allocations: 425.3 kB / 0.57 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/0.4407, allocations: 176 kB / 0.5702 GB, free: 68 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (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 (334): * Single equations (assignments): 330 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00193/0.4426, allocations: 1.312 MB / 0.5715 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/0.4429, allocations: 159.7 kB / 0.5716 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001893/0.4448, allocations: 1.061 MB / 0.5727 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001007/0.4449, allocations: 23.92 kB / 0.5727 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.4449, allocations: 0 / 0.5727 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.4449, allocations: 3.984 kB / 0.5727 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006707/0.4516, allocations: 3.56 MB / 0.5762 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.4516, allocations: 0 / 0.5762 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005365/0.4521, allocations: 107.9 kB / 0.5763 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.4521, allocations: 4 kB / 0.5763 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.687e-05/0.4522, allocations: 8 kB / 0.5763 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/0.4522, allocations: 4 kB / 0.5763 GB, free: 9.738 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.4522, allocations: 8.547 kB / 0.5763 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.4548, allocations: 1.746 MB / 0.578 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004602/0.4553, allocations: 178.8 kB / 0.5782 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/0.4555, allocations: 15.98 kB / 0.5782 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005119/0.456, allocations: 27.95 kB / 0.5782 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.382e-05/0.4561, allocations: 44.31 kB / 0.5783 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.776e-05/0.4561, allocations: 27.98 kB / 0.5783 GB, free: 7.668 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002172/0.4583, allocations: 1.317 MB / 0.5796 GB, free: 6.355 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4583, allocations: 0 / 0.5796 GB, free: 6.355 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002373/0.4607, allocations: 0.6308 MB / 0.5802 GB, free: 5.723 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (55): * Single equations (assignments): 51 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003206/0.4639, allocations: 2.363 MB / 0.5825 GB, free: 3.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003577/0.4675, allocations: 1.938 MB / 0.5844 GB, free: 1.395 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4675, allocations: 0 / 0.5844 GB, free: 1.395 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000694/0.4682, allocations: 451.1 kB / 0.5848 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.4698, allocations: 283.7 kB / 0.5851 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03124/0.501, allocations: 20.07 MB / 0.6047 GB, free: 10.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002466/0.5035, allocations: 2.156 MB / 0.6068 GB, free: 8.309 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00205/0.5055, allocations: 0.8851 MB / 0.6077 GB, free: 7.418 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.5068, allocations: 0.9327 MB / 0.6086 GB, free: 6.484 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5068, allocations: 0 / 0.6086 GB, free: 6.484 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0791/0.5859, allocations: 36.01 MB / 0.6437 GB, free: 2.699 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.13/16.72, allocations: 4.062 kB / 0.6438 GB, free: 2.695 MB / 478.1 MB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.FreeBody_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_FreeBody.fmu > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.637154095998994] Failed to read output from testmodel.py, exit status != 0: 16.84973429599995 16.87237114 16.725154254 Calling exit ...