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.001773/0.001773, 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.001997/0.001997, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.453/1.453, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0025/0.0025, allocations: 282.9 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.069/1.069, allocations: 178.6 MB / 0.507 GB, free: 4.684 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003127/0.003127, allocations: 98.81 kB / 0.6059 GB, free: 25.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1786, allocations: 89.15 MB / 0.693 GB, free: 4.68 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.003098/0.1817, allocations: 1.795 MB / 0.6947 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.1834, allocations: 1.02 MB / 0.6957 GB, free: 1.855 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.356e-05/0.1834, allocations: 0 / 0.6957 GB, free: 1.855 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.359e-05/0.1835, allocations: 11.92 kB / 0.6957 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.1837, allocations: 23.78 kB / 0.6957 GB, free: 1.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004695/0.1841, allocations: 147.6 kB / 0.6959 GB, free: 1.676 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.1843, allocations: 99.47 kB / 0.696 GB, free: 1.578 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.1844, allocations: 32.42 kB / 0.696 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.509e-05/0.1845, allocations: 39.86 kB / 0.696 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.513e-05/0.1846, allocations: 39.84 kB / 0.6961 GB, free: 1.465 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.1847, allocations: 8 kB / 0.6961 GB, free: 1.457 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003123/0.185, allocations: 179.8 kB / 0.6963 GB, free: 1.281 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.273e-05/0.185, allocations: 19.92 kB / 0.6963 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.79e-05/0.1851, allocations: 47.8 kB / 0.6963 GB, free: 1.215 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003042/0.1854, allocations: 199.5 kB / 0.6965 GB, free: 1.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1854, allocations: 4 kB / 0.6965 GB, free: 1.016 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1854, allocations: 0 / 0.6965 GB, free: 1.016 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1854, allocations: 0 / 0.6965 GB, free: 1.016 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.0005924/0.186, allocations: 419 kB / 0.6969 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.1861, allocations: 11.97 kB / 0.6969 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.192e-05/0.1861, allocations: 8.844 kB / 0.6969 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.1863, allocations: 192.1 kB / 0.6971 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1864, allocations: 4.375 kB / 0.6971 GB, free: 316 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1864, allocations: 4.375 kB / 0.6971 GB, free: 312 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001901/0.1866, allocations: 77.97 kB / 0.6972 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.1866, allocations: 4 kB / 0.6972 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.1866, allocations: 0 / 0.6972 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1866, allocations: 0 / 0.6972 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.1868, allocations: 47.91 kB / 0.6973 GB, free: 176 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006171/0.1874, allocations: 392 kB / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.1875, allocations: 50.5 kB / 0.6977 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.052e-05/0.1876, allocations: 20.94 kB / 0.6977 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.1877, allocations: 85.11 kB / 0.6978 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.1878, allocations: 38.5 kB / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.1878, allocations: 0 / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003042/0.1881, allocations: 81.56 kB / 0.6979 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.1882, allocations: 59.41 kB / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.1883, allocations: 140.3 kB / 0.6981 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.1883, allocations: 25.7 kB / 0.6981 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.409e-05/0.1884, allocations: 111.9 kB / 0.6982 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.1884, allocations: 3.906 kB / 0.6982 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.1885, allocations: 17.72 kB / 0.6982 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.1887, allocations: 318.8 kB / 0.6985 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.847e-05/0.1887, allocations: 19.98 kB / 0.6986 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.474e-05/0.1888, allocations: 12 kB / 0.6986 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.1889, allocations: 36.84 kB / 0.6986 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1889, allocations: 0 / 0.6986 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001567/0.1891, allocations: 69.86 kB / 0.6987 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1891, allocations: 4 kB / 0.6987 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1891, allocations: 48 / 0.6987 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1891, allocations: 3.984 kB / 0.6987 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.1892, allocations: 15.92 kB / 0.6987 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1892, allocations: 4 kB / 0.6987 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.39e-05/0.1893, allocations: 7.938 kB / 0.6987 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.1893, allocations: 4 kB / 0.6987 GB, free: 14.52 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 9.822e-05/0.1894, allocations: 118.5 kB / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.1895, allocations: 7.906 kB / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002302/0.1897, allocations: 89.89 kB / 0.6989 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1897, allocations: 112 / 0.6989 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1897, allocations: 7.938 kB / 0.6989 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.1897, allocations: 3.938 kB / 0.6989 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002178/0.19, allocations: 181.6 kB / 0.6991 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.19, allocations: 0 / 0.6991 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.046e-05/0.1901, allocations: 15.92 kB / 0.6991 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.1901, allocations: 0 / 0.6991 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.1901, allocations: 4 kB / 0.6991 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.1901, allocations: 0 / 0.6991 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1901, allocations: 0 / 0.6991 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.1903, allocations: 179.4 kB / 0.6993 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.298e-05/0.1904, allocations: 81.02 kB / 0.6994 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.1904, allocations: 7.984 kB / 0.6994 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.473e-05/0.1905, allocations: 3.938 kB / 0.6994 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.1905, allocations: 3.938 kB / 0.6994 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.1905, allocations: 4 kB / 0.6994 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.976e-05/0.1906, allocations: 109.5 kB / 0.6995 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1906, allocations: 0 / 0.6995 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003399/0.191, allocations: 67.88 kB / 0.6996 GB, free: 13.55 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.0002937/0.1913, allocations: 163.1 kB / 0.6997 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001661/0.1915, allocations: 39.97 kB / 0.6998 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1915, allocations: 0 / 0.6998 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.375e-05/0.1915, allocations: 23.98 kB / 0.6998 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.1919, allocations: 11.95 kB / 0.6998 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004195/0.1923, allocations: 246.8 kB / 0.7 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.1926, allocations: 0.6963 MB / 0.7007 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.605e-05/0.1927, allocations: 4 kB / 0.7007 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.08e-05/0.1927, allocations: 15.44 kB / 0.7007 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of SimCode: time 1.954e-06/0.1927, allocations: 0 / 0.7007 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of Templates: time 0.005129/0.1979, allocations: 1.757 MB / 0.7024 GB, free: 10.55 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)