Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.Pendulum.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.001538/0.001538, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00163/0.00163, allocations: 216.5 kB / 22.25 MB, free: 5.078 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.527/1.527, allocations: 230.6 MB / 256 MB, free: 8.035 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.05364/0.05364, allocations: 9.233 MB / 321.7 MB, free: 10.1 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.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.Pendulum,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_Pendulum",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.002133/0.002133, allocations: 75.89 kB / 447.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1103, allocations: 55.47 MB / 0.4914 GB, free: 7.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.Pendulum): time 0.01016/0.1204, allocations: 7.073 MB / 0.4983 GB, free: 464 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005418/0.1258, allocations: 2.414 MB / 0.5007 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.1269, allocations: 35.88 kB / 0.5007 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000801/0.1277, allocations: 318 kB / 0.501 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00357/0.1312, allocations: 1.3 MB / 0.5023 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003528/0.1316, allocations: 79.89 kB / 0.5024 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00359/0.1352, allocations: 2.148 MB / 0.5045 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001208/0.1364, allocations: 0.5868 MB / 0.505 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001313/0.1377, allocations: 0.7743 MB / 0.5058 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002011/0.1397, allocations: 1.234 MB / 0.507 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004773/0.1402, allocations: 204 kB / 0.5072 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00193/0.1421, allocations: 0.8464 MB / 0.508 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001243/0.1433, allocations: 1.075 MB / 0.5091 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001569/0.1449, allocations: 1.344 MB / 0.5104 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2163/0.3612, allocations: 4.473 MB / 0.5147 GB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3612, allocations: 0 / 0.5147 GB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3612, allocations: 1.812 kB / 0.5147 GB, free: 12.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001368/0.3614, allocations: 3 kB / 0.5147 GB, free: 12.16 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: 1017 * Number of variables: 1017 Notification: Performance of Generate backend data structure: time 0.007358/0.3687, allocations: 3.371 MB / 0.518 GB, free: 10.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.3688, allocations: 9.906 kB / 0.518 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005916/0.3694, allocations: 487.1 kB / 0.5185 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006549/0.3759, allocations: 1.724 MB / 0.5202 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.3785, allocations: 1.138 MB / 0.5213 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.384e-05/0.3786, allocations: 124.3 kB / 0.5214 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003984/0.379, allocations: 157.5 kB / 0.5216 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/0.3899, allocations: 7.209 MB / 0.5286 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.007e-05/0.39, allocations: 14.94 kB / 0.5286 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000285/0.3902, allocations: 78.8 kB / 0.5287 GB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003298/0.3935, allocations: 1.739 MB / 0.5304 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.407, allocations: 6.585 MB / 0.5368 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03214/0.4391, allocations: 21.11 MB / 0.5574 GB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004161/0.4433, allocations: 1.515 MB / 0.5589 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/0.4444, allocations: 0.6284 MB / 0.5595 GB, free: 6.078 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00501/0.4494, allocations: 2.283 MB / 0.5618 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.4494, allocations: 47.14 kB / 0.5618 GB, free: 3.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=106): time 3.697e-06/0.4494, allocations: 0.6562 kB / 0.5618 GB, free: 3.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.01208/0.4615, allocations: 5.428 MB / 0.5671 GB, free: 14.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.4615, allocations: 60.41 kB / 0.5672 GB, free: 14.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003383/0.4649, allocations: 2.272 MB / 0.5694 GB, free: 11.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.937e-05/0.465, allocations: 41.7 kB / 0.5694 GB, free: 11.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/0.4666, allocations: 1.909 MB / 0.5713 GB, free: 9.949 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005268/0.4671, allocations: 487.2 kB / 0.5718 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001002/0.4681, allocations: 0.6655 MB / 0.5724 GB, free: 8.809 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4682, allocations: 307.3 kB / 0.5727 GB, free: 8.508 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.4702, allocations: 1.096 MB / 0.5738 GB, free: 7.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003368/0.4736, allocations: 2.962 MB / 0.5767 GB, free: 3.559 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005954/0.4796, allocations: 4.365 MB / 0.5809 GB, free: 14.55 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.003e-05/0.4796, allocations: 16 kB / 0.5809 GB, free: 14.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=430) (initialization): time 0.00795/0.4875, allocations: 4.152 MB / 0.585 GB, free: 10.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.224e-05/0.4876, allocations: 36.91 kB / 0.585 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.357e-05/0.4877, allocations: 69.62 kB / 0.5851 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006286/0.4883, allocations: 212.7 kB / 0.5853 GB, free: 10.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002458/0.4907, allocations: 0.7213 MB / 0.586 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/0.4941, allocations: 2.596 MB / 0.5885 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/0.4961, allocations: 164 kB / 0.5887 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004405/0.4966, allocations: 205.5 kB / 0.5889 GB, free: 6.562 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 9 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (395): * Single equations (assignments): 390 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002476/0.4991, allocations: 1.421 MB / 0.5903 GB, free: 5.133 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/0.4994, allocations: 199.2 kB / 0.5905 GB, free: 4.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003279/0.5027, allocations: 1.622 MB / 0.5921 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/0.5028, allocations: 21.02 kB / 0.5921 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5028, allocations: 4 kB / 0.5921 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.5028, allocations: 3.984 kB / 0.5921 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009676/0.5125, allocations: 4.83 MB / 0.5968 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.5125, allocations: 3.938 kB / 0.5968 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007926/0.5133, allocations: 160.1 kB / 0.597 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003552/0.5136, allocations: 121.8 kB / 0.5971 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.532e-05/0.5137, allocations: 20 kB / 0.5971 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002557/0.5163, allocations: 2.064 MB / 0.5991 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.5163, allocations: 15 kB / 0.5991 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004144/0.5204, allocations: 2.554 MB / 0.6016 GB, free: 9.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.5209, allocations: 199.4 kB / 0.6018 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002392/0.5212, allocations: 23.94 kB / 0.6018 GB, free: 9.051 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007812/0.522, allocations: 63.03 kB / 0.6019 GB, free: 8.992 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.5221, allocations: 60.89 kB / 0.6019 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.921e-05/0.5222, allocations: 39.98 kB / 0.602 GB, free: 8.895 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002382/0.5245, allocations: 1.468 MB / 0.6034 GB, free: 7.402 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5245, allocations: 0 / 0.6034 GB, free: 7.402 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002543/0.5271, allocations: 0.5585 MB / 0.604 GB, free: 6.844 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute.phi,revolute.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 (88): * Single equations (assignments): 83 * 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,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004669/0.5318, allocations: 3.197 MB / 0.6071 GB, free: 3.586 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004753/0.5365, allocations: 2.556 MB / 0.6096 GB, free: 1.027 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/0.5365, allocations: 0 / 0.6096 GB, free: 1.027 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.5379, allocations: 0.779 MB / 0.6103 GB, free: 240 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/0.5397, allocations: 346 kB / 0.6107 GB, free: 15.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03961/0.5793, allocations: 23.71 MB / 0.6338 GB, free: 5.758 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/0.5823, allocations: 2.352 MB / 0.6361 GB, free: 3.383 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002469/0.5848, allocations: 1.034 MB / 0.6371 GB, free: 2.352 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001742/0.5865, allocations: 1.101 MB / 0.6382 GB, free: 1.25 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5865, allocations: 0 / 0.6382 GB, free: 1.25 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/0.687, allocations: 42.42 MB / 0.6796 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/17.29, allocations: 7.344 kB / 0.6796 GB, free: 7.078 MB / 0.5137 GB " [Timeout remaining time 643] (rm -f PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.Pendulum.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.Pendulum_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_Pendulum.fmu > PlanarMechanics_PlanarMechanics.Examples.Pendulum.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.083577350997075] Failed to read output from testmodel.py, exit status != 0: 17.432809713001916 17.451206224 17.086260695 Calling exit ...