Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001873/0.001873, allocations: 109.4 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002401/0.002401, allocations: 221.3 kB / 23 MB, free: 5.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 230.2 MB / 256.2 MB, free: 8.539 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2318/0.2318, allocations: 46.88 MB / 359.4 MB, free: 4.898 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00244/0.00244, allocations: 83.86 kB / 0.4941 GB, free: 9.012 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3705, allocations: 65.99 MB / 0.5586 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001759/0.3723, allocations: 496.6 kB / 0.559 GB, free: 4.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002682/0.375, allocations: 1.82 MB / 0.5608 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.464e-05/0.375, allocations: 0 / 0.5608 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.375, allocations: 0 / 0.5608 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.811e-06/0.375, allocations: 0 / 0.5608 GB, free: 2.828 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0009612/0.376, allocations: 231.3 kB / 0.561 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.979e-05/0.376, allocations: 0 / 0.561 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.376, allocations: 3.938 kB / 0.561 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.679e-05/0.3761, allocations: 4 kB / 0.561 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.657e-05/0.3761, allocations: 0 / 0.561 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.662e-06/0.3761, allocations: 3.938 kB / 0.561 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006958/0.3768, allocations: 427.2 kB / 0.5614 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.3768, allocations: 7.984 kB / 0.5615 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.425e-05/0.3768, allocations: 4 kB / 0.5615 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004471/0.3773, allocations: 301.1 kB / 0.5617 GB, free: 1.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3773, allocations: 7.875 kB / 0.5618 GB, free: 1.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3773, allocations: 0 / 0.5618 GB, free: 1.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.98e-06/0.3773, allocations: 0 / 0.5618 GB, free: 1.859 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.0004534/0.3777, allocations: 391.2 kB / 0.5621 GB, free: 1.426 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.3778, allocations: 8.031 kB / 0.5621 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.427e-05/0.3778, allocations: 30.75 kB / 0.5622 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.554e-05/0.3778, allocations: 0.9375 kB / 0.5622 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.3779, allocations: 172.3 kB / 0.5623 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.378, allocations: 384 / 0.5623 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.291e-06/0.378, allocations: 384 / 0.5623 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.999e-05/0.378, allocations: 34.83 kB / 0.5624 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3781, allocations: 4 kB / 0.5624 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.022e-06/0.3781, allocations: 0 / 0.5624 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.3781, allocations: 0 / 0.5624 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.541e-05/0.3781, allocations: 0 / 0.5624 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.3782, allocations: 145.7 kB / 0.5625 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.368e-05/0.3783, allocations: 26.55 kB / 0.5625 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.842e-05/0.3783, allocations: 8.844 kB / 0.5625 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.793e-06/0.3783, allocations: 0 / 0.5625 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.59e-05/0.3784, allocations: 68.25 kB / 0.5626 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3784, allocations: 0 / 0.5626 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001735/0.3785, allocations: 67.34 kB / 0.5627 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/0.3786, allocations: 81.23 kB / 0.5627 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.599e-05/0.3787, allocations: 97.8 kB / 0.5628 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.3787, allocations: 25.7 kB / 0.5629 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.319e-05/0.3787, allocations: 84.08 kB / 0.5629 GB, free: 420 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.329e-05/0.3787, allocations: 0 / 0.5629 GB, free: 420 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.943e-05/0.3788, allocations: 13.72 kB / 0.563 GB, free: 400 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3789, allocations: 314.8 kB / 0.5633 GB, free: 76 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.597e-06/0.3789, allocations: 0 / 0.5633 GB, free: 76 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.294e-06/0.3789, allocations: 4 kB / 0.5633 GB, free: 72 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.301e-05/0.379, allocations: 60.27 kB / 0.5633 GB, free: 16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.379, allocations: 0 / 0.5633 GB, free: 16 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.557e-05/0.3791, allocations: 63.39 kB / 0.5634 GB, free: 15.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/0.3791, allocations: 33.64 kB / 0.5634 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3791, allocations: 4 kB / 0.5634 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3791, allocations: 0 / 0.5634 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.3791, allocations: 0 / 0.5634 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.748e-06/0.3792, allocations: 3.938 kB / 0.5634 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.3792, allocations: 8.094 kB / 0.5634 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.3792, allocations: 0 / 0.5634 GB, free: 15.87 MB / 414.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 0.0001085/0.3793, allocations: 143.5 kB / 0.5636 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.3793, allocations: 7.875 kB / 0.5636 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.009e-05/0.3793, allocations: 7.109 kB / 0.5636 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3793, allocations: 0 / 0.5636 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3793, allocations: 0 / 0.5636 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3793, allocations: 4 kB / 0.5636 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.3794, allocations: 141.7 kB / 0.5637 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3794, allocations: 7.984 kB / 0.5637 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3794, allocations: 0 / 0.5637 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.3794, allocations: 3.938 kB / 0.5637 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.3794, allocations: 0 / 0.5637 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3794, allocations: 4 kB / 0.5637 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3794, allocations: 0 / 0.5637 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.3796, allocations: 90.83 kB / 0.5638 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-05/0.3796, allocations: 85.05 kB / 0.5639 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.114e-05/0.3796, allocations: 4.031 kB / 0.5639 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-06/0.3796, allocations: 7.875 kB / 0.5639 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.001e-05/0.3796, allocations: 0 / 0.5639 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.3796, allocations: 0 / 0.5639 GB, free: 15.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.705e-05/0.3797, allocations: 79.28 kB / 0.564 GB, free: 15.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3797, allocations: 4 kB / 0.564 GB, free: 15.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.38, allocations: 63.8 kB / 0.564 GB, free: 15.12 MB / 414.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.0007846/0.3808, allocations: 0.7119 MB / 0.5647 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001061/0.3809, allocations: 63.34 kB / 0.5648 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3809, allocations: 8.031 kB / 0.5648 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.705e-05/0.3809, allocations: 55.41 kB / 0.5649 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.381, allocations: 4 kB / 0.5649 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003476/0.3814, allocations: 134.5 kB / 0.565 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.3817, allocations: 0.6729 MB / 0.5657 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.951e-06/0.3817, allocations: 3.938 kB / 0.5657 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.3817, allocations: 7.438 kB / 0.5657 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3817, allocations: 0 / 0.5657 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02388/0.4056, allocations: 2.455 MB / 0.5681 GB, free: 10.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.86/8.266, allocations: 11 kB / 0.5681 GB, free: 10.93 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.078507190017262] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.333500238979468 8.355268139 7.973375345 Calling exit ...