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.001889/0.001889, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002168/0.002168, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.517/1.517, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.2246/0.2246, allocations: 44.91 MB / 359.6 MB, free: 6.305 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestPolynomials,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials",fmuType="cs",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.002052/0.002052, allocations: 63.91 kB / 0.4938 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3451, allocations: 65.47 MB / 0.5578 GB, free: 7.414 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001698/0.3468, allocations: 0.4885 MB / 0.5582 GB, free: 7.043 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002773/0.3496, allocations: 1.816 MB / 0.56 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.828e-05/0.3496, allocations: 3.938 kB / 0.56 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.3496, allocations: 3.938 kB / 0.56 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.3496, allocations: 0 / 0.56 GB, free: 5.316 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.001061/0.3507, allocations: 259.3 kB / 0.5603 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.22e-05/0.3507, allocations: 7.938 kB / 0.5603 GB, free: 5.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.344e-05/0.3508, allocations: 0 / 0.5603 GB, free: 5.055 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.644e-05/0.3508, allocations: 3.984 kB / 0.5603 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.548e-05/0.3508, allocations: 0 / 0.5603 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-06/0.3508, allocations: 0 / 0.5603 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008238/0.3516, allocations: 0.499 MB / 0.5608 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.793e-06/0.3516, allocations: 0 / 0.5608 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.498e-05/0.3517, allocations: 11.98 kB / 0.5608 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004749/0.3521, allocations: 313 kB / 0.5611 GB, free: 4.234 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3521, allocations: 7.984 kB / 0.5611 GB, free: 4.227 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3521, allocations: 0 / 0.5611 GB, free: 4.227 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.3521, allocations: 4 kB / 0.5611 GB, free: 4.223 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.0003982/0.3525, allocations: 307.7 kB / 0.5614 GB, free: 3.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3526, allocations: 8.031 kB / 0.5614 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.864e-05/0.3526, allocations: 192 / 0.5614 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.94e-05/0.3526, allocations: 30.75 kB / 0.5614 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.006e-05/0.3527, allocations: 4.938 kB / 0.5614 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.712e-05/0.3527, allocations: 107.5 kB / 0.5615 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.3528, allocations: 8.375 kB / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.294e-06/0.3528, allocations: 384 / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.091e-05/0.3529, allocations: 37.58 kB / 0.5616 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.3529, allocations: 0 / 0.5616 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-06/0.3529, allocations: 0 / 0.5616 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3529, allocations: 0 / 0.5616 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.676e-05/0.3529, allocations: 0 / 0.5616 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001371/0.353, allocations: 116.8 kB / 0.5617 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.283e-05/0.3531, allocations: 22.56 kB / 0.5617 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.035e-05/0.3531, allocations: 12.95 kB / 0.5617 GB, free: 3.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.3531, allocations: 3.938 kB / 0.5617 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.297e-05/0.3532, allocations: 64.14 kB / 0.5618 GB, free: 3.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.332e-06/0.3532, allocations: 0 / 0.5618 GB, free: 3.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001742/0.3533, allocations: 59.41 kB / 0.5618 GB, free: 3.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.3534, allocations: 81.09 kB / 0.5619 GB, free: 3.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.558e-05/0.3535, allocations: 97.94 kB / 0.562 GB, free: 3.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3535, allocations: 25.7 kB / 0.562 GB, free: 3.066 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.3535, allocations: 84.14 kB / 0.5621 GB, free: 2.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.3535, allocations: 7.938 kB / 0.5621 GB, free: 2.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.3536, allocations: 13.72 kB / 0.5621 GB, free: 2.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3537, allocations: 310.8 kB / 0.5624 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.137e-05/0.3537, allocations: 4 kB / 0.5624 GB, free: 2.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.863e-06/0.3537, allocations: 3.938 kB / 0.5624 GB, free: 2.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.507e-05/0.3538, allocations: 64.33 kB / 0.5625 GB, free: 2.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3538, allocations: 0 / 0.5625 GB, free: 2.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.786e-05/0.3539, allocations: 67.33 kB / 0.5626 GB, free: 2.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.3539, allocations: 33.7 kB / 0.5626 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.3539, allocations: 0 / 0.5626 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.3539, allocations: 0 / 0.5626 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3539, allocations: 0 / 0.5626 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3539, allocations: 0 / 0.5626 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.3539, allocations: 4 kB / 0.5626 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.3539, allocations: 4.031 kB / 0.5626 GB, free: 2.43 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.626e-05/0.354, allocations: 135.5 kB / 0.5627 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.376e-05/0.354, allocations: 7.938 kB / 0.5627 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.388e-05/0.3541, allocations: 6.984 kB / 0.5628 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3541, allocations: 0 / 0.5628 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3541, allocations: 3.938 kB / 0.5628 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3541, allocations: 0 / 0.5628 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.3542, allocations: 120.8 kB / 0.5629 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.3542, allocations: 4 kB / 0.5629 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.298e-06/0.3542, allocations: 11.94 kB / 0.5629 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-06/0.3542, allocations: 0 / 0.5629 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.3542, allocations: 0 / 0.5629 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.3542, allocations: 0 / 0.5629 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3542, allocations: 0 / 0.5629 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.3543, allocations: 90.83 kB / 0.563 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.933e-06/0.3543, allocations: 7.875 kB / 0.563 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.3543, allocations: 0 / 0.563 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-06/0.3543, allocations: 8.031 kB / 0.563 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-06/0.3543, allocations: 0 / 0.563 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.3543, allocations: 0 / 0.563 GB, free: 1.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.71e-05/0.3544, allocations: 75.28 kB / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3544, allocations: 0 / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003077/0.3547, allocations: 67.8 kB / 0.5631 GB, free: 1.816 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.0008067/0.3555, allocations: 0.7164 MB / 0.5638 GB, free: 1.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.3556, allocations: 59.41 kB / 0.5639 GB, free: 1 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3556, allocations: 0 / 0.5639 GB, free: 1 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.92e-05/0.3556, allocations: 59.5 kB / 0.5639 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.3558, allocations: 7.938 kB / 0.5639 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003508/0.3561, allocations: 142.4 kB / 0.5641 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.3564, allocations: 0.669 MB / 0.5647 GB, free: 48 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.749e-06/0.3564, allocations: 0 / 0.5647 GB, free: 48 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.453e-05/0.3564, allocations: 7.438 kB / 0.5647 GB, free: 40 kB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3564, allocations: 0 / 0.5647 GB, free: 40 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.3795, allocations: 2.627 MB / 0.5673 GB, free: 13.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.15, allocations: 3.094 kB / 0.5673 GB, free: 13.55 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.086165810993407] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 11.31195485900389 11.327649073 10.972495407 Calling exit ...