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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001522/0.001522, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001675/0.001675, allocations: 210.4 kB / 18.58 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2398/0.2398, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB 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.002184/0.002184, allocations: 79.91 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1163, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001841/0.1182, allocations: 498.1 kB / 480.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.1208, allocations: 1.797 MB / 482.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.022e-05/0.1208, allocations: 0 / 482.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.174e-05/0.1209, allocations: 0 / 482.5 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.288e-06/0.1209, allocations: 0 / 482.5 MB, free: 2.859 MB / 350.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.001026/0.1219, allocations: 231.3 kB / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.29e-05/0.122, allocations: 0 / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.031e-05/0.122, allocations: 0 / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.061e-05/0.122, allocations: 0 / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.781e-05/0.1221, allocations: 11.88 kB / 482.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.1221, allocations: 0 / 482.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000686/0.1228, allocations: 399.2 kB / 483.1 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.053e-05/0.1228, allocations: 8 kB / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.678e-05/0.1228, allocations: 0 / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004451/0.1233, allocations: 303.5 kB / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1233, allocations: 0 / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1233, allocations: 0 / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1233, allocations: 0 / 483.4 MB, free: 1.926 MB / 350.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.0004161/0.1237, allocations: 385.2 kB / 483.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.1237, allocations: 8.031 kB / 483.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.082e-05/0.1238, allocations: 30.75 kB / 483.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.1238, allocations: 8.938 kB / 483.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.1239, allocations: 164.4 kB / 484 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.124, allocations: 4.312 kB / 484 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-06/0.124, allocations: 384 / 484 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.335e-05/0.1241, allocations: 33.83 kB / 484 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.1241, allocations: 0 / 484 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.1241, allocations: 3.984 kB / 484 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1241, allocations: 0 / 484 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.593e-05/0.1241, allocations: 0 / 484 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.1243, allocations: 157.7 kB / 484.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.358e-05/0.1243, allocations: 18.52 kB / 484.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.547e-05/0.1243, allocations: 4.859 kB / 484.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.423e-06/0.1244, allocations: 0 / 484.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.99e-05/0.1244, allocations: 64.3 kB / 484.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1244, allocations: 0 / 484.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001628/0.1246, allocations: 67.39 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.1247, allocations: 81.23 kB / 484.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.248e-05/0.1247, allocations: 93.8 kB / 484.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1247, allocations: 25.7 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.575e-05/0.1248, allocations: 80.14 kB / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.1248, allocations: 0 / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/0.1248, allocations: 21.66 kB / 484.6 MB, free: 472 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.125, allocations: 314.8 kB / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.232e-05/0.125, allocations: 0 / 484.9 MB, free: 148 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.426e-05/0.125, allocations: 15.98 kB / 485 MB, free: 132 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.264e-05/0.1251, allocations: 56.27 kB / 485 MB, free: 60 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1251, allocations: 4 kB / 485 MB, free: 56 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.995e-05/0.1252, allocations: 55.41 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.1253, allocations: 41.64 kB / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1253, allocations: 0 / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1253, allocations: 3.984 kB / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1253, allocations: 0 / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1253, allocations: 0 / 485.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.522e-05/0.1254, allocations: 4.094 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.211e-06/0.1254, allocations: 3.938 kB / 485.1 MB, free: 15.93 MB / 366.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.217e-05/0.1255, allocations: 135.5 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.1255, allocations: 3.938 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.833e-06/0.1255, allocations: 3.125 kB / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1255, allocations: 0 / 485.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1255, allocations: 8 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1255, allocations: 0 / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.1256, allocations: 153.6 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1256, allocations: 4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1256, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1257, allocations: 3.938 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.1257, allocations: 4 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1257, allocations: 0 / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1257, allocations: 0 / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.1258, allocations: 90.83 kB / 485.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.366e-05/0.1258, allocations: 81.05 kB / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.1259, allocations: 4.031 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-06/0.1259, allocations: 4 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.1259, allocations: 3.938 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.1259, allocations: 4 kB / 485.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.561e-05/0.1259, allocations: 79.27 kB / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1259, allocations: 0 / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.1263, allocations: 63.94 kB / 485.8 MB, free: 15.19 MB / 366.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.0007621/0.127, allocations: 0.7204 MB / 486.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001001/0.1271, allocations: 55.41 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1271, allocations: 4.094 kB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.401e-05/0.1272, allocations: 67.33 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001271/0.1273, allocations: 7.922 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003571/0.1277, allocations: 130.6 kB / 486.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.128, allocations: 0.6729 MB / 487.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.128, allocations: 0 / 487.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.1281, allocations: 7.438 kB / 487.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1281, allocations: 0 / 487.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.1542, allocations: 2.425 MB / 489.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.161, allocations: 20.38 kB / 489.9 MB, free: 11.03 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestPolynomials.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestPolynomials.pipe 2>&1)