Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_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.00094/0.0009401, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009743/0.0009743, allocations: 193.4 kB / 16.25 MB, free: 6.629 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.255/1.255, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002916/0.002916, allocations: 294.9 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.901/0.901, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 98.84 kB / 0.5948 GB, free: 28.37 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1661, allocations: 86.98 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002664/0.1688, allocations: 1.588 MB / 0.6813 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002839/0.1691, allocations: 109.6 kB / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.077e-05/0.1691, allocations: 0 / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.1692, allocations: 8.438 kB / 0.6814 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.517e-05/0.1693, allocations: 12.64 kB / 0.6814 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.1695, allocations: 27.97 kB / 0.6814 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.018e-05/0.1696, allocations: 56.41 kB / 0.6815 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.1697, allocations: 34.22 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.648e-05/0.1697, allocations: 19.92 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.701e-05/0.1698, allocations: 27.91 kB / 0.6816 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.657e-05/0.1698, allocations: 4 kB / 0.6816 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.345e-05/0.1699, allocations: 12 kB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.991e-05/0.1699, allocations: 19.91 kB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.31e-05/0.17, allocations: 27.86 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001098/0.1701, allocations: 55.75 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1701, allocations: 0 / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1701, allocations: 0 / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1701, allocations: 0 / 0.6817 GB, free: 14.97 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000483/0.1706, allocations: 383.3 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1707, allocations: 12.03 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.1707, allocations: 38.69 kB / 0.6821 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.672e-05/0.1707, allocations: 12.83 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.1709, allocations: 188.1 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.1709, allocations: 4.375 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.1709, allocations: 4.375 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002512/0.1712, allocations: 90.19 kB / 0.6824 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1712, allocations: 7.938 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.1712, allocations: 0 / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1712, allocations: 0 / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000276/0.1715, allocations: 83.84 kB / 0.6825 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000462/0.172, allocations: 324.7 kB / 0.6828 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.1721, allocations: 62.56 kB / 0.6828 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.1723, allocations: 44.91 kB / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.1723, allocations: 4 kB / 0.6829 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.623e-05/0.1724, allocations: 30.56 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.1724, allocations: 0 / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004997/0.1729, allocations: 141.5 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.1729, allocations: 51.41 kB / 0.6831 GB, free: 13.33 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.564e-05/0.173, allocations: 117.8 kB / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.173, allocations: 29.64 kB / 0.6832 GB, free: 13.17 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.838e-05/0.1731, allocations: 96.48 kB / 0.6833 GB, free: 13.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.1731, allocations: 7.906 kB / 0.6833 GB, free: 13.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.1731, allocations: 17.72 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.1732, allocations: 322.8 kB / 0.6837 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.1734, allocations: 35.97 kB / 0.6837 GB, free: 12.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.1735, allocations: 31.95 kB / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/0.1738, allocations: 80.72 kB / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1738, allocations: 0 / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003017/0.1741, allocations: 101.5 kB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.1741, allocations: 8 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1741, allocations: 0 / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.1741, allocations: 0 / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.1742, allocations: 23.92 kB / 0.6839 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1743, allocations: 0 / 0.6839 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.248e-05/0.1743, allocations: 11.98 kB / 0.6839 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.1744, allocations: 7.984 kB / 0.684 GB, free: 12.41 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 (3): * Single equations (assignments): 3 * 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.455e-05/0.1744, allocations: 114.4 kB / 0.6841 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.1745, allocations: 0 / 0.6841 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003408/0.1748, allocations: 125.4 kB / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1748, allocations: 0 / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1748, allocations: 384 / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1748, allocations: 0 / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000158/0.175, allocations: 181.6 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.175, allocations: 4 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.913e-05/0.1751, allocations: 15.92 kB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1751, allocations: 3.984 kB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.1751, allocations: 8 kB / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1751, allocations: 0 / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1751, allocations: 0 / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.1755, allocations: 203.3 kB / 0.6846 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.024e-05/0.1755, allocations: 81.02 kB / 0.6847 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1755, allocations: 4 kB / 0.6847 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1756, allocations: 19.97 kB / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.1757, allocations: 4 kB / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-06/0.1757, allocations: 0 / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.469e-05/0.1757, allocations: 91.27 kB / 0.6848 GB, free: 11.47 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1757, allocations: 0 / 0.6848 GB, free: 11.47 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.176, allocations: 11.94 kB / 0.6848 GB, free: 11.46 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 (3): * Single equations (assignments): 3 * 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.0006091/0.1766, allocations: 0.7397 MB / 0.6855 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003032/0.1769, allocations: 87.84 kB / 0.6856 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.1769, allocations: 0 / 0.6856 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.1771, allocations: 39.91 kB / 0.6856 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.1773, allocations: 7.984 kB / 0.6856 GB, free: 10.56 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.1789, allocations: 1.428 MB / 0.687 GB, free: 9.051 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/0.1791, allocations: 0.6923 MB / 0.6877 GB, free: 8.332 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.964e-05/0.1792, allocations: 11.98 kB / 0.6877 GB, free: 8.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.1792, allocations: 19.44 kB / 0.6877 GB, free: 8.301 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1792, allocations: 0 / 0.6877 GB, free: 8.301 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01063/0.1899, allocations: 1.617 MB / 0.6893 GB, free: 6.805 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002121/0.1901, allocations: 202.3 kB / 0.6895 GB, free: 6.547 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/1.836, allocations: 0 / 0.6895 GB, free: 6.547 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)