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.0009129/0.0009126, allocations: 90.44 kB / 15.36 MB, free: 0.7383 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.00641/0.00641, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.395/1.395, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001906/0.001906, allocations: 266.9 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9357/0.9357, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004516/0.0004516, allocations: 14.81 kB / 0.5988 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1746, allocations: 88.55 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Polynomial): time 0.001499/0.1762, allocations: 1.153 MB / 0.6864 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002938/0.1765, allocations: 98.19 kB / 0.6865 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.152e-05/0.1765, allocations: 0 / 0.6865 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.545e-05/0.1766, allocations: 3.938 kB / 0.6865 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.102e-05/0.1766, allocations: 1.156 kB / 0.6865 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001734/0.1768, allocations: 15.98 kB / 0.6865 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.772e-05/0.1769, allocations: 19.94 kB / 0.6865 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.212e-05/0.1769, allocations: 9.891 kB / 0.6865 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.329e-05/0.177, allocations: 7.938 kB / 0.6865 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.78e-05/0.177, allocations: 7.984 kB / 0.6865 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.327e-06/0.177, allocations: 4 kB / 0.6865 GB, free: 13.63 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.754e-05/0.1771, allocations: 22.45 kB / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.424e-05/0.1772, allocations: 7.922 kB / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.45e-05/0.1772, allocations: 41.62 kB / 0.6866 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.268e-05/0.1773, allocations: 28.23 kB / 0.6866 GB, free: 13.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1773, allocations: 7.938 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1773, allocations: 0 / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.096e-06/0.1773, allocations: 0 / 0.6866 GB, free: 13.52 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.0003657/0.1777, allocations: 350.5 kB / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.1777, allocations: 8.031 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.811e-05/0.1778, allocations: 34.75 kB / 0.687 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.911e-05/0.1778, allocations: 0.9375 kB / 0.687 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.598e-05/0.1779, allocations: 164.4 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.1779, allocations: 1.125 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.1779, allocations: 2.094 kB / 0.6872 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.1781, allocations: 58.17 kB / 0.6872 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1781, allocations: 8.562 kB / 0.6872 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.1781, allocations: 4 kB / 0.6872 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1781, allocations: 0.5938 kB / 0.6872 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.1783, allocations: 54.62 kB / 0.6873 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002754/0.1786, allocations: 254.7 kB / 0.6875 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.1788, allocations: 51.16 kB / 0.6876 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.372e-05/0.1789, allocations: 34.39 kB / 0.6876 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.1789, allocations: 1.406 kB / 0.6876 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.1789, allocations: 30.56 kB / 0.6876 GB, free: 12.33 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.1789, allocations: 0.6562 kB / 0.6876 GB, free: 12.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003604/0.1793, allocations: 105.6 kB / 0.6877 GB, free: 12.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.1793, allocations: 51.41 kB / 0.6878 GB, free: 12.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.905e-05/0.1794, allocations: 110 kB / 0.6879 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.1794, allocations: 25.7 kB / 0.6879 GB, free: 12.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.537e-05/0.1795, allocations: 92.08 kB / 0.688 GB, free: 11.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.1795, allocations: 7.891 kB / 0.688 GB, free: 11.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.107e-05/0.1795, allocations: 9.719 kB / 0.688 GB, free: 11.89 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.1796, allocations: 322.8 kB / 0.6883 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.501e-05/0.1797, allocations: 19.98 kB / 0.6883 GB, free: 11.55 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.93e-05/0.1798, allocations: 27.98 kB / 0.6884 GB, free: 11.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.18, allocations: 56.88 kB / 0.6884 GB, free: 11.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.18, allocations: 3.938 kB / 0.6884 GB, free: 11.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002/0.1802, allocations: 77.66 kB / 0.6885 GB, free: 11.38 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.1802, allocations: 4 kB / 0.6885 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.1802, allocations: 3.938 kB / 0.6885 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.1802, allocations: 32 / 0.6885 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.324e-05/0.1803, allocations: 19.98 kB / 0.6885 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1803, allocations: 3.938 kB / 0.6885 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.57e-05/0.1804, allocations: 4 kB / 0.6885 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.1804, allocations: 0 / 0.6885 GB, free: 11.34 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 (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.101e-05/0.1805, allocations: 122.4 kB / 0.6887 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.1805, allocations: 4.156 kB / 0.6887 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002307/0.1807, allocations: 89.19 kB / 0.6887 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1807, allocations: 0 / 0.6887 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1808, allocations: 7.938 kB / 0.6888 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1808, allocations: 0 / 0.6888 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001449/0.1809, allocations: 165.6 kB / 0.6889 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1809, allocations: 4.031 kB / 0.6889 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.786e-05/0.181, allocations: 11.98 kB / 0.6889 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.181, allocations: 0 / 0.6889 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-06/0.181, allocations: 4 kB / 0.6889 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.181, allocations: 0 / 0.6889 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.181, allocations: 3.938 kB / 0.6889 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002363/0.1813, allocations: 179.5 kB / 0.6891 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.899e-05/0.1813, allocations: 77.11 kB / 0.6892 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.03e-05/0.1813, allocations: 0 / 0.6892 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.837e-05/0.1814, allocations: 11.98 kB / 0.6892 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.081e-05/0.1814, allocations: 4.031 kB / 0.6892 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.1814, allocations: 0 / 0.6892 GB, free: 10.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.945e-05/0.1815, allocations: 91.27 kB / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1815, allocations: 0 / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.1817, allocations: 8 kB / 0.6893 GB, free: 10.47 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 (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.0004803/0.1822, allocations: 0.7201 MB / 0.69 GB, free: 9.727 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002004/0.1824, allocations: 55.98 kB / 0.69 GB, free: 9.672 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.1824, allocations: 0 / 0.69 GB, free: 9.672 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.771e-05/0.1825, allocations: 23.98 kB / 0.6901 GB, free: 9.648 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.1828, allocations: 2.109 kB / 0.6901 GB, free: 9.648 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000364/0.1831, allocations: 166.3 kB / 0.6902 GB, free: 9.449 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.1833, allocations: 0.677 MB / 0.6909 GB, free: 8.746 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.253e-05/0.1834, allocations: 7.984 kB / 0.6909 GB, free: 8.738 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.1834, allocations: 7.438 kB / 0.6909 GB, free: 8.73 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1834, allocations: 0 / 0.6909 GB, free: 8.73 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01/0.1934, allocations: 1.179 MB / 0.6921 GB, free: 7.68 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.1936, allocations: 207.9 kB / 0.6923 GB, free: 7.418 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/2.051, allocations: 0 / 0.6923 GB, free: 7.418 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Polynomial.pipe 2>&1)