Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001375/0.001375, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001535/0.001535, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 46.93 MB / 360.9 MB, free: 4.277 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+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_1_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_TestPolynomials",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 67.89 kB / 0.4961 GB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3153, allocations: 66.04 MB / 0.5606 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001581/0.3169, allocations: 499.8 kB / 0.5611 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.3194, allocations: 1.809 MB / 0.5629 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.506e-05/0.3194, allocations: 0 / 0.5629 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.496e-05/0.3195, allocations: 3.938 kB / 0.5629 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.3195, allocations: 0 / 0.5629 GB, free: 2.152 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.0009416/0.3204, allocations: 263.1 kB / 0.5631 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.439e-05/0.3205, allocations: 4 kB / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.364e-05/0.3205, allocations: 0 / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.535e-05/0.3205, allocations: 3.984 kB / 0.5631 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.446e-05/0.3205, allocations: 0 / 0.5631 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.09e-06/0.3205, allocations: 0 / 0.5631 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008198/0.3214, allocations: 0.5029 MB / 0.5636 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.262e-06/0.3214, allocations: 0 / 0.5636 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.767e-05/0.3214, allocations: 3.984 kB / 0.5636 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004683/0.3218, allocations: 317 kB / 0.5639 GB, free: 1.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3218, allocations: 8 kB / 0.5639 GB, free: 1.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3218, allocations: 3.938 kB / 0.564 GB, free: 1.059 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.3219, allocations: 0 / 0.564 GB, free: 1.059 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.0003741/0.3222, allocations: 311.7 kB / 0.5642 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3223, allocations: 8.031 kB / 0.5643 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.006e-05/0.3223, allocations: 30.75 kB / 0.5643 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.412e-05/0.3223, allocations: 4.938 kB / 0.5643 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.309e-05/0.3224, allocations: 102.5 kB / 0.5644 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-06/0.3224, allocations: 384 / 0.5644 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.996e-06/0.3224, allocations: 4.375 kB / 0.5644 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.263e-05/0.3225, allocations: 38.83 kB / 0.5644 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3225, allocations: 0 / 0.5644 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.163e-06/0.3225, allocations: 0 / 0.5644 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3225, allocations: 0 / 0.5644 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.3225, allocations: 3.938 kB / 0.5644 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.3227, allocations: 120.8 kB / 0.5645 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.943e-05/0.3227, allocations: 14.58 kB / 0.5646 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.674e-05/0.3227, allocations: 16.95 kB / 0.5646 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.3227, allocations: 11.91 kB / 0.5646 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.682e-05/0.3228, allocations: 60.2 kB / 0.5646 GB, free: 208 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.253e-06/0.3228, allocations: 0 / 0.5646 GB, free: 208 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001597/0.3229, allocations: 67.34 kB / 0.5647 GB, free: 128 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.323, allocations: 77.11 kB / 0.5648 GB, free: 32 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.048e-05/0.3231, allocations: 93.81 kB / 0.5649 GB, free: 15.93 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.3231, allocations: 29.83 kB / 0.5649 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.076e-05/0.3231, allocations: 84.12 kB / 0.565 GB, free: 15.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.55e-05/0.3231, allocations: 4 kB / 0.565 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.3232, allocations: 13.72 kB / 0.565 GB, free: 15.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3233, allocations: 314.8 kB / 0.5653 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.39e-05/0.3233, allocations: 8 kB / 0.5653 GB, free: 15.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.613e-06/0.3233, allocations: 0 / 0.5653 GB, free: 15.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.945e-05/0.3234, allocations: 60.33 kB / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3234, allocations: 4 kB / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.399e-05/0.3235, allocations: 63.33 kB / 0.5654 GB, free: 15.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.3235, allocations: 37.64 kB / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.3235, allocations: 0 / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.3235, allocations: 0 / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.3235, allocations: 0 / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.3235, allocations: 0 / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.379e-05/0.3235, allocations: 0 / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.3235, allocations: 4 kB / 0.5655 GB, free: 15.26 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.0001004/0.3236, allocations: 143.6 kB / 0.5656 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.148e-05/0.3237, allocations: 7.938 kB / 0.5656 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.657e-06/0.3237, allocations: 3 kB / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.91e-07/0.3237, allocations: 0 / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3237, allocations: 0 / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.3237, allocations: 0 / 0.5656 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.421e-05/0.3238, allocations: 112.8 kB / 0.5657 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3238, allocations: 4 kB / 0.5657 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3238, allocations: 0 / 0.5657 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3238, allocations: 7.922 kB / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.2e-06/0.3238, allocations: 4 kB / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3238, allocations: 0 / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3238, allocations: 0 / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.3239, allocations: 94.72 kB / 0.5658 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.083e-06/0.3239, allocations: 7.922 kB / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.718e-06/0.3239, allocations: 0 / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.026e-05/0.3239, allocations: 4 kB / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.385e-05/0.3239, allocations: 4.031 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.3239, allocations: 4 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.304e-05/0.324, allocations: 75.28 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.324, allocations: 0 / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002948/0.3243, allocations: 63.8 kB / 0.566 GB, free: 14.65 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.0007279/0.325, allocations: 0.7136 MB / 0.5667 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.211e-05/0.3251, allocations: 63.33 kB / 0.5667 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3251, allocations: 0 / 0.5667 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.889e-05/0.3251, allocations: 55.41 kB / 0.5668 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.3252, allocations: 10.47 kB / 0.5668 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003178/0.3256, allocations: 134.5 kB / 0.5669 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.3259, allocations: 0.6729 MB / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.929e-06/0.3259, allocations: 4 kB / 0.5676 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.278e-05/0.3259, allocations: 7.438 kB / 0.5676 GB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3259, allocations: 0 / 0.5676 GB, free: 12.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.3549, allocations: 2.589 MB / 0.5701 GB, free: 10.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.36, allocations: 10.27 kB / 0.5701 GB, free: 10.41 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.TestPolynomials.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.13575286604464] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.466593984980136 11.483290332 11.158158891 Calling exit ...