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.001383/0.001383, 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.001637/0.001637, allocations: 209.1 kB / 22.24 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.506/1.506, 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.08362/0.08362, allocations: 9.246 MB / 321.7 MB, free: 9.844 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.002139/0.002139, allocations: 71.89 kB / 447.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1186, allocations: 55.47 MB / 0.4913 GB, free: 7.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.007952/0.1266, allocations: 5.214 MB / 0.4964 GB, free: 1.812 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003958/0.1305, allocations: 1.978 MB / 0.4984 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004403/0.131, allocations: 23.94 kB / 0.4984 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006162/0.1316, allocations: 274.3 kB / 0.4986 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002391/0.134, allocations: 1.137 MB / 0.4998 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001476/0.1341, allocations: 39.97 kB / 0.4998 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002199/0.1363, allocations: 1.865 MB / 0.5016 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.1365, allocations: 62.92 kB / 0.5017 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007687/0.1373, allocations: 0.6498 MB / 0.5023 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001358/0.1386, allocations: 1.071 MB / 0.5034 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002834/0.1389, allocations: 176 kB / 0.5035 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.1404, allocations: 0.663 MB / 0.5042 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.1415, allocations: 0.9542 MB / 0.5051 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.1426, allocations: 0.811 MB / 0.5059 GB, free: 8.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005538/0.1482, allocations: 4.051 MB / 0.5099 GB, free: 4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1482, allocations: 8 kB / 0.5099 GB, free: 3.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1482, allocations: 0 / 0.5099 GB, free: 3.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.537e-05/0.1483, allocations: 0 / 0.5099 GB, free: 3.992 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.005546/0.1538, allocations: 2.557 MB / 0.5124 GB, free: 1.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.1539, allocations: 8.031 kB / 0.5124 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005276/0.1544, allocations: 437.1 kB / 0.5128 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2139/0.3683, allocations: 1.691 MB / 0.5144 GB, free: 24.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.3709, allocations: 1.037 MB / 0.5154 GB, free: 23.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.17e-05/0.371, allocations: 99.47 kB / 0.5155 GB, free: 23.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003599/0.3714, allocations: 130.8 kB / 0.5157 GB, free: 23.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009111/0.3805, allocations: 6.494 MB / 0.522 GB, free: 22.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.786e-05/0.3805, allocations: 21.69 kB / 0.522 GB, free: 22.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/0.3808, allocations: 65.19 kB / 0.5221 GB, free: 22.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002774/0.3835, allocations: 1.626 MB / 0.5237 GB, free: 22.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.3955, allocations: 6.035 MB / 0.5296 GB, free: 20.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0269/0.4224, allocations: 17.01 MB / 0.5462 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/0.4249, allocations: 1.04 MB / 0.5472 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007331/0.4256, allocations: 0.4999 MB / 0.5477 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003356/0.429, allocations: 1.571 MB / 0.5492 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.429, allocations: 39 kB / 0.5493 GB, free: 6.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 3.046e-06/0.429, allocations: 3.312 kB / 0.5493 GB, free: 6.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.002801/0.4318, allocations: 1.503 MB / 0.5507 GB, free: 4.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.4319, allocations: 59.84 kB / 0.5508 GB, free: 4.914 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00266/0.4345, allocations: 2.12 MB / 0.5529 GB, free: 2.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.988e-05/0.4346, allocations: 33.7 kB / 0.5529 GB, free: 2.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007824/0.4353, allocations: 1.709 MB / 0.5546 GB, free: 1.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000242/0.4356, allocations: 347.5 kB / 0.5549 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006395/0.4362, allocations: 0.5679 MB / 0.5554 GB, free: 108 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.4364, allocations: 365.9 kB / 0.5558 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/0.4381, allocations: 0.9207 MB / 0.5567 GB, free: 14.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0031/0.4412, allocations: 2.569 MB / 0.5592 GB, free: 11.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004791/0.446, allocations: 3.734 MB / 0.5628 GB, free: 6.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.286e-05/0.4461, allocations: 20 kB / 0.5629 GB, free: 6.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006524/0.4526, allocations: 3.426 MB / 0.5662 GB, free: 3.445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.768e-05/0.4527, allocations: 31.98 kB / 0.5662 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000113/0.4528, allocations: 60 kB / 0.5663 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001117/0.4529, allocations: 76.75 kB / 0.5664 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/0.4548, allocations: 0.6121 MB / 0.567 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001328/0.455, allocations: 119.5 kB / 0.5671 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/0.4573, allocations: 427.9 kB / 0.5675 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002882/0.4576, allocations: 168.5 kB / 0.5677 GB, free: 1.969 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.00206/0.4597, allocations: 1.32 MB / 0.5689 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003296/0.46, allocations: 158.9 kB / 0.5691 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.4621, allocations: 1.055 MB / 0.5701 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.957e-05/0.4621, allocations: 20.97 kB / 0.5701 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.4622, allocations: 3.938 kB / 0.5701 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.4622, allocations: 6.609 kB / 0.5702 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007208/0.4694, allocations: 3.4 MB / 0.5735 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.4694, allocations: 128 / 0.5735 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.4699, allocations: 111.9 kB / 0.5736 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.397e-06/0.4699, allocations: 4 kB / 0.5736 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.497e-05/0.47, allocations: 16 kB / 0.5736 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.47, allocations: 7.938 kB / 0.5736 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.47, allocations: 0 / 0.5736 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002769/0.4727, allocations: 1.744 MB / 0.5753 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004895/0.4732, allocations: 182.8 kB / 0.5755 GB, free: 9.824 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000266/0.4735, allocations: 12 kB / 0.5755 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.4741, allocations: 35.95 kB / 0.5755 GB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.082e-05/0.4742, allocations: 37.44 kB / 0.5756 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.288e-05/0.4742, allocations: 27.98 kB / 0.5756 GB, free: 9.715 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002378/0.4766, allocations: 1.31 MB / 0.5769 GB, free: 8.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4766, allocations: 0 / 0.5769 GB, free: 8.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002548/0.4792, allocations: 0.6308 MB / 0.5775 GB, free: 7.777 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.003465/0.4826, allocations: 2.359 MB / 0.5798 GB, free: 5.379 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004379/0.487, allocations: 1.937 MB / 0.5817 GB, free: 3.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.487, allocations: 4.125 kB / 0.5817 GB, free: 3.453 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007165/0.4877, allocations: 442.4 kB / 0.5821 GB, free: 3.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/0.4897, allocations: 302 kB / 0.5824 GB, free: 2.738 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0368/0.5265, allocations: 20.05 MB / 0.602 GB, free: 12.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003155/0.5297, allocations: 1.584 MB / 0.6035 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0023/0.532, allocations: 0.8922 MB / 0.6044 GB, free: 10.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/0.5336, allocations: 0.9366 MB / 0.6053 GB, free: 9.125 MB / 446.1 MB Notification: Performance of SimCode: time 2.334e-06/0.5336, allocations: 0 / 0.6053 GB, free: 9.125 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09196/0.6255, allocations: 34.16 MB / 0.6387 GB, free: 7.371 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/13.18, allocations: 0 / 0.6387 GB, free: 7.371 MB / 478.1 MB " [Timeout remaining time 647] (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: 15.981745122931898] Failed to read output from testmodel.py, exit status != 0: 13.314096427056938 13.337327337 13.184742465 Calling exit ...