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.008157/0.008157, allocations: 99.66 kB / 15.73 MB, free: 6.035 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.001868/0.001868, allocations: 195.1 kB / 16.67 MB, free: 5.965 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002174/0.002175, allocations: 283 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9239/0.9239, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 95.84 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.168, allocations: 86.98 MB / 0.766 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.001536/0.1695, allocations: 0.5775 MB / 0.7665 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002036/0.1698, allocations: 31.88 kB / 0.7665 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.206e-05/0.1698, allocations: 0 / 0.7665 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.297e-05/0.1698, allocations: 0 / 0.7665 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.421e-06/0.1698, allocations: 0 / 0.7665 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.1701, allocations: 19.92 kB / 0.7666 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.741e-05/0.1701, allocations: 0 / 0.7666 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.1702, allocations: 7.938 kB / 0.7666 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.345e-05/0.1702, allocations: 4 kB / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.585e-05/0.1702, allocations: 0 / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.365e-06/0.1702, allocations: 0 / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.649e-05/0.1703, allocations: 15.98 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.1704, allocations: 0 / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.436e-05/0.1704, allocations: 7.969 kB / 0.7666 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.815e-05/0.1705, allocations: 19.92 kB / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1705, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1705, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.1705, allocations: 0 / 0.7666 GB, free: 8.203 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.0002806/0.1708, allocations: 315.6 kB / 0.7669 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.1708, allocations: 15.95 kB / 0.7669 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.487e-05/0.1709, allocations: 30.75 kB / 0.767 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.964e-05/0.1709, allocations: 4.938 kB / 0.767 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.477e-05/0.171, allocations: 160.4 kB / 0.7671 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-06/0.171, allocations: 384 / 0.7671 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.171, allocations: 384 / 0.7671 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.04e-05/0.1711, allocations: 30.27 kB / 0.7672 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.1711, allocations: 7.938 kB / 0.7672 GB, free: 7.547 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.1711, allocations: 4 kB / 0.7672 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.1711, allocations: 3.938 kB / 0.7672 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.972e-05/0.1712, allocations: 3.984 kB / 0.7672 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.1713, allocations: 141.7 kB / 0.7673 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.421e-05/0.1713, allocations: 22.55 kB / 0.7673 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.537e-05/0.1713, allocations: 8.859 kB / 0.7673 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.1714, allocations: 4.062 kB / 0.7673 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.1714, allocations: 34.56 kB / 0.7674 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1714, allocations: 0 / 0.7674 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001324/0.1715, allocations: 41.56 kB / 0.7674 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.1716, allocations: 55.41 kB / 0.7675 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.278e-05/0.1716, allocations: 89.86 kB / 0.7675 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.1716, allocations: 25.7 kB / 0.7676 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.632e-05/0.1717, allocations: 80.14 kB / 0.7677 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.1717, allocations: 8.125 kB / 0.7677 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.1718, allocations: 17.84 kB / 0.7677 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.1719, allocations: 314.8 kB / 0.768 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.074e-05/0.1719, allocations: 0 / 0.768 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.71e-06/0.1719, allocations: 0 / 0.768 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.803e-05/0.1719, allocations: 12.84 kB / 0.768 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1719, allocations: 4 kB / 0.768 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.324e-05/0.172, allocations: 37.64 kB / 0.768 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.172, allocations: 12.09 kB / 0.768 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.172, allocations: 3.938 kB / 0.768 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.172, allocations: 0 / 0.768 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.186e-05/0.1721, allocations: 4 kB / 0.768 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.1721, allocations: 0 / 0.768 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.191e-05/0.1721, allocations: 0 / 0.768 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.1721, allocations: 3.984 kB / 0.7681 GB, free: 6.5 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.14e-05/0.1722, allocations: 110.4 kB / 0.7682 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-06/0.1722, allocations: 4 kB / 0.7682 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.383e-05/0.1723, allocations: 40.77 kB / 0.7682 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1723, allocations: 3.984 kB / 0.7682 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1723, allocations: 0 / 0.7682 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1723, allocations: 0 / 0.7682 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.675e-05/0.1724, allocations: 149.7 kB / 0.7683 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1724, allocations: 0 / 0.7683 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.688e-05/0.1725, allocations: 7.875 kB / 0.7684 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1725, allocations: 3.984 kB / 0.7684 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.1725, allocations: 11.97 kB / 0.7684 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1725, allocations: 0 / 0.7684 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1725, allocations: 0 / 0.7684 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.983e-05/0.1726, allocations: 57.12 kB / 0.7684 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.143e-05/0.1726, allocations: 81.11 kB / 0.7685 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.788e-06/0.1726, allocations: 3.938 kB / 0.7685 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-06/0.1726, allocations: 0 / 0.7685 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.308e-05/0.1727, allocations: 8.016 kB / 0.7685 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-06/0.1727, allocations: 0 / 0.7685 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.349e-05/0.1727, allocations: 75.28 kB / 0.7686 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1727, allocations: 4 kB / 0.7686 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001845/0.1729, allocations: 4 kB / 0.7686 GB, free: 5.848 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.0004676/0.1734, allocations: 0.6046 MB / 0.7692 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 5.935e-05/0.1734, allocations: 4 kB / 0.7692 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1734, allocations: 0 / 0.7692 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.406e-06/0.1734, allocations: 0 / 0.7692 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.1736, allocations: 6.344 kB / 0.7692 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002858/0.1739, allocations: 110.7 kB / 0.7693 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/0.1741, allocations: 0.6767 MB / 0.77 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.356e-05/0.1742, allocations: 4.125 kB / 0.77 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.243e-05/0.1742, allocations: 7.438 kB / 0.77 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.1742, allocations: 4 kB / 0.77 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01709/0.1913, allocations: 1.024 MB / 0.771 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.896/7.087, allocations: 8.75 kB / 0.771 GB, free: 3.41 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)