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: translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001347/0.001347, allocations: 191.3 kB / 16.25 MB, free: 6.152 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.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002619/0.002619, allocations: 279.1 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.096/1.096, allocations: 178.6 MB / 0.5069 GB, free: 4.738 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002969/0.002969, allocations: 99.83 kB / 0.6059 GB, free: 25.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1689, allocations: 89.15 MB / 0.693 GB, free: 4.695 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002806/0.1718, allocations: 1.608 MB / 0.6945 GB, free: 3.082 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002976/0.1721, allocations: 113.1 kB / 0.6946 GB, free: 2.969 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.001e-05/0.1722, allocations: 0 / 0.6946 GB, free: 2.969 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.1723, allocations: 8.891 kB / 0.6947 GB, free: 2.961 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.851e-05/0.1723, allocations: 7.312 kB / 0.6947 GB, free: 2.957 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000202/0.1725, allocations: 23.97 kB / 0.6947 GB, free: 2.934 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.938e-05/0.1726, allocations: 55.84 kB / 0.6947 GB, free: 2.879 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1728, allocations: 19.94 kB / 0.6948 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.768e-05/0.1728, allocations: 36.67 kB / 0.6948 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.93e-05/0.1729, allocations: 23.92 kB / 0.6948 GB, free: 2.801 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.1729, allocations: 5.719 kB / 0.6948 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.469e-05/0.173, allocations: 11.98 kB / 0.6948 GB, free: 2.785 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.534e-05/0.173, allocations: 19.92 kB / 0.6949 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.1731, allocations: 19.88 kB / 0.6949 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.1732, allocations: 68.06 kB / 0.6949 GB, free: 2.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1732, allocations: 0 / 0.6949 GB, free: 2.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1732, allocations: 0 / 0.6949 GB, free: 2.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1732, allocations: 0 / 0.6949 GB, free: 2.68 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.0005387/0.1738, allocations: 375.3 kB / 0.6953 GB, free: 2.262 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1738, allocations: 12.02 kB / 0.6953 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.374e-05/0.1739, allocations: 8.844 kB / 0.6953 GB, free: 2.242 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.1741, allocations: 184.2 kB / 0.6955 GB, free: 2.023 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.1741, allocations: 12.38 kB / 0.6955 GB, free: 2.012 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.1741, allocations: 384 / 0.6955 GB, free: 2.012 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.1744, allocations: 90.14 kB / 0.6956 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.1744, allocations: 192 / 0.6956 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.1744, allocations: 3.938 kB / 0.6956 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.1744, allocations: 0 / 0.6956 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003151/0.1748, allocations: 87.91 kB / 0.6957 GB, free: 1.828 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005553/0.1753, allocations: 324.6 kB / 0.696 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.1755, allocations: 62.53 kB / 0.696 GB, free: 1.391 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.1757, allocations: 40.91 kB / 0.6961 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.1757, allocations: 0 / 0.6961 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.1758, allocations: 34.59 kB / 0.6961 GB, free: 1.305 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.1758, allocations: 0 / 0.6961 GB, free: 1.305 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005595/0.1764, allocations: 137.6 kB / 0.6962 GB, free: 1.164 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.1764, allocations: 59.34 kB / 0.6963 GB, free: 1.094 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.1765, allocations: 113.8 kB / 0.6964 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.1765, allocations: 25.7 kB / 0.6964 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.1766, allocations: 99.97 kB / 0.6965 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.1766, allocations: 7.906 kB / 0.6965 GB, free: 0.832 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.09e-05/0.1767, allocations: 17.72 kB / 0.6966 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1768, allocations: 318.8 kB / 0.6969 GB, free: 500 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.177, allocations: 31.97 kB / 0.6969 GB, free: 468 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.1771, allocations: 39.95 kB / 0.6969 GB, free: 428 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.1774, allocations: 76.72 kB / 0.697 GB, free: 348 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1774, allocations: 0 / 0.697 GB, free: 348 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000339/0.1778, allocations: 109.7 kB / 0.6971 GB, free: 232 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.1778, allocations: 5.875 kB / 0.6971 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.1778, allocations: 0 / 0.6971 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.1778, allocations: 4.047 kB / 0.6971 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.1779, allocations: 19.97 kB / 0.6971 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.178, allocations: 0 / 0.6971 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.608e-05/0.1781, allocations: 15.97 kB / 0.6972 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.1781, allocations: 4 kB / 0.6972 GB, free: 184 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 (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 9.529e-05/0.1782, allocations: 114.4 kB / 0.6973 GB, free: 60 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.1782, allocations: 4 kB / 0.6973 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000402/0.1786, allocations: 121.4 kB / 0.6974 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.1786, allocations: 4 kB / 0.6974 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1787, allocations: 0 / 0.6974 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1787, allocations: 0 / 0.6974 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.1789, allocations: 185.5 kB / 0.6976 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1789, allocations: 0 / 0.6976 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.179, allocations: 19.98 kB / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.179, allocations: 0 / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.179, allocations: 4 kB / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.179, allocations: 0 / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.179, allocations: 0 / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003881/0.1794, allocations: 207.3 kB / 0.6978 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.804e-05/0.1795, allocations: 88.95 kB / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.1795, allocations: 0 / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.1796, allocations: 11.97 kB / 0.6979 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.973e-05/0.1797, allocations: 8 kB / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.1797, allocations: 0 / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.753e-05/0.1797, allocations: 91.27 kB / 0.698 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1797, allocations: 4 kB / 0.698 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002341/0.18, allocations: 8 kB / 0.698 GB, free: 15.22 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 (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.0001435/0.1801, allocations: 109.3 kB / 0.6981 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000355/0.1805, allocations: 87.78 kB / 0.6982 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1805, allocations: 3.938 kB / 0.6982 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.1807, allocations: 43.95 kB / 0.6982 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.181, allocations: 8 kB / 0.6982 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003408/0.1813, allocations: 157.6 kB / 0.6984 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003329/0.1817, allocations: 0.6885 MB / 0.6991 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.382e-05/0.1817, allocations: 11.98 kB / 0.6991 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.75e-05/0.1817, allocations: 7.438 kB / 0.6991 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1818, allocations: 0 / 0.6991 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of Templates: time 0.003094/0.1849, allocations: 0.6628 MB / 0.6997 GB, free: 13.4 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)