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.001387/0.001387, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0015/0.0015, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 247 MB, free: 10.45 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.2241/0.2241, allocations: 46.12 MB / 344.3 MB, free: 11.47 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.002502/0.002502, allocations: 83.86 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3276, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001772/0.3294, allocations: 491.7 kB / 0.5311 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002971/0.3324, allocations: 1.791 MB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.682e-05/0.3325, allocations: 0 / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.3325, allocations: 0 / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.3325, allocations: 4 kB / 0.5328 GB, free: 11.6 MB / 398.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.001111/0.3336, allocations: 232.9 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.179e-05/0.3337, allocations: 5.359 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.729e-05/0.3337, allocations: 1.375 kB / 0.533 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.875e-05/0.3338, allocations: 5.312 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.592e-05/0.3338, allocations: 4 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.551e-06/0.3338, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007317/0.3345, allocations: 408.3 kB / 0.5334 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-06/0.3346, allocations: 0 / 0.5334 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.586e-05/0.3346, allocations: 5.281 kB / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005602/0.3352, allocations: 309.9 kB / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.768e-06/0.3352, allocations: 1.312 kB / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.3352, allocations: 0 / 0.5337 GB, free: 11.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.3352, allocations: 3.938 kB / 0.5337 GB, free: 11.04 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.0004832/0.3357, allocations: 388.6 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.3357, allocations: 9.906 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.3358, allocations: 30.75 kB / 0.5342 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.473e-05/0.3358, allocations: 6.031 kB / 0.5342 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.3359, allocations: 160.4 kB / 0.5343 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.336, allocations: 1.719 kB / 0.5343 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.336, allocations: 384 / 0.5343 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.518e-05/0.3361, allocations: 36.22 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3361, allocations: 0 / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.3361, allocations: 1.062 kB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.3361, allocations: 4 kB / 0.5344 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.23e-05/0.3361, allocations: 6.281 kB / 0.5344 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.3363, allocations: 142.9 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.971e-05/0.3363, allocations: 19.73 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.646e-05/0.3364, allocations: 6.078 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.3364, allocations: 1.188 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/0.3364, allocations: 69.38 kB / 0.5346 GB, free: 10.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3365, allocations: 0 / 0.5346 GB, free: 10.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001779/0.3366, allocations: 66.77 kB / 0.5346 GB, free: 9.957 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.3367, allocations: 78.3 kB / 0.5347 GB, free: 9.863 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.938e-05/0.3368, allocations: 101.8 kB / 0.5348 GB, free: 9.754 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3368, allocations: 25.7 kB / 0.5348 GB, free: 9.723 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.354e-05/0.3368, allocations: 81.48 kB / 0.5349 GB, free: 9.641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.3368, allocations: 0 / 0.5349 GB, free: 9.641 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.3369, allocations: 16.23 kB / 0.5349 GB, free: 9.621 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.337, allocations: 316.3 kB / 0.5352 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-06/0.337, allocations: 0 / 0.5352 GB, free: 9.305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.3371, allocations: 1.375 kB / 0.5352 GB, free: 9.305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.493e-05/0.3371, allocations: 63.45 kB / 0.5353 GB, free: 9.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3371, allocations: 0 / 0.5353 GB, free: 9.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.927e-05/0.3372, allocations: 66.48 kB / 0.5354 GB, free: 9.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.3373, allocations: 35.36 kB / 0.5354 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.3373, allocations: 96 / 0.5354 GB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.3373, allocations: 9.469 kB / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3373, allocations: 0 / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.3373, allocations: 0 / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.585e-05/0.3373, allocations: 1.688 kB / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.3373, allocations: 0 / 0.5354 GB, free: 9.117 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.784e-05/0.3374, allocations: 142.6 kB / 0.5355 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-06/0.3375, allocations: 3.938 kB / 0.5355 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.304e-05/0.3375, allocations: 7.109 kB / 0.5356 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3375, allocations: 2.062 kB / 0.5356 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3375, allocations: 4 kB / 0.5356 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3375, allocations: 0 / 0.5356 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.3376, allocations: 146.8 kB / 0.5357 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3377, allocations: 1.031 kB / 0.5357 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.3377, allocations: 0 / 0.5357 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.3377, allocations: 3.938 kB / 0.5357 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.3377, allocations: 5.109 kB / 0.5357 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3377, allocations: 1.094 kB / 0.5357 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3377, allocations: 0 / 0.5357 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.3378, allocations: 93.19 kB / 0.5358 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.3379, allocations: 85.78 kB / 0.5359 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.3379, allocations: 0.9375 kB / 0.5359 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-06/0.3379, allocations: 0.9375 kB / 0.5359 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.3379, allocations: 1.156 kB / 0.5359 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-06/0.3379, allocations: 4.906 kB / 0.5359 GB, free: 8.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.057e-05/0.338, allocations: 75.28 kB / 0.536 GB, free: 8.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.338, allocations: 0 / 0.536 GB, free: 8.469 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000345/0.3383, allocations: 73.02 kB / 0.536 GB, free: 8.445 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.0008246/0.3391, allocations: 0.71 MB / 0.5367 GB, free: 7.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000105/0.3393, allocations: 68.83 kB / 0.5368 GB, free: 7.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3393, allocations: 0 / 0.5368 GB, free: 7.695 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.579e-05/0.3393, allocations: 54.16 kB / 0.5368 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.3394, allocations: 5.562 kB / 0.5368 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003273/0.3398, allocations: 132.4 kB / 0.537 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.3401, allocations: 0.6742 MB / 0.5376 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.32e-06/0.3401, allocations: 4.125 kB / 0.5376 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.741e-05/0.3401, allocations: 8.812 kB / 0.5376 GB, free: 6.77 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3401, allocations: 3.938 kB / 0.5376 GB, free: 6.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02663/0.3668, allocations: 2.449 MB / 0.54 GB, free: 5.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/8.161, allocations: 13.31 kB / 0.5401 GB, free: 5.395 MB / 398.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)