Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.004887/0.004887, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001211/0.001211, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002133/0.002133, allocations: 278.3 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9358/0.9358, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 104 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1691, allocations: 86.97 MB / 0.7659 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.001753/0.1709, allocations: 0.5761 MB / 0.7665 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002289/0.1712, allocations: 39.88 kB / 0.7665 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.437e-05/0.1712, allocations: 0 / 0.7665 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.1712, allocations: 0 / 0.7665 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.971e-06/0.1712, allocations: 0 / 0.7665 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.1715, allocations: 19.92 kB / 0.7666 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.193e-05/0.1715, allocations: 3.938 kB / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.105e-05/0.1716, allocations: 7.984 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.316e-05/0.1716, allocations: 0 / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.351e-05/0.1717, allocations: 0 / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.886e-06/0.1717, allocations: 0 / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.181e-05/0.1718, allocations: 19.98 kB / 0.7666 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.1718, allocations: 0 / 0.7666 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.012e-05/0.1718, allocations: 0 / 0.7666 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 9.085e-05/0.1719, allocations: 15.97 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1719, allocations: 0 / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1719, allocations: 4 kB / 0.7666 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.728e-06/0.1719, allocations: 0 / 0.7666 GB, free: 8.191 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003279/0.1723, allocations: 319.8 kB / 0.7669 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1723, allocations: 15.97 kB / 0.7669 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.175e-05/0.1723, allocations: 34.69 kB / 0.767 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.018e-05/0.1724, allocations: 0.9375 kB / 0.767 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.281e-05/0.1724, allocations: 160.4 kB / 0.7671 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.1725, allocations: 384 / 0.7671 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.642e-06/0.1725, allocations: 384 / 0.7671 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.887e-05/0.1726, allocations: 38.25 kB / 0.7672 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1726, allocations: 3.938 kB / 0.7672 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.1726, allocations: 3.938 kB / 0.7672 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1726, allocations: 0 / 0.7672 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.088e-05/0.1726, allocations: 4 kB / 0.7672 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001262/0.1728, allocations: 149.7 kB / 0.7673 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.595e-05/0.1728, allocations: 22.5 kB / 0.7673 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.709e-05/0.1728, allocations: 8.953 kB / 0.7673 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.1729, allocations: 4 kB / 0.7673 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.1729, allocations: 30.56 kB / 0.7674 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.1729, allocations: 0 / 0.7674 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001348/0.173, allocations: 49.56 kB / 0.7674 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.1731, allocations: 51.41 kB / 0.7675 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.07e-05/0.1731, allocations: 89.86 kB / 0.7676 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.1731, allocations: 25.7 kB / 0.7676 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.806e-05/0.1732, allocations: 84.27 kB / 0.7677 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.1732, allocations: 7.938 kB / 0.7677 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.1732, allocations: 13.72 kB / 0.7677 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.783e-05/0.1733, allocations: 310.8 kB / 0.768 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.282e-05/0.1733, allocations: 4 kB / 0.768 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.564e-06/0.1734, allocations: 4 kB / 0.768 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.681e-05/0.1734, allocations: 4.859 kB / 0.768 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1734, allocations: 0 / 0.768 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.646e-05/0.1735, allocations: 45.69 kB / 0.768 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.1735, allocations: 4 kB / 0.768 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1735, allocations: 3.938 kB / 0.768 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1735, allocations: 0 / 0.768 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.225e-05/0.1736, allocations: 4 kB / 0.768 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1736, allocations: 0 / 0.768 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.265e-05/0.1736, allocations: 0 / 0.768 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.1736, allocations: 0 / 0.768 GB, free: 6.488 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 (1): * Single equations (assignments): 1 * 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 6.433e-05/0.1737, allocations: 110.5 kB / 0.7682 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.177e-06/0.1737, allocations: 8.031 kB / 0.7682 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.196e-05/0.1738, allocations: 40.75 kB / 0.7682 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1738, allocations: 4 kB / 0.7682 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1738, allocations: 0 / 0.7682 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1738, allocations: 0 / 0.7682 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.916e-05/0.1739, allocations: 149.6 kB / 0.7683 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1739, allocations: 3.938 kB / 0.7683 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.972e-05/0.174, allocations: 11.97 kB / 0.7684 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.174, allocations: 0 / 0.7684 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-06/0.174, allocations: 3.938 kB / 0.7684 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.174, allocations: 0 / 0.7684 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.174, allocations: 0 / 0.7684 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.92e-05/0.1741, allocations: 61.12 kB / 0.7684 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.967e-05/0.1741, allocations: 77.11 kB / 0.7685 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.1741, allocations: 3.938 kB / 0.7685 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.101e-05/0.1741, allocations: 4.031 kB / 0.7685 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.027e-06/0.1742, allocations: 0 / 0.7685 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.1742, allocations: 8 kB / 0.7685 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.431e-05/0.1742, allocations: 75.28 kB / 0.7686 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1742, allocations: 0 / 0.7686 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001934/0.1744, allocations: 11.94 kB / 0.7686 GB, free: 5.828 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 (1): * Single equations (assignments): 1 * 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.0003973/0.1748, allocations: 0.6046 MB / 0.7692 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.044e-05/0.1749, allocations: 4 kB / 0.7692 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1749, allocations: 0 / 0.7692 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.212e-05/0.1749, allocations: 7.984 kB / 0.7692 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.175, allocations: 0 / 0.7692 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002823/0.1753, allocations: 110.6 kB / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.1756, allocations: 0.673 MB / 0.77 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.925e-05/0.1756, allocations: 7.984 kB / 0.77 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.44e-05/0.1756, allocations: 7.438 kB / 0.77 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.1756, allocations: 0 / 0.77 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01741/0.193, allocations: 1.032 MB / 0.771 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.362/7.555, allocations: 4.688 kB / 0.771 GB, free: 3.395 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)