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.001789/0.001789, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00202/0.00202, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.8 MB, free: 10.54 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.2225/0.2225, allocations: 46.11 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.002247/0.002248, allocations: 82.34 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1203, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.002/0.1224, allocations: 487 kB / 480.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1249, allocations: 1.805 MB / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.586e-05/0.125, allocations: 0 / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.498e-05/0.125, allocations: 0 / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.729e-06/0.125, allocations: 0 / 482.5 MB, free: 2.844 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.0009299/0.126, allocations: 231.2 kB / 482.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.664e-05/0.126, allocations: 4 kB / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.97e-05/0.1261, allocations: 0 / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.502e-05/0.1261, allocations: 0 / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.928e-05/0.1261, allocations: 3.938 kB / 482.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.682e-06/0.1261, allocations: 0 / 482.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006382/0.1268, allocations: 403.2 kB / 483.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.1268, allocations: 0 / 483.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.7e-05/0.1268, allocations: 0 / 483.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004403/0.1273, allocations: 307.5 kB / 483.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1273, allocations: 0 / 483.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1273, allocations: 4 kB / 483.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1273, allocations: 0 / 483.4 MB, free: 1.91 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.0004113/0.1277, allocations: 389.2 kB / 483.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1278, allocations: 8.031 kB / 483.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.508e-05/0.1278, allocations: 30.75 kB / 483.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.1278, allocations: 4.875 kB / 483.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.1279, allocations: 160.4 kB / 484 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.128, allocations: 8.375 kB / 484 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.805e-06/0.128, allocations: 4.359 kB / 484 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.679e-05/0.1281, allocations: 29.83 kB / 484 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.1281, allocations: 0 / 484 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1281, allocations: 7.984 kB / 484 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1281, allocations: 0 / 484 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.537e-05/0.1281, allocations: 0 / 484 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001372/0.1283, allocations: 149.6 kB / 484.2 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.209e-05/0.1283, allocations: 26.55 kB / 484.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.363e-05/0.1283, allocations: 4.859 kB / 484.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.542e-06/0.1283, allocations: 0 / 484.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/0.1284, allocations: 64.27 kB / 484.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1284, allocations: 0 / 484.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.1286, allocations: 63.39 kB / 484.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.1286, allocations: 85.05 kB / 484.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.809e-05/0.1287, allocations: 89.98 kB / 484.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1287, allocations: 29.7 kB / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.549e-05/0.1288, allocations: 80.14 kB / 484.6 MB, free: 480 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.1288, allocations: 0 / 484.6 MB, free: 480 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.1288, allocations: 17.7 kB / 484.6 MB, free: 456 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1289, allocations: 318.8 kB / 485 MB, free: 128 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.616e-06/0.129, allocations: 0 / 485 MB, free: 128 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.104e-06/0.129, allocations: 4 kB / 485 MB, free: 124 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.592e-05/0.129, allocations: 64.33 kB / 485 MB, free: 44 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.129, allocations: 0 / 485 MB, free: 44 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.495e-05/0.1291, allocations: 63.39 kB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.1292, allocations: 33.64 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1292, allocations: 0 / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.1292, allocations: 7.938 kB / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.1292, allocations: 0 / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1292, allocations: 0 / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.39e-05/0.1292, allocations: 0 / 485.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-06/0.1292, allocations: 4 kB / 485.1 MB, free: 15.92 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.348e-05/0.1293, allocations: 143.6 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.1294, allocations: 3.938 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.127e-06/0.1294, allocations: 7.109 kB / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.1294, allocations: 0 / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1294, allocations: 0 / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1294, allocations: 0 / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.1295, allocations: 149.6 kB / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.1295, allocations: 0 / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1295, allocations: 0 / 485.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1295, allocations: 7.938 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.1295, allocations: 0 / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1296, allocations: 3.984 kB / 485.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1296, allocations: 4 kB / 485.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.777e-05/0.1297, allocations: 86.78 kB / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.533e-05/0.1297, allocations: 81.05 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.1297, allocations: 7.984 kB / 485.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.037e-06/0.1298, allocations: 3.938 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.08e-05/0.1298, allocations: 4.031 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.1298, allocations: 0 / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.31e-05/0.1298, allocations: 79.28 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1298, allocations: 0 / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003196/0.1302, allocations: 67.98 kB / 485.8 MB, free: 15.18 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.0008008/0.131, allocations: 0.716 MB / 486.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001078/0.1311, allocations: 67.33 kB / 486.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1311, allocations: 0 / 486.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.638e-05/0.1311, allocations: 55.41 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.0001363/0.1313, allocations: 12.06 kB / 486.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/0.1316, allocations: 130.6 kB / 486.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.132, allocations: 0.6729 MB / 487.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.222e-06/0.132, allocations: 0 / 487.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.422e-05/0.132, allocations: 11.44 kB / 487.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of SimCode: time 1.91e-07/0.132, allocations: 0 / 487.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.1559, allocations: 2.433 MB / 489.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/8.335, allocations: 11.19 kB / 489.9 MB, free: 11.02 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 & 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)