Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.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.001857/0.001857, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002384/0.002384, allocations: 210.7 kB / 23.73 MB, free: 4.387 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2323/0.2323, allocations: 44.93 MB / 358.8 MB, free: 6.066 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest 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.002059/0.002059, allocations: 71.91 kB / 0.493 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3749/0.377, allocations: 65.47 MB / 0.5569 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001889/0.3789, allocations: 0.4923 MB / 0.5574 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003026/0.3819, allocations: 1.732 MB / 0.5591 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.3819, allocations: 0 / 0.5591 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.3819, allocations: 0 / 0.5591 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.224e-06/0.3819, allocations: 0 / 0.5591 GB, free: 5.336 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:120:3-169:18:writable] Warning: Pure function 'ModelicaTest.Math.Polynomials' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.383, allocations: 255.2 kB / 0.5594 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.014e-05/0.3831, allocations: 0 / 0.5594 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.3831, allocations: 3.984 kB / 0.5594 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.789e-05/0.3832, allocations: 4 kB / 0.5594 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.989e-05/0.3832, allocations: 0 / 0.5594 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-06/0.3832, allocations: 0 / 0.5594 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008032/0.384, allocations: 451.1 kB / 0.5598 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.384, allocations: 0 / 0.5598 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.011e-05/0.384, allocations: 3.938 kB / 0.5598 GB, free: 4.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005012/0.3845, allocations: 309 kB / 0.5601 GB, free: 4.332 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3845, allocations: 4 kB / 0.5601 GB, free: 4.328 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3845, allocations: 0 / 0.5601 GB, free: 4.328 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3845, allocations: 0 / 0.5601 GB, free: 4.328 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004546/0.385, allocations: 311.7 kB / 0.5604 GB, free: 3.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.385, allocations: 8.031 kB / 0.5604 GB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.3851, allocations: 34.75 kB / 0.5604 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.511e-05/0.3851, allocations: 0.9375 kB / 0.5604 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.839e-05/0.3852, allocations: 102.5 kB / 0.5605 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.3852, allocations: 384 / 0.5605 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.3852, allocations: 384 / 0.5605 GB, free: 3.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.3853, allocations: 72.47 kB / 0.5606 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3853, allocations: 4 kB / 0.5606 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.3853, allocations: 3.938 kB / 0.5606 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.3853, allocations: 0 / 0.5606 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.248e-05/0.3854, allocations: 29.7 kB / 0.5606 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.3855, allocations: 112.8 kB / 0.5608 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.082e-05/0.3856, allocations: 44.31 kB / 0.5608 GB, free: 3.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.758e-05/0.3856, allocations: 38.55 kB / 0.5608 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.3856, allocations: 4.062 kB / 0.5608 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.048e-05/0.3857, allocations: 64.14 kB / 0.5609 GB, free: 3.348 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.3857, allocations: 0 / 0.5609 GB, free: 3.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.00023/0.3859, allocations: 114.8 kB / 0.561 GB, free: 3.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.386, allocations: 85.09 kB / 0.5611 GB, free: 3.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.708e-05/0.3861, allocations: 93.81 kB / 0.5612 GB, free: 3.008 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.3861, allocations: 29.7 kB / 0.5612 GB, free: 2.973 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.832e-05/0.3861, allocations: 80.14 kB / 0.5613 GB, free: 2.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.3861, allocations: 0 / 0.5613 GB, free: 2.891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.3862, allocations: 13.72 kB / 0.5613 GB, free: 2.871 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3863, allocations: 314.8 kB / 0.5616 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.546e-05/0.3864, allocations: 25.7 kB / 0.5616 GB, free: 2.523 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.277e-05/0.3864, allocations: 33.77 kB / 0.5617 GB, free: 2.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.562e-05/0.3864, allocations: 68.31 kB / 0.5617 GB, free: 2.402 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3864, allocations: 0 / 0.5617 GB, free: 2.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.838e-05/0.3865, allocations: 85.11 kB / 0.5618 GB, free: 2.301 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.776e-05/0.3866, allocations: 37.64 kB / 0.5618 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3866, allocations: 3.984 kB / 0.5618 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3866, allocations: 0 / 0.5618 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.5e-06/0.3866, allocations: 3.984 kB / 0.5618 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3866, allocations: 3.938 kB / 0.5618 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.3866, allocations: 4 kB / 0.5618 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.3866, allocations: 8.031 kB / 0.5619 GB, free: 2.234 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.877e-05/0.3867, allocations: 135.5 kB / 0.562 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.3867, allocations: 3.938 kB / 0.562 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.297e-05/0.3867, allocations: 3 kB / 0.562 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3868, allocations: 4 kB / 0.562 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3868, allocations: 3.938 kB / 0.562 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3868, allocations: 0 / 0.562 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.3869, allocations: 116.8 kB / 0.5621 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.3869, allocations: 3.938 kB / 0.5621 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3869, allocations: 0 / 0.5621 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3869, allocations: 11.94 kB / 0.5621 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3869, allocations: 0 / 0.5621 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3869, allocations: 0 / 0.5621 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.3869, allocations: 0 / 0.5621 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001317/0.387, allocations: 116.5 kB / 0.5622 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.448e-06/0.387, allocations: 7.938 kB / 0.5622 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.387, allocations: 4 kB / 0.5622 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.166e-06/0.387, allocations: 0 / 0.5622 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.379e-05/0.3871, allocations: 0 / 0.5622 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.3871, allocations: 0 / 0.5622 GB, free: 1.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.852e-05/0.3871, allocations: 75.28 kB / 0.5623 GB, free: 1.668 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3871, allocations: 4.031 kB / 0.5623 GB, free: 1.664 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.3874, allocations: 67.8 kB / 0.5624 GB, free: 1.598 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008406/0.3883, allocations: 0.7452 MB / 0.5631 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001687/0.3884, allocations: 118.8 kB / 0.5632 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3884, allocations: 0 / 0.5632 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.918e-05/0.3885, allocations: 85.05 kB / 0.5633 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.3886, allocations: 7.938 kB / 0.5633 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003975/0.389, allocations: 160.2 kB / 0.5635 GB, free: 376 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.97e-05/0.3891, allocations: 59.34 kB / 0.5635 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.043e-06/0.3891, allocations: 0 / 0.5635 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.917e-05/0.3891, allocations: 7.438 kB / 0.5635 GB, free: 288 kB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3891, allocations: 0 / 0.5635 GB, free: 288 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02991/0.419, allocations: 3.003 MB / 0.5665 GB, free: 13.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.56, allocations: 2.812 kB / 0.5665 GB, free: 13.41 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.577358162030578] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.667662995867431 11.683818925 11.296213452 Calling exit ...