Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007414/0.007414, allocations: 96.2 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 198.2 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002229/0.00223, allocations: 285.7 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9499/0.9499, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 91.83 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.162, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002829/0.1649, allocations: 1.431 MB / 0.7673 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003324/0.1652, allocations: 100.5 kB / 0.7674 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.272e-05/0.1653, allocations: 0 / 0.7674 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.273e-05/0.1654, allocations: 3.938 kB / 0.7674 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.505e-05/0.1654, allocations: 0 / 0.7674 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002421/0.1657, allocations: 23.92 kB / 0.7674 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.763e-05/0.1657, allocations: 23.92 kB / 0.7674 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.492e-05/0.1658, allocations: 15.97 kB / 0.7675 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.354e-05/0.1659, allocations: 4 kB / 0.7675 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.762e-05/0.1659, allocations: 15.92 kB / 0.7675 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.1659, allocations: 4 kB / 0.7675 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.281e-05/0.166, allocations: 19.98 kB / 0.7675 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.359e-05/0.1661, allocations: 11.92 kB / 0.7675 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.1661, allocations: 15.92 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.1663, allocations: 28.19 kB / 0.7676 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1663, allocations: 0 / 0.7676 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of FrontEnd: time 4.328e-06/0.1663, allocations: 3.984 kB / 0.7676 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.166e-06/0.1663, allocations: 3.938 kB / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004311/0.1667, allocations: 343.4 kB / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1668, allocations: 12.03 kB / 0.7679 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.222e-05/0.1668, allocations: 34.75 kB / 0.7679 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.1668, allocations: 8.891 kB / 0.7679 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.167, allocations: 168.3 kB / 0.7681 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.167, allocations: 384 / 0.7681 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.167, allocations: 4.375 kB / 0.7681 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.1672, allocations: 50.23 kB / 0.7682 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1672, allocations: 3.938 kB / 0.7682 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-06/0.1672, allocations: 0 / 0.7682 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1672, allocations: 4 kB / 0.7682 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.1674, allocations: 35.95 kB / 0.7682 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003208/0.1677, allocations: 257 kB / 0.7684 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.1679, allocations: 46.44 kB / 0.7685 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.292e-05/0.168, allocations: 28.89 kB / 0.7685 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.168, allocations: 4 kB / 0.7685 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.168, allocations: 34.56 kB / 0.7686 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.1681, allocations: 0 / 0.7686 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003645/0.1684, allocations: 93.53 kB / 0.7686 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.1685, allocations: 55.53 kB / 0.7687 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.174e-05/0.1686, allocations: 105.8 kB / 0.7688 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.272e-05/0.1686, allocations: 25.7 kB / 0.7688 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.1686, allocations: 80.14 kB / 0.7689 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.1687, allocations: 15.89 kB / 0.7689 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.1687, allocations: 9.719 kB / 0.7689 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.1688, allocations: 318.8 kB / 0.7692 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.575e-05/0.1689, allocations: 16.23 kB / 0.7692 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.536e-05/0.169, allocations: 19.98 kB / 0.7693 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.1691, allocations: 48.81 kB / 0.7693 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.1691, allocations: 3.938 kB / 0.7693 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002181/0.1694, allocations: 73.59 kB / 0.7694 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1694, allocations: 8.094 kB / 0.7694 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1694, allocations: 0 / 0.7694 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.1694, allocations: 0 / 0.7694 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.621e-05/0.1695, allocations: 15.92 kB / 0.7694 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.1695, allocations: 0 / 0.7694 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.612e-05/0.1696, allocations: 4 kB / 0.7694 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.1696, allocations: 0 / 0.7694 GB, free: 5.117 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 7.549e-05/0.1697, allocations: 122.4 kB / 0.7695 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.577e-05/0.1697, allocations: 7.953 kB / 0.7695 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002277/0.1699, allocations: 69.19 kB / 0.7696 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1699, allocations: 0 / 0.7696 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.17, allocations: 7.938 kB / 0.7696 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.17, allocations: 0 / 0.7696 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.1701, allocations: 165.6 kB / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1701, allocations: 0 / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.883e-05/0.1702, allocations: 15.92 kB / 0.7698 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1702, allocations: 4.031 kB / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.1702, allocations: 0 / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1702, allocations: 0 / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1702, allocations: 0 / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002353/0.1705, allocations: 167.5 kB / 0.7699 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.545e-05/0.1705, allocations: 77.11 kB / 0.77 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.1705, allocations: 8.031 kB / 0.77 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.565e-05/0.1706, allocations: 3.984 kB / 0.77 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.1706, allocations: 4 kB / 0.77 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.1707, allocations: 3.984 kB / 0.77 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.278e-05/0.1707, allocations: 87.27 kB / 0.7701 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.655e-06/0.1707, allocations: 0 / 0.7701 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002312/0.171, allocations: 11.94 kB / 0.7701 GB, free: 4.277 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0005013/0.1715, allocations: 0.7046 MB / 0.7708 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002091/0.1717, allocations: 39.95 kB / 0.7709 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1717, allocations: 0 / 0.7709 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.222e-05/0.1718, allocations: 28.02 kB / 0.7709 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.1721, allocations: 6.062 kB / 0.7709 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004026/0.1725, allocations: 153.9 kB / 0.771 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.1727, allocations: 0.6768 MB / 0.7717 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.48e-05/0.1728, allocations: 0 / 0.7717 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.241e-05/0.1728, allocations: 15.38 kB / 0.7717 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of SimCode: time 2.7e-07/0.1728, allocations: 0 / 0.7717 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.1898, allocations: 1.437 MB / 0.7731 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.346/7.536, allocations: 14.31 kB / 0.7731 GB, free: 1.215 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1)