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.001208/0.001208, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 195 kB / 16.53 MB, free: 6.699 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002406/0.002406, allocations: 279 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.042/1.042, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002657, allocations: 99.16 kB / 0.6066 GB, free: 24.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1561, allocations: 89.14 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.001952/0.158, allocations: 0.5769 MB / 0.6942 GB, free: 3.648 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002225/0.1583, allocations: 41.28 kB / 0.6942 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.452e-05/0.1583, allocations: 3.938 kB / 0.6942 GB, free: 3.605 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.383e-05/0.1583, allocations: 3.938 kB / 0.6942 GB, free: 3.602 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-06/0.1583, allocations: 4 kB / 0.6942 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.1586, allocations: 8.578 kB / 0.6942 GB, free: 3.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.879e-05/0.1586, allocations: 2.656 kB / 0.6942 GB, free: 3.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.783e-05/0.1587, allocations: 12 kB / 0.6942 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.572e-05/0.1587, allocations: 0 / 0.6942 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.258e-05/0.1588, allocations: 0 / 0.6942 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.1588, allocations: 0 / 0.6942 GB, free: 3.578 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.901e-05/0.1589, allocations: 27.91 kB / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.1589, allocations: 0 / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.01e-05/0.1589, allocations: 5.547 kB / 0.6943 GB, free: 3.547 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.488e-05/0.159, allocations: 11.98 kB / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.159, allocations: 0 / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.159, allocations: 0 / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.159, allocations: 0.6562 kB / 0.6943 GB, free: 3.535 MB / 494.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.0003627/0.1594, allocations: 317.1 kB / 0.6946 GB, free: 3.176 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.1595, allocations: 12.03 kB / 0.6946 GB, free: 3.164 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.1595, allocations: 30.75 kB / 0.6946 GB, free: 3.125 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.017e-05/0.1595, allocations: 0.9375 kB / 0.6946 GB, free: 3.125 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.1597, allocations: 164.4 kB / 0.6948 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.1597, allocations: 4.312 kB / 0.6948 GB, free: 2.922 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-06/0.1597, allocations: 384 / 0.6948 GB, free: 2.922 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.38e-05/0.1598, allocations: 30.27 kB / 0.6948 GB, free: 2.887 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.1598, allocations: 3.938 kB / 0.6948 GB, free: 2.883 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.1598, allocations: 3.984 kB / 0.6948 GB, free: 2.879 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1598, allocations: 3.938 kB / 0.6948 GB, free: 2.875 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.212e-05/0.1598, allocations: 7.984 kB / 0.6948 GB, free: 2.867 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001599/0.16, allocations: 149.7 kB / 0.695 GB, free: 2.672 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.665e-05/0.16, allocations: 18.58 kB / 0.695 GB, free: 2.645 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.795e-05/0.1601, allocations: 8.953 kB / 0.695 GB, free: 2.633 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.1601, allocations: 0 / 0.695 GB, free: 2.633 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.1601, allocations: 30.56 kB / 0.695 GB, free: 2.594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.1601, allocations: 0 / 0.695 GB, free: 2.594 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.1603, allocations: 49.56 kB / 0.6951 GB, free: 2.539 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.1603, allocations: 55.53 kB / 0.6951 GB, free: 2.473 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.418e-05/0.1604, allocations: 89.86 kB / 0.6952 GB, free: 2.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.1604, allocations: 25.7 kB / 0.6952 GB, free: 2.344 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/0.1605, allocations: 80.14 kB / 0.6953 GB, free: 2.262 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.599e-05/0.1605, allocations: 3.906 kB / 0.6953 GB, free: 2.258 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.1605, allocations: 13.72 kB / 0.6953 GB, free: 2.238 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1607, allocations: 314.8 kB / 0.6956 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.15e-05/0.1607, allocations: 7.922 kB / 0.6956 GB, free: 1.914 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.158e-06/0.1607, allocations: 8 kB / 0.6957 GB, free: 1.906 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.567e-05/0.1607, allocations: 8.797 kB / 0.6957 GB, free: 1.895 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1607, allocations: 4 kB / 0.6957 GB, free: 1.891 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.222e-05/0.1608, allocations: 29.7 kB / 0.6957 GB, free: 1.855 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1608, allocations: 4 kB / 0.6957 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1608, allocations: 3.938 kB / 0.6957 GB, free: 1.848 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1608, allocations: 0 / 0.6957 GB, free: 1.848 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.443e-05/0.1609, allocations: 4 kB / 0.6957 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.1609, allocations: 3.984 kB / 0.6957 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.159e-05/0.1609, allocations: 4.094 kB / 0.6957 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1609, allocations: 4 kB / 0.6957 GB, free: 1.832 MB / 494.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: 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 7.109e-05/0.161, allocations: 106.1 kB / 0.6958 GB, free: 1.719 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.296e-06/0.161, allocations: 4 kB / 0.6958 GB, free: 1.715 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.849e-05/0.1611, allocations: 48.69 kB / 0.6959 GB, free: 1.664 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1611, allocations: 3.938 kB / 0.6959 GB, free: 1.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1611, allocations: 4.031 kB / 0.6959 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-06/0.1611, allocations: 0 / 0.6959 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.1613, allocations: 145.6 kB / 0.696 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1613, allocations: 0 / 0.696 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.69e-05/0.1613, allocations: 4 kB / 0.696 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1613, allocations: 0 / 0.696 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.1613, allocations: 3.938 kB / 0.696 GB, free: 1.457 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1613, allocations: 3.984 kB / 0.696 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1613, allocations: 0 / 0.696 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.728e-05/0.1614, allocations: 61.14 kB / 0.6961 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.1615, allocations: 77.11 kB / 0.6962 GB, free: 1.281 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.1615, allocations: 7.875 kB / 0.6962 GB, free: 1.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.242e-05/0.1615, allocations: 3.984 kB / 0.6962 GB, free: 1.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.1615, allocations: 4 kB / 0.6962 GB, free: 1.266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.1615, allocations: 0 / 0.6962 GB, free: 1.266 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.304e-05/0.1615, allocations: 75.28 kB / 0.6962 GB, free: 1.191 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1616, allocations: 0 / 0.6962 GB, free: 1.191 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002004/0.1618, allocations: 16.03 kB / 0.6963 GB, free: 1.176 MB / 494.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: 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.0004174/0.1622, allocations: 0.5968 MB / 0.6968 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.197e-05/0.1623, allocations: 7.938 kB / 0.6968 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1623, allocations: 0 / 0.6968 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.987e-06/0.1623, allocations: 8.094 kB / 0.6969 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.1624, allocations: 1.719 kB / 0.6969 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002829/0.1627, allocations: 116.7 kB / 0.697 GB, free: 388 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.163, allocations: 0.669 MB / 0.6976 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.541e-05/0.1631, allocations: 4 kB / 0.6976 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.434e-05/0.1631, allocations: 11.5 kB / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of SimCode: time 1.91e-07/0.1631, allocations: 0 / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.185, allocations: 1.012 MB / 0.6986 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.39/7.575, allocations: 12.81 kB / 0.6986 GB, free: 14.73 MB / 0.4981 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)