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.001312/0.001312, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 201.2 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.443/1.443, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2385/0.2385, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00221/0.00221, allocations: 79.86 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.359, allocations: 62.45 MB / 0.5306 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestPolynomials): time 0.001636/0.3607, allocations: 492.2 kB / 0.5311 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.3634, allocations: 1.796 MB / 0.5328 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.684e-05/0.3634, allocations: 0 / 0.5328 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.287e-05/0.3634, allocations: 0 / 0.5328 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.3635, allocations: 0 / 0.5328 GB, free: 11.47 MB / 398.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.001005/0.3645, allocations: 232.9 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.76e-05/0.3645, allocations: 5.344 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.124e-05/0.3646, allocations: 1.312 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.49e-05/0.3646, allocations: 5.344 kB / 0.533 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.516e-05/0.3646, allocations: 0 / 0.533 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.521e-06/0.3646, allocations: 0 / 0.533 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006781/0.3653, allocations: 408.6 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.3653, allocations: 0 / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.202e-05/0.3653, allocations: 1.531 kB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004823/0.3658, allocations: 310 kB / 0.5337 GB, free: 10.92 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3659, allocations: 0 / 0.5337 GB, free: 10.92 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3659, allocations: 3.938 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.3659, allocations: 1.781 kB / 0.5337 GB, free: 10.91 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.0004579/0.3663, allocations: 387.1 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.3664, allocations: 9.906 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.734e-05/0.3664, allocations: 32.12 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.454e-05/0.3665, allocations: 0.9375 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.3666, allocations: 160.4 kB / 0.5343 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.3666, allocations: 5.75 kB / 0.5343 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.3666, allocations: 384 / 0.5343 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.911e-05/0.3667, allocations: 32.58 kB / 0.5343 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.074e-06/0.3668, allocations: 3.938 kB / 0.5343 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.3668, allocations: 1.375 kB / 0.5343 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3668, allocations: 0 / 0.5343 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.295e-05/0.3668, allocations: 9.297 kB / 0.5343 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.367, allocations: 147.1 kB / 0.5345 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.692e-05/0.367, allocations: 19.95 kB / 0.5345 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.807e-05/0.367, allocations: 10.23 kB / 0.5345 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.3671, allocations: 1.375 kB / 0.5345 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.152e-05/0.3671, allocations: 60.2 kB / 0.5346 GB, free: 9.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3671, allocations: 1.375 kB / 0.5346 GB, free: 9.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001897/0.3673, allocations: 74.19 kB / 0.5346 GB, free: 9.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.3674, allocations: 82.42 kB / 0.5347 GB, free: 9.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.016e-05/0.3675, allocations: 97.94 kB / 0.5348 GB, free: 9.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.3675, allocations: 25.7 kB / 0.5348 GB, free: 9.594 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.575e-05/0.3675, allocations: 81.52 kB / 0.5349 GB, free: 9.512 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.3675, allocations: 0 / 0.5349 GB, free: 9.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.3676, allocations: 16.47 kB / 0.5349 GB, free: 9.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3677, allocations: 314.8 kB / 0.5352 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.068e-05/0.3677, allocations: 1.375 kB / 0.5352 GB, free: 9.176 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.131e-06/0.3678, allocations: 1.375 kB / 0.5352 GB, free: 9.176 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.307e-05/0.3678, allocations: 63.08 kB / 0.5353 GB, free: 9.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3678, allocations: 0 / 0.5353 GB, free: 9.102 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.64e-05/0.3679, allocations: 66.22 kB / 0.5354 GB, free: 9.031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.368, allocations: 39.12 kB / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.368, allocations: 1.375 kB / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.368, allocations: 0 / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-07/0.368, allocations: 0 / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.368, allocations: 1.375 kB / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.593e-05/0.368, allocations: 0 / 0.5354 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.368, allocations: 5.406 kB / 0.5354 GB, free: 8.988 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 0.0001015/0.3681, allocations: 134.3 kB / 0.5355 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.3682, allocations: 3.938 kB / 0.5355 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.027e-06/0.3682, allocations: 3.125 kB / 0.5355 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3682, allocations: 5.359 kB / 0.5356 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3682, allocations: 0 / 0.5356 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.3682, allocations: 0 / 0.5356 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001116/0.3683, allocations: 144.4 kB / 0.5357 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3683, allocations: 0 / 0.5357 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.3683, allocations: 4 kB / 0.5357 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3683, allocations: 3.938 kB / 0.5357 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.3684, allocations: 1.375 kB / 0.5357 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3684, allocations: 0 / 0.5357 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3684, allocations: 9.297 kB / 0.5357 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001022/0.3685, allocations: 89.78 kB / 0.5358 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.3685, allocations: 81.05 kB / 0.5359 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.3686, allocations: 5.359 kB / 0.5359 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.289e-05/0.3686, allocations: 8.031 kB / 0.5359 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.3686, allocations: 5.312 kB / 0.5359 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.3686, allocations: 5.359 kB / 0.5359 GB, free: 8.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.599e-05/0.3687, allocations: 75.28 kB / 0.536 GB, free: 8.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3687, allocations: 0 / 0.536 GB, free: 8.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003627/0.369, allocations: 65.3 kB / 0.536 GB, free: 8.324 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.0008374/0.3699, allocations: 0.7101 MB / 0.5367 GB, free: 7.648 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.37, allocations: 59.52 kB / 0.5368 GB, free: 7.582 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.37, allocations: 1.375 kB / 0.5368 GB, free: 7.582 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.115e-05/0.3701, allocations: 62.25 kB / 0.5368 GB, free: 7.512 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.3702, allocations: 1.375 kB / 0.5368 GB, free: 7.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003624/0.3706, allocations: 129.8 kB / 0.537 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.3709, allocations: 0.6703 MB / 0.5376 GB, free: 6.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.114e-05/0.3709, allocations: 3.984 kB / 0.5376 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.405e-05/0.3709, allocations: 11.38 kB / 0.5376 GB, free: 6.652 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3709, allocations: 5.312 kB / 0.5376 GB, free: 6.648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.3947, allocations: 2.452 MB / 0.54 GB, free: 5.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.205, allocations: 4.625 kB / 0.54 GB, free: 5.27 MB / 398.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)