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.0016/0.0016, allocations: 107.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.001855/0.001855, allocations: 213.7 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.512/1.512, allocations: 230.6 MB / 252.8 MB, free: 8.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.08788/0.08788, allocations: 9.23 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.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.001949/0.001949, allocations: 67.91 kB / 442.5 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.106, allocations: 55.43 MB / 498 MB, free: 11 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.00812/0.1141, allocations: 5.881 MB / 0.492 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004224/0.1183, allocations: 2.083 MB / 0.4941 GB, free: 2.996 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008204/0.1192, allocations: 23.94 kB / 0.4941 GB, free: 2.973 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009543/0.1201, allocations: 278.4 kB / 0.4944 GB, free: 2.699 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003666/0.1238, allocations: 1.133 MB / 0.4955 GB, free: 1.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003385/0.1241, allocations: 39.89 kB / 0.4955 GB, free: 1.523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003107/0.1272, allocations: 1.857 MB / 0.4973 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.1276, allocations: 82.78 kB / 0.4974 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.1288, allocations: 0.6537 MB / 0.498 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001768/0.1306, allocations: 1.09 MB / 0.4991 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.1309, allocations: 184 kB / 0.4993 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001271/0.1322, allocations: 0.7684 MB / 0.5 GB, free: 12.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009184/0.1331, allocations: 0.9619 MB / 0.501 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001108/0.1342, allocations: 1.18 MB / 0.5021 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004501/0.1387, allocations: 4.054 MB / 0.5061 GB, free: 6.648 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1387, allocations: 0 / 0.5061 GB, free: 6.648 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1387, allocations: 0 / 0.5061 GB, free: 6.648 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.429e-05/0.1388, allocations: 4 kB / 0.5061 GB, free: 6.645 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.005457/0.1442, allocations: 2.636 MB / 0.5087 GB, free: 3.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1443, allocations: 8.031 kB / 0.5087 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005476/0.1448, allocations: 429.1 kB / 0.5091 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006834/0.1516, allocations: 1.696 MB / 0.5107 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.1539, allocations: 1.085 MB / 0.5118 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.154, allocations: 102.8 kB / 0.5119 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004822/0.1545, allocations: 128.2 kB / 0.512 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2321/0.3866, allocations: 6.503 MB / 0.5184 GB, free: 24.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.602e-05/0.3866, allocations: 11.91 kB / 0.5184 GB, free: 24.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/0.3868, allocations: 63.36 kB / 0.5184 GB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00286/0.3897, allocations: 1.623 MB / 0.52 GB, free: 23.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0111/0.4008, allocations: 6.046 MB / 0.5259 GB, free: 21.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02209/0.4229, allocations: 18.18 MB / 0.5437 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.425, allocations: 1.508 MB / 0.5451 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006412/0.4257, allocations: 0.4933 MB / 0.5456 GB, free: 8.523 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002775/0.4285, allocations: 2.141 MB / 0.5477 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.4285, allocations: 37.06 kB / 0.5478 GB, free: 6.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 2.424e-06/0.4285, allocations: 4 kB / 0.5478 GB, free: 6.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.002639/0.4311, allocations: 1.506 MB / 0.5492 GB, free: 5.676 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.4312, allocations: 55.84 kB / 0.5493 GB, free: 5.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/0.4333, allocations: 2.015 MB / 0.5513 GB, free: 3.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.4333, allocations: 33.7 kB / 0.5513 GB, free: 3.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000616/0.4339, allocations: 1.716 MB / 0.553 GB, free: 1.949 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.4341, allocations: 341.4 kB / 0.5533 GB, free: 1.621 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005562/0.4347, allocations: 0.5699 MB / 0.5538 GB, free: 1.047 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.923e-05/0.4347, allocations: 361.9 kB / 0.5542 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.436, allocations: 0.9197 MB / 0.5551 GB, free: 15.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003017/0.439, allocations: 2.576 MB / 0.5576 GB, free: 12.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004976/0.444, allocations: 3.73 MB / 0.5612 GB, free: 7.824 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.625e-05/0.444, allocations: 20 kB / 0.5613 GB, free: 7.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006672/0.4507, allocations: 3.418 MB / 0.5646 GB, free: 4.387 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.503e-05/0.4508, allocations: 31.94 kB / 0.5646 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001113/0.4509, allocations: 64.89 kB / 0.5647 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.864e-05/0.451, allocations: 76.11 kB / 0.5648 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/0.453, allocations: 0.6199 MB / 0.5654 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001391/0.4531, allocations: 115.6 kB / 0.5655 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002166/0.4553, allocations: 429.4 kB / 0.5659 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002884/0.4556, allocations: 168.7 kB / 0.5661 GB, free: 2.898 MB / 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.002134/0.4577, allocations: 1.309 MB / 0.5673 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003785/0.4581, allocations: 162.9 kB / 0.5675 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002104/0.4602, allocations: 1.059 MB / 0.5685 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/0.4603, allocations: 24.72 kB / 0.5685 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4603, allocations: 0 / 0.5685 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4603, allocations: 3.938 kB / 0.5685 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006994/0.4673, allocations: 3.588 MB / 0.5721 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4673, allocations: 0 / 0.5721 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005104/0.4678, allocations: 107.9 kB / 0.5722 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.417e-06/0.4678, allocations: 4 kB / 0.5722 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.051e-05/0.4679, allocations: 19.47 kB / 0.5722 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.338e-06/0.4679, allocations: 7.984 kB / 0.5722 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4679, allocations: 128 / 0.5722 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.4705, allocations: 1.747 MB / 0.5739 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004216/0.4709, allocations: 256.5 kB / 0.5741 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/0.4712, allocations: 15.2 kB / 0.5741 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005646/0.4717, allocations: 35.95 kB / 0.5742 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.134e-05/0.4718, allocations: 36.33 kB / 0.5742 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.909e-05/0.4719, allocations: 24 kB / 0.5742 GB, free: 10.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002106/0.474, allocations: 1.31 MB / 0.5755 GB, free: 9.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.474, allocations: 0 / 0.5755 GB, free: 9.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002266/0.4763, allocations: 0.6382 MB / 0.5761 GB, free: 8.453 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.003121/0.4794, allocations: 2.355 MB / 0.5784 GB, free: 6.055 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003444/0.4828, allocations: 1.943 MB / 0.5803 GB, free: 4.129 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4828, allocations: 0 / 0.5803 GB, free: 4.129 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006981/0.4835, allocations: 442.4 kB / 0.5808 GB, free: 3.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.485, allocations: 303.2 kB / 0.5811 GB, free: 3.406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03208/0.5171, allocations: 20.05 MB / 0.6006 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00295/0.52, allocations: 2.168 MB / 0.6028 GB, free: 11.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00208/0.5221, allocations: 0.8928 MB / 0.6036 GB, free: 10.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/0.5235, allocations: 0.921 MB / 0.6045 GB, free: 9.215 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5235, allocations: 0 / 0.6045 GB, free: 9.215 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07508/0.5986, allocations: 33.62 MB / 0.6374 GB, free: 7.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12, allocations: 12 kB / 0.6374 GB, free: 7.758 MB / 478.1 MB " [Timeout remaining time 648] (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: 14.803035041011753] Failed to read output from testmodel.py, exit status != 0: 12.094105458003469 12.123317151 11.979144502 Calling exit ...