Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001288/0.001288, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001433/0.001433, allocations: 213.8 kB / 24.54 MB, free: 4.016 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.427/1.427, allocations: 230.3 MB / 258 MB, free: 8.246 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2259/0.2259, allocations: 46.88 MB / 361.3 MB, free: 4.535 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 79.81 kB / 0.4966 GB, free: 8.125 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3346, allocations: 66.02 MB / 0.561 GB, free: 4.695 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001619/0.3362, allocations: 495.5 kB / 0.5615 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002683/0.3389, allocations: 1.816 MB / 0.5633 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.822e-05/0.3389, allocations: 0 / 0.5633 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.966e-05/0.3389, allocations: 0 / 0.5633 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.803e-06/0.3389, allocations: 4 kB / 0.5633 GB, free: 2.375 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001076/0.34, allocations: 251.2 kB / 0.5635 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.403e-05/0.34, allocations: 11.88 kB / 0.5635 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.08e-05/0.3401, allocations: 0 / 0.5635 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.31e-05/0.3401, allocations: 4 kB / 0.5635 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.637e-05/0.3401, allocations: 4 kB / 0.5635 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-06/0.3401, allocations: 4 kB / 0.5636 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008313/0.341, allocations: 0.499 MB / 0.564 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.774e-06/0.341, allocations: 0 / 0.564 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.096e-05/0.341, allocations: 0 / 0.564 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000512/0.3415, allocations: 325.2 kB / 0.5643 GB, free: 1.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3415, allocations: 0 / 0.5643 GB, free: 1.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3415, allocations: 0 / 0.5643 GB, free: 1.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.3415, allocations: 3.938 kB / 0.5644 GB, free: 1.285 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.0004766/0.342, allocations: 388.8 kB / 0.5647 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.342, allocations: 12.03 kB / 0.5647 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.724e-05/0.3421, allocations: 38.69 kB / 0.5648 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.3421, allocations: 0.9375 kB / 0.5648 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.3422, allocations: 160.4 kB / 0.5649 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.3422, allocations: 384 / 0.5649 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.3422, allocations: 384 / 0.5649 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.3423, allocations: 38.83 kB / 0.565 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3423, allocations: 0 / 0.565 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.3424, allocations: 3.984 kB / 0.565 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.3424, allocations: 4 kB / 0.565 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.3424, allocations: 0 / 0.565 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001532/0.3425, allocations: 149.7 kB / 0.5651 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.929e-05/0.3426, allocations: 18.52 kB / 0.5651 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.873e-05/0.3426, allocations: 8.844 kB / 0.5651 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.3426, allocations: 4.094 kB / 0.5651 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.507e-05/0.3427, allocations: 60.2 kB / 0.5652 GB, free: 240 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3427, allocations: 7.938 kB / 0.5652 GB, free: 232 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001808/0.3428, allocations: 63.41 kB / 0.5653 GB, free: 156 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.3429, allocations: 85.03 kB / 0.5654 GB, free: 52 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.752e-05/0.343, allocations: 93.81 kB / 0.5654 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.343, allocations: 25.7 kB / 0.5655 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.422e-05/0.343, allocations: 80.14 kB / 0.5655 GB, free: 15.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.343, allocations: 0 / 0.5655 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.3431, allocations: 13.72 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3432, allocations: 315 kB / 0.5659 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.3432, allocations: 0 / 0.5659 GB, free: 15.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.135e-05/0.3432, allocations: 8 kB / 0.5659 GB, free: 15.49 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.965e-05/0.3433, allocations: 60.27 kB / 0.5659 GB, free: 15.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3433, allocations: 0 / 0.5659 GB, free: 15.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.318e-05/0.3434, allocations: 59.39 kB / 0.566 GB, free: 15.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.3434, allocations: 37.64 kB / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3434, allocations: 3.938 kB / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.3434, allocations: 4.094 kB / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.3434, allocations: 0 / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.3434, allocations: 0 / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.747e-05/0.3434, allocations: 0 / 0.566 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.3435, allocations: 4 kB / 0.566 GB, free: 15.29 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.0001001/0.3436, allocations: 140.8 kB / 0.5662 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.3436, allocations: 3.938 kB / 0.5662 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.258e-05/0.3436, allocations: 3 kB / 0.5662 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3436, allocations: 7.938 kB / 0.5662 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3436, allocations: 4 kB / 0.5662 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3436, allocations: 0 / 0.5662 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.3437, allocations: 145.7 kB / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3437, allocations: 0 / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3437, allocations: 0 / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3437, allocations: 3.938 kB / 0.5663 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.3437, allocations: 8 kB / 0.5663 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3437, allocations: 0 / 0.5663 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3437, allocations: 0 / 0.5663 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.3438, allocations: 102.8 kB / 0.5664 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.3439, allocations: 81.05 kB / 0.5665 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.3439, allocations: 3.938 kB / 0.5665 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-06/0.3439, allocations: 0 / 0.5665 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.548e-05/0.3439, allocations: 0 / 0.5665 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.3439, allocations: 4 kB / 0.5665 GB, free: 14.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.491e-05/0.344, allocations: 75.28 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.344, allocations: 0 / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003438/0.3443, allocations: 67.8 kB / 0.5666 GB, free: 14.55 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.0008119/0.3451, allocations: 0.7154 MB / 0.5673 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.3452, allocations: 63.34 kB / 0.5674 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3452, allocations: 0 / 0.5674 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.808e-05/0.3453, allocations: 55.34 kB / 0.5675 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.3454, allocations: 7.984 kB / 0.5675 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003524/0.3457, allocations: 138.5 kB / 0.5676 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.346, allocations: 0.6728 MB / 0.5683 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.282e-06/0.346, allocations: 0 / 0.5683 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.471e-05/0.346, allocations: 11.56 kB / 0.5683 GB, free: 12.76 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.346, allocations: 0 / 0.5683 GB, free: 12.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.3707, allocations: 2.471 MB / 0.5707 GB, free: 10.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/8.003, allocations: 11.3 kB / 0.5707 GB, free: 10.35 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.817818236071616] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.070863007102162 8.086440249 7.741783104 Calling exit ...