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.001324/0.001324, 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.001374/0.001374, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002464/0.002464, allocations: 287.1 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.056/1.056, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002625/0.002625, allocations: 101.9 kB / 0.6065 GB, free: 24.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1699, allocations: 89.15 MB / 0.6936 GB, free: 4.242 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.002823/0.1728, allocations: 1.428 MB / 0.695 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003006/0.1731, allocations: 99.25 kB / 0.6951 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.448e-05/0.1732, allocations: 0 / 0.6951 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.535e-05/0.1732, allocations: 1.344 kB / 0.6951 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.949e-05/0.1733, allocations: 3.938 kB / 0.6951 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.1735, allocations: 22.92 kB / 0.6951 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.1e-05/0.1736, allocations: 19.98 kB / 0.6951 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.071e-05/0.1736, allocations: 4 kB / 0.6951 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.897e-05/0.1737, allocations: 15.92 kB / 0.6952 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.691e-05/0.1737, allocations: 11.98 kB / 0.6952 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.019e-05/0.1738, allocations: 0 / 0.6952 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.191e-05/0.1738, allocations: 27.92 kB / 0.6952 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.473e-05/0.1739, allocations: 11.92 kB / 0.6952 GB, free: 2.598 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.429e-05/0.1739, allocations: 11.94 kB / 0.6952 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.174, allocations: 31.89 kB / 0.6952 GB, free: 2.555 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.174, allocations: 4 kB / 0.6953 GB, free: 2.551 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.174, allocations: 0 / 0.6953 GB, free: 2.551 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.1741, allocations: 0 / 0.6953 GB, free: 2.551 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004826/0.1745, allocations: 347.6 kB / 0.6956 GB, free: 2.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1746, allocations: 12.02 kB / 0.6956 GB, free: 2.148 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.1746, allocations: 30.75 kB / 0.6956 GB, free: 2.109 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.14e-05/0.1747, allocations: 4.938 kB / 0.6956 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.1748, allocations: 168.3 kB / 0.6958 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1748, allocations: 4.375 kB / 0.6958 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.291e-06/0.1748, allocations: 384 / 0.6958 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.175, allocations: 62.16 kB / 0.6959 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.175, allocations: 3.938 kB / 0.6959 GB, free: 1.828 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.175, allocations: 0 / 0.6959 GB, free: 1.828 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.175, allocations: 0 / 0.6959 GB, free: 1.828 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.1752, allocations: 39.95 kB / 0.6959 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003249/0.1755, allocations: 253 kB / 0.6961 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.1757, allocations: 46.44 kB / 0.6962 GB, free: 1.438 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.025e-05/0.1758, allocations: 24.91 kB / 0.6962 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.1758, allocations: 11.98 kB / 0.6962 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1759, allocations: 30.56 kB / 0.6962 GB, free: 1.359 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1759, allocations: 0 / 0.6962 GB, free: 1.359 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.00036/0.1762, allocations: 85.64 kB / 0.6963 GB, free: 1.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.1763, allocations: 51.41 kB / 0.6964 GB, free: 1.207 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.1764, allocations: 114 kB / 0.6965 GB, free: 1.086 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.1764, allocations: 25.7 kB / 0.6965 GB, free: 1.055 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.352e-05/0.1765, allocations: 91.98 kB / 0.6966 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.1765, allocations: 7.938 kB / 0.6966 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/0.1765, allocations: 13.72 kB / 0.6966 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1766, allocations: 314.8 kB / 0.6969 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.258e-05/0.1767, allocations: 19.98 kB / 0.6969 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.639e-05/0.1768, allocations: 19.98 kB / 0.697 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.177, allocations: 40.81 kB / 0.697 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.177, allocations: 3.938 kB / 0.697 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002054/0.1772, allocations: 77.56 kB / 0.6971 GB, free: 460 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1772, allocations: 7.938 kB / 0.6971 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.1772, allocations: 96 / 0.6971 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.1772, allocations: 4 kB / 0.6971 GB, free: 448 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.181e-05/0.1773, allocations: 11.94 kB / 0.6971 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1773, allocations: 0 / 0.6971 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.668e-05/0.1774, allocations: 7.984 kB / 0.6971 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.1774, allocations: 0 / 0.6971 GB, free: 428 kB / 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 (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 8.561e-05/0.1775, allocations: 114.4 kB / 0.6972 GB, free: 304 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.22e-05/0.1775, allocations: 0 / 0.6972 GB, free: 304 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002337/0.1778, allocations: 81.17 kB / 0.6973 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1778, allocations: 0 / 0.6973 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1778, allocations: 3.938 kB / 0.6973 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1778, allocations: 4 kB / 0.6973 GB, free: 208 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.178, allocations: 161.8 kB / 0.6974 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.178, allocations: 0 / 0.6974 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.491e-05/0.1781, allocations: 8 kB / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1781, allocations: 0 / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.1781, allocations: 4 kB / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1781, allocations: 11.95 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1781, allocations: 0 / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.1783, allocations: 167.4 kB / 0.6976 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.419e-05/0.1784, allocations: 77.11 kB / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.1784, allocations: 4 kB / 0.6977 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.518e-05/0.1785, allocations: 12.02 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.1785, allocations: 4 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.1785, allocations: 0 / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.013e-05/0.1786, allocations: 83.53 kB / 0.6978 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1786, allocations: 0 / 0.6978 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002243/0.1788, allocations: 16 kB / 0.6978 GB, free: 15.58 MB / 0.4981 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.0005917/0.1794, allocations: 0.7085 MB / 0.6985 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000209/0.1796, allocations: 39.95 kB / 0.6985 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1797, allocations: 0 / 0.6985 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.565e-05/0.1797, allocations: 20.08 kB / 0.6986 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.18, allocations: 8.062 kB / 0.6986 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004565/0.1805, allocations: 155 kB / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.1808, allocations: 0.6846 MB / 0.6994 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.245e-05/0.1809, allocations: 3.984 kB / 0.6994 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.982e-05/0.1809, allocations: 7.438 kB / 0.6994 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1809, allocations: 0 / 0.6994 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02152/0.2024, allocations: 1.407 MB / 0.7008 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.305/7.508, allocations: 6.531 kB / 0.7008 GB, free: 12.52 MB / 0.4981 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)