Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.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.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001312/0.001312, allocations: 189.8 kB / 16.13 MB, free: 6.637 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.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00258/0.00258, allocations: 278 kB / 290.2 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.097/1.097, allocations: 178.6 MB / 0.5068 GB, free: 4.773 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002764/0.002764, allocations: 100.2 kB / 0.6057 GB, free: 25.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1694, allocations: 89.15 MB / 0.6928 GB, free: 4.848 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.003089/0.1725, allocations: 1.796 MB / 0.6945 GB, free: 3.051 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.1742, allocations: 1.055 MB / 0.6956 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.042e-05/0.1743, allocations: 0 / 0.6956 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.485e-05/0.1744, allocations: 3.938 kB / 0.6956 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.1745, allocations: 23.78 kB / 0.6956 GB, free: 1.965 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.1749, allocations: 135.6 kB / 0.6957 GB, free: 1.832 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.175, allocations: 95.47 kB / 0.6958 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.1751, allocations: 20.5 kB / 0.6958 GB, free: 1.715 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.558e-05/0.1752, allocations: 31.86 kB / 0.6959 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.024e-05/0.1753, allocations: 39.84 kB / 0.6959 GB, free: 1.645 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.1753, allocations: 4 kB / 0.6959 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.1757, allocations: 187.8 kB / 0.6961 GB, free: 1.457 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.493e-05/0.1757, allocations: 19.92 kB / 0.6961 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.259e-05/0.1758, allocations: 39.78 kB / 0.6961 GB, free: 1.398 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.1761, allocations: 199.5 kB / 0.6963 GB, free: 1.203 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1761, allocations: 3.938 kB / 0.6963 GB, free: 1.199 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.12e-07/0.1761, allocations: 0 / 0.6963 GB, free: 1.199 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.1761, allocations: 0 / 0.6963 GB, free: 1.199 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005829/0.1767, allocations: 428.4 kB / 0.6967 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.1767, allocations: 8.031 kB / 0.6967 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.1768, allocations: 8.844 kB / 0.6968 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001999/0.177, allocations: 188.1 kB / 0.6969 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.285e-06/0.177, allocations: 4.375 kB / 0.6969 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.177, allocations: 4.375 kB / 0.6969 GB, free: 500 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.1772, allocations: 73.97 kB / 0.697 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1772, allocations: 0 / 0.697 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.1772, allocations: 8 kB / 0.697 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1772, allocations: 0 / 0.697 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.1774, allocations: 51.91 kB / 0.6971 GB, free: 360 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005827/0.178, allocations: 395.9 kB / 0.6974 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.1781, allocations: 46.55 kB / 0.6975 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.692e-05/0.1782, allocations: 32.88 kB / 0.6975 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.1783, allocations: 81.11 kB / 0.6976 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.1784, allocations: 34.56 kB / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1784, allocations: 0 / 0.6976 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0002925/0.1787, allocations: 85.56 kB / 0.6977 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.1787, allocations: 51.41 kB / 0.6978 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.1789, allocations: 139.8 kB / 0.6979 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.1789, allocations: 29.7 kB / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.194e-05/0.179, allocations: 104 kB / 0.698 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/0.179, allocations: 11.84 kB / 0.698 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/0.179, allocations: 13.72 kB / 0.698 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1792, allocations: 318.8 kB / 0.6984 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.058e-05/0.1792, allocations: 19.92 kB / 0.6984 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.805e-05/0.1793, allocations: 12 kB / 0.6984 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.1794, allocations: 36.84 kB / 0.6984 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1794, allocations: 4 kB / 0.6984 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001564/0.1796, allocations: 73.58 kB / 0.6985 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.1796, allocations: 4 kB / 0.6985 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1796, allocations: 0 / 0.6985 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.1796, allocations: 0 / 0.6985 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.1797, allocations: 11.98 kB / 0.6985 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1797, allocations: 0 / 0.6985 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.303e-05/0.1798, allocations: 3.938 kB / 0.6985 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.1798, allocations: 15.92 kB / 0.6985 GB, free: 14.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.729e-05/0.1799, allocations: 114.5 kB / 0.6986 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.18, allocations: 3.906 kB / 0.6986 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002197/0.1802, allocations: 85.91 kB / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1802, allocations: 0 / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1802, allocations: 4 kB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1802, allocations: 4.047 kB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/0.1804, allocations: 189.6 kB / 0.6989 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1804, allocations: 4 kB / 0.6989 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.75e-05/0.1805, allocations: 11.98 kB / 0.6989 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1805, allocations: 0 / 0.6989 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.1805, allocations: 0 / 0.6989 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1806, allocations: 3.938 kB / 0.6989 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1806, allocations: 3.938 kB / 0.6989 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/0.1808, allocations: 171.8 kB / 0.6991 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.598e-05/0.1809, allocations: 93 kB / 0.6992 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.1809, allocations: 4.047 kB / 0.6992 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.012e-05/0.181, allocations: 7.984 kB / 0.6992 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.181, allocations: 3.938 kB / 0.6992 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.181, allocations: 0 / 0.6992 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.866e-05/0.1811, allocations: 109 kB / 0.6993 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1811, allocations: 0 / 0.6993 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003141/0.1814, allocations: 67.88 kB / 0.6994 GB, free: 13.73 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 (4): * Single equations (assignments): 4 * 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.0002669/0.1817, allocations: 159.1 kB / 0.6995 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001639/0.1819, allocations: 43.91 kB / 0.6996 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1819, allocations: 0 / 0.6996 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.963e-05/0.182, allocations: 23.98 kB / 0.6996 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.1823, allocations: 15.94 kB / 0.6996 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00042/0.1827, allocations: 244.5 kB / 0.6998 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.1831, allocations: 0.6907 MB / 0.7005 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.081e-05/0.1831, allocations: 12 kB / 0.7005 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.575e-05/0.1831, allocations: 7.438 kB / 0.7005 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1831, allocations: 4 kB / 0.7005 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of Templates: time 0.004668/0.1878, allocations: 1.706 MB / 0.7022 GB, free: 10.78 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.makefile (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & ./BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)