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) 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 trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001547/0.001547, 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.00208/0.00208, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.223/0.223, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 74.19 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001811/0.1087, allocations: 487.7 kB / 480.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.1113, allocations: 1.797 MB / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.8e-05/0.1113, allocations: 0 / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.586e-05/0.1114, allocations: 0 / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.352e-06/0.1114, allocations: 0 / 482.4 MB, free: 2.891 MB / 350.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.001074/0.1125, allocations: 239.2 kB / 482.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.09e-05/0.1125, allocations: 4 kB / 482.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.757e-05/0.1126, allocations: 0 / 482.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.72e-05/0.1126, allocations: 0 / 482.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.938e-05/0.1126, allocations: 7.938 kB / 482.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.323e-06/0.1126, allocations: 4 kB / 482.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006495/0.1133, allocations: 395.2 kB / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.484e-06/0.1133, allocations: 0 / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.093e-05/0.1133, allocations: 4 kB / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004935/0.1138, allocations: 303.5 kB / 483.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1139, allocations: 4 kB / 483.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1139, allocations: 0 / 483.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1139, allocations: 0 / 483.3 MB, free: 1.949 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.000406/0.1143, allocations: 385.2 kB / 483.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1143, allocations: 8.031 kB / 483.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.1144, allocations: 30.75 kB / 483.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.1144, allocations: 0.9375 kB / 483.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.126e-05/0.1145, allocations: 168.3 kB / 483.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.1145, allocations: 4.375 kB / 483.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-06/0.1145, allocations: 4.375 kB / 483.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.866e-05/0.1146, allocations: 33.83 kB / 484 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.1146, allocations: 0 / 484 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.1147, allocations: 4 kB / 484 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.758e-06/0.1147, allocations: 0 / 484 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.752e-05/0.1147, allocations: 0 / 484 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001317/0.1148, allocations: 145.7 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.589e-05/0.1149, allocations: 22.55 kB / 484.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.615e-05/0.1149, allocations: 8.859 kB / 484.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.109e-06/0.1149, allocations: 0 / 484.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.25e-05/0.115, allocations: 68.27 kB / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.115, allocations: 0 / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001822/0.1152, allocations: 63.39 kB / 484.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.1152, allocations: 77.11 kB / 484.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.496e-05/0.1153, allocations: 89.86 kB / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1153, allocations: 33.77 kB / 484.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.747e-05/0.1153, allocations: 80.14 kB / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.1154, allocations: 0 / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.1154, allocations: 21.66 kB / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.1155, allocations: 310.8 kB / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.066e-05/0.1155, allocations: 0 / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.048e-05/0.1155, allocations: 4 kB / 484.9 MB, free: 176 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.555e-05/0.1156, allocations: 68.31 kB / 484.9 MB, free: 92 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1156, allocations: 3.938 kB / 484.9 MB, free: 88 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.292e-05/0.1157, allocations: 63.41 kB / 485 MB, free: 12 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.1158, allocations: 33.64 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.1158, allocations: 4 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1158, allocations: 0 / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.205e-06/0.1158, allocations: 7.922 kB / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1158, allocations: 0 / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.638e-05/0.1158, allocations: 0 / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.1158, allocations: 0 / 485 MB, free: 15.96 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.168e-05/0.1159, allocations: 139.6 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.116, allocations: 3.938 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.238e-05/0.116, allocations: 7.125 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.116, allocations: 0 / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.116, allocations: 0 / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.116, allocations: 0 / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.1161, allocations: 153.6 kB / 485.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1161, allocations: 0 / 485.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.082e-06/0.1161, allocations: 0 / 485.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.1161, allocations: 3.938 kB / 485.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-06/0.1162, allocations: 4 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1162, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1162, allocations: 4 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.675e-05/0.1163, allocations: 90.83 kB / 485.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.1163, allocations: 81.05 kB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.1163, allocations: 7.938 kB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.939e-06/0.1164, allocations: 0 / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.285e-05/0.1164, allocations: 4.031 kB / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.1164, allocations: 0 / 485.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.953e-05/0.1164, allocations: 75.28 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1164, allocations: 0 / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.1168, allocations: 71.92 kB / 485.7 MB, free: 15.22 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.0006613/0.1175, allocations: 0.7182 MB / 486.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.679e-05/0.1176, allocations: 67.34 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1176, allocations: 0 / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.704e-05/0.1176, allocations: 55.39 kB / 486.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1177, allocations: 12.06 kB / 486.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003076/0.1181, allocations: 130.6 kB / 486.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.1183, allocations: 0.669 MB / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.504e-06/0.1183, allocations: 0 / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.533e-05/0.1183, allocations: 7.438 kB / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1183, allocations: 0 / 487.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.1371, allocations: 2.434 MB / 489.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/7.851, allocations: 4.781 kB / 489.8 MB, free: 11.06 MB / 366.1 MB (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)