Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-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(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",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.001122/0.001122, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001323/0.001323, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.037/1.037, allocations: 143.3 MB / 434.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003184/0.0003184, allocations: 8 kB / 0.5159 GB, free: 11.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1697, allocations: 83.43 MB / 0.5974 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Average): time 0.002245/0.172, allocations: 1.237 MB / 0.5986 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000353/0.1724, allocations: 112.5 kB / 0.5987 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.412e-05/0.1725, allocations: 0 / 0.5987 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.1726, allocations: 7.922 kB / 0.5987 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.524e-05/0.1727, allocations: 7.984 kB / 0.5987 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.1729, allocations: 19.97 kB / 0.5987 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.834e-05/0.173, allocations: 31.97 kB / 0.5987 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.1731, allocations: 19.98 kB / 0.5988 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.188e-05/0.1732, allocations: 23.91 kB / 0.5988 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.116e-05/0.1733, allocations: 27.84 kB / 0.5988 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.1733, allocations: 0 / 0.5988 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.299e-05/0.1733, allocations: 8 kB / 0.5988 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.1734, allocations: 7.984 kB / 0.5988 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.385e-05/0.1734, allocations: 37.64 kB / 0.5989 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.955e-05/0.1735, allocations: 39.86 kB / 0.5989 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.1735, allocations: 4 kB / 0.5989 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.176e-06/0.1735, allocations: 3.984 kB / 0.5989 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.1735, allocations: 0 / 0.5989 GB, free: 6.098 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005292/0.1741, allocations: 379.4 kB / 0.5993 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1741, allocations: 8.031 kB / 0.5993 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.544e-05/0.1742, allocations: 50.55 kB / 0.5993 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.1742, allocations: 11.86 kB / 0.5993 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.1744, allocations: 171 kB / 0.5995 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.1744, allocations: 8 kB / 0.5995 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.1744, allocations: 7.938 kB / 0.5995 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.1747, allocations: 93.64 kB / 0.5996 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1747, allocations: 4 kB / 0.5996 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.1748, allocations: 0 / 0.5996 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1748, allocations: 3.938 kB / 0.5996 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.1751, allocations: 107.9 kB / 0.5997 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005205/0.1756, allocations: 332.7 kB / 0.6 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002024/0.1758, allocations: 78.47 kB / 0.6001 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.1759, allocations: 0 / 0.6001 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1759, allocations: 42.55 kB / 0.6001 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 8.02e-07/0.1759, allocations: 0 / 0.6001 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0005869/0.1765, allocations: 165.7 kB / 0.6003 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.1766, allocations: 59.39 kB / 0.6004 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.081e-05/0.1766, allocations: 113.8 kB / 0.6005 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1767, allocations: 29.7 kB / 0.6005 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.126e-05/0.1767, allocations: 91.98 kB / 0.6006 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.1768, allocations: 11.89 kB / 0.6006 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-06/0.1768, allocations: 0 / 0.6006 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002122/0.177, allocations: 314.8 kB / 0.6009 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.1772, allocations: 47.95 kB / 0.6009 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.1773, allocations: 39.97 kB / 0.601 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.1775, allocations: 51.89 kB / 0.601 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1775, allocations: 4 kB / 0.601 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003442/0.1778, allocations: 129.5 kB / 0.6012 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1778, allocations: 7.953 kB / 0.6012 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1779, allocations: 0 / 0.6012 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.1779, allocations: 4 kB / 0.6012 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.178, allocations: 20.31 kB / 0.6012 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.178, allocations: 4 kB / 0.6012 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.981e-05/0.1781, allocations: 15.98 kB / 0.6012 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.1781, allocations: 0 / 0.6012 GB, free: 3.516 MB / 0.4981 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.827e-05/0.1782, allocations: 121.8 kB / 0.6013 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.1782, allocations: 3.906 kB / 0.6013 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.1786, allocations: 145.4 kB / 0.6015 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1786, allocations: 0 / 0.6015 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1786, allocations: 0 / 0.6015 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1787, allocations: 3.984 kB / 0.6015 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.1788, allocations: 169.7 kB / 0.6016 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1788, allocations: 7.984 kB / 0.6016 GB, free: 3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.929e-05/0.1789, allocations: 23.92 kB / 0.6017 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.179, allocations: 4 kB / 0.6017 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.179, allocations: 4 kB / 0.6017 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.179, allocations: 3.953 kB / 0.6017 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.179, allocations: 0 / 0.6017 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003698/0.1794, allocations: 219.4 kB / 0.6019 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.761e-05/0.1794, allocations: 84.95 kB / 0.602 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.1794, allocations: 4 kB / 0.602 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1796, allocations: 23.98 kB / 0.602 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.203e-05/0.1796, allocations: 11.94 kB / 0.602 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.1796, allocations: 0 / 0.602 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.99e-05/0.1797, allocations: 91.27 kB / 0.6021 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1797, allocations: 0 / 0.6021 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000229/0.1799, allocations: 11.94 kB / 0.6021 GB, free: 2.492 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006931/0.1806, allocations: 0.7631 MB / 0.6028 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004348/0.1811, allocations: 99.84 kB / 0.6029 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1811, allocations: 0 / 0.6029 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.1812, allocations: 47.97 kB / 0.603 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.1815, allocations: 12.72 kB / 0.603 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.1825, allocations: 0.5653 MB / 0.6035 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.1828, allocations: 0.6965 MB / 0.6042 GB, free: 216 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.531e-05/0.1829, allocations: 7.906 kB / 0.6042 GB, free: 208 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.021e-05/0.1829, allocations: 19.42 kB / 0.6043 GB, free: 188 kB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1829, allocations: 0 / 0.6043 GB, free: 188 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2674/0.4504, allocations: 1.47 MB / 0.6057 GB, free: 40.06 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.4506, allocations: 174.4 kB / 0.6059 GB, free: 39.83 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.202, allocations: 1.062 kB / 0.6059 GB, free: 39.83 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe 2>&1) Environment - environmentSimulation: