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.001391/0.001391, 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.001103/0.001103, allocations: 194.9 kB / 16.14 MB, free: 6.66 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.329/1.329, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003021/0.003021, allocations: 294.9 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.002/1.002, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001672, allocations: 86.03 kB / 0.5945 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.197, allocations: 86.99 MB / 0.6794 GB, free: 1.211 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002735/0.1997, allocations: 1.786 MB / 0.6812 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.2013, allocations: 1.048 MB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.861e-05/0.2013, allocations: 0 / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.707e-05/0.2014, allocations: 7.922 kB / 0.6822 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.492e-05/0.2015, allocations: 27.77 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003624/0.2019, allocations: 135.6 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.202, allocations: 87.55 kB / 0.6824 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.2021, allocations: 32.36 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.804e-05/0.2022, allocations: 39.84 kB / 0.6825 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.444e-05/0.2023, allocations: 35.84 kB / 0.6825 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.2023, allocations: 4 kB / 0.6825 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003182/0.2026, allocations: 191.8 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.167e-05/0.2026, allocations: 15.92 kB / 0.6827 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.291e-05/0.2027, allocations: 31.81 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002869/0.203, allocations: 199.6 kB / 0.683 GB, free: 13.58 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.203, allocations: 3.938 kB / 0.683 GB, free: 13.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.12e-07/0.203, allocations: 0 / 0.683 GB, free: 13.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.203, allocations: 0 / 0.683 GB, free: 13.57 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.0005055/0.2035, allocations: 419 kB / 0.6834 GB, free: 13.12 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.2035, allocations: 12.03 kB / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.2036, allocations: 8.844 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.2038, allocations: 196.1 kB / 0.6836 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.2038, allocations: 8.375 kB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.277e-05/0.2038, allocations: 384 / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001616/0.204, allocations: 77.92 kB / 0.6837 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.204, allocations: 0 / 0.6837 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.204, allocations: 7.984 kB / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.204, allocations: 0 / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.2042, allocations: 43.98 kB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005421/0.2047, allocations: 396 kB / 0.6841 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.2048, allocations: 42.56 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.844e-05/0.2049, allocations: 28.86 kB / 0.6842 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.205, allocations: 85.19 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.2051, allocations: 30.56 kB / 0.6843 GB, free: 12.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.2051, allocations: 0 / 0.6843 GB, free: 12.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002871/0.2053, allocations: 85.52 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.2054, allocations: 55.34 kB / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.2055, allocations: 142.1 kB / 0.6845 GB, free: 11.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.2055, allocations: 33.7 kB / 0.6846 GB, free: 11.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.2056, allocations: 104 kB / 0.6847 GB, free: 11.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.2056, allocations: 7.891 kB / 0.6847 GB, free: 11.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.2057, allocations: 17.72 kB / 0.6847 GB, free: 11.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2058, allocations: 318.8 kB / 0.685 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.11e-05/0.2058, allocations: 12 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.759e-05/0.2059, allocations: 16.16 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.899e-05/0.206, allocations: 44.84 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.206, allocations: 0 / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001477/0.2062, allocations: 73.52 kB / 0.6851 GB, free: 11.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.2062, allocations: 4 kB / 0.6851 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.2062, allocations: 0 / 0.6851 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.2062, allocations: 0 / 0.6851 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.978e-05/0.2063, allocations: 11.98 kB / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.2063, allocations: 0 / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.776e-05/0.2064, allocations: 3.938 kB / 0.6852 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.362e-06/0.2064, allocations: 8 kB / 0.6852 GB, free: 11.07 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 7.689e-05/0.2065, allocations: 114.5 kB / 0.6853 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.2065, allocations: 7.906 kB / 0.6853 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002315/0.2067, allocations: 85.84 kB / 0.6854 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2068, allocations: 4 kB / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2068, allocations: 0 / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.2068, allocations: 4.047 kB / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.207, allocations: 193.5 kB / 0.6855 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.207, allocations: 4 kB / 0.6856 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.369e-05/0.2071, allocations: 11.98 kB / 0.6856 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2071, allocations: 0 / 0.6856 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.2071, allocations: 4 kB / 0.6856 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2071, allocations: 0 / 0.6856 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2071, allocations: 0 / 0.6856 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001934/0.2073, allocations: 175.3 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.2073, allocations: 92.95 kB / 0.6858 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.2074, allocations: 4 kB / 0.6858 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.757e-05/0.2074, allocations: 7.984 kB / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.221e-05/0.2075, allocations: 3.938 kB / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.2075, allocations: 0 / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.227e-05/0.2076, allocations: 112.9 kB / 0.6859 GB, free: 10.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2076, allocations: 4 kB / 0.686 GB, free: 10.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.2079, allocations: 59.92 kB / 0.686 GB, free: 10.1 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 (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.0002374/0.2081, allocations: 159.1 kB / 0.6862 GB, free: 9.934 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001592/0.2083, allocations: 43.97 kB / 0.6862 GB, free: 9.891 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2083, allocations: 0 / 0.6862 GB, free: 9.891 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.935e-05/0.2084, allocations: 19.94 kB / 0.6862 GB, free: 9.871 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.2087, allocations: 22.55 kB / 0.6862 GB, free: 9.852 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003951/0.2091, allocations: 224.7 kB / 0.6865 GB, free: 9.605 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.2094, allocations: 0.6926 MB / 0.6871 GB, free: 8.887 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.959e-05/0.2094, allocations: 15.98 kB / 0.6871 GB, free: 8.871 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.2095, allocations: 15.44 kB / 0.6872 GB, free: 8.855 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2095, allocations: 3.938 kB / 0.6872 GB, free: 8.852 MB / 494.1 MB Notification: Performance of Templates: time 0.004135/0.2136, allocations: 1.701 MB / 0.6888 GB, free: 7.164 MB / 494.1 MB 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)