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.00106/0.00106, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001063/0.001063, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.237/1.237, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002121/0.002121, allocations: 286 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8935/0.8935, allocations: 169.2 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 101.9 kB / 0.5967 GB, free: 3.402 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.148, allocations: 86.97 MB / 0.6816 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002563/0.1506, allocations: 1.722 MB / 0.6833 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001323/0.152, allocations: 1.029 MB / 0.6843 GB, free: 9.641 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.362e-05/0.152, allocations: 0 / 0.6843 GB, free: 9.641 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.615e-05/0.1521, allocations: 11.86 kB / 0.6843 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.229e-05/0.1522, allocations: 39.64 kB / 0.6843 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.1526, allocations: 163.4 kB / 0.6845 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.1528, allocations: 87.59 kB / 0.6846 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.1529, allocations: 36.14 kB / 0.6846 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.771e-05/0.153, allocations: 47.78 kB / 0.6846 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.766e-05/0.153, allocations: 39.8 kB / 0.6847 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.1531, allocations: 8 kB / 0.6847 GB, free: 9.211 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.1534, allocations: 187.7 kB / 0.6849 GB, free: 9.027 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.913e-05/0.1534, allocations: 15.92 kB / 0.6849 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.485e-05/0.1534, allocations: 39.81 kB / 0.6849 GB, free: 8.973 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.1537, allocations: 203.5 kB / 0.6851 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1537, allocations: 0 / 0.6851 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1537, allocations: 4 kB / 0.6851 GB, free: 8.77 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.1537, allocations: 0 / 0.6851 GB, free: 8.77 MB / 0.5294 GB 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.0004485/0.1542, allocations: 420.5 kB / 0.6855 GB, free: 8.312 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.1542, allocations: 16.02 kB / 0.6855 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.464e-05/0.1543, allocations: 12.75 kB / 0.6855 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.1544, allocations: 190 kB / 0.6857 GB, free: 8.062 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.633e-06/0.1544, allocations: 4.375 kB / 0.6857 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.1545, allocations: 4.375 kB / 0.6857 GB, free: 8.055 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.1546, allocations: 81.86 kB / 0.6858 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.543e-06/0.1546, allocations: 0 / 0.6858 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.1546, allocations: 4 kB / 0.6858 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.341e-06/0.1546, allocations: 4 kB / 0.6858 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.1548, allocations: 43.97 kB / 0.6859 GB, free: 7.918 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004443/0.1552, allocations: 384 kB / 0.6862 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.1553, allocations: 46.56 kB / 0.6863 GB, free: 7.426 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.306e-05/0.1554, allocations: 24.94 kB / 0.6863 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 9.732e-05/0.1555, allocations: 89.09 kB / 0.6864 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.1555, allocations: 34.56 kB / 0.6864 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1555, allocations: 3.938 kB / 0.6864 GB, free: 7.246 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0002543/0.1558, allocations: 81.58 kB / 0.6865 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.6e-05/0.1558, allocations: 55.41 kB / 0.6865 GB, free: 7.094 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1559, allocations: 140.2 kB / 0.6867 GB, free: 6.945 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.156, allocations: 25.7 kB / 0.6867 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.156, allocations: 112 kB / 0.6868 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.156, allocations: 7.906 kB / 0.6868 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.798e-05/0.1561, allocations: 13.7 kB / 0.6868 GB, free: 6.773 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.1562, allocations: 319 kB / 0.6871 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.035e-05/0.1562, allocations: 23.92 kB / 0.6872 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.141e-05/0.1563, allocations: 15.98 kB / 0.6872 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.99e-05/0.1564, allocations: 40.78 kB / 0.6872 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1564, allocations: 0 / 0.6872 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001354/0.1565, allocations: 69.91 kB / 0.6873 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.1565, allocations: 8 kB / 0.6873 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1565, allocations: 0 / 0.6873 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.1566, allocations: 0 / 0.6873 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.208e-05/0.1567, allocations: 15.92 kB / 0.6873 GB, free: 6.273 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1567, allocations: 4 kB / 0.6873 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.277e-05/0.1567, allocations: 3.938 kB / 0.6873 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.1567, allocations: 3.984 kB / 0.6873 GB, free: 6.262 MB / 0.5294 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 6.315e-05/0.1568, allocations: 113.8 kB / 0.6874 GB, free: 6.141 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.1568, allocations: 7.906 kB / 0.6874 GB, free: 6.133 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001909/0.157, allocations: 89.84 kB / 0.6875 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.157, allocations: 0 / 0.6875 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.157, allocations: 4 kB / 0.6875 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1571, allocations: 3.938 kB / 0.6875 GB, free: 6.023 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.1572, allocations: 189.5 kB / 0.6877 GB, free: 5.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1572, allocations: 4 kB / 0.6877 GB, free: 5.785 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.885e-05/0.1573, allocations: 8 kB / 0.6877 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1573, allocations: 4 kB / 0.6877 GB, free: 5.773 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.1573, allocations: 3.984 kB / 0.6877 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1573, allocations: 0 / 0.6877 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1573, allocations: 0 / 0.6877 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001756/0.1575, allocations: 179.4 kB / 0.6879 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.1576, allocations: 88.95 kB / 0.688 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.1576, allocations: 0 / 0.688 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.1577, allocations: 0 / 0.688 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.1577, allocations: 11.92 kB / 0.688 GB, free: 5.461 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.1577, allocations: 0 / 0.688 GB, free: 5.461 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.951e-05/0.1578, allocations: 107.2 kB / 0.6881 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1578, allocations: 0 / 0.6881 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002834/0.1581, allocations: 71.83 kB / 0.6882 GB, free: 5.285 MB / 0.5294 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.0002268/0.1583, allocations: 163.1 kB / 0.6883 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0001465/0.1585, allocations: 39.92 kB / 0.6884 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1585, allocations: 0 / 0.6884 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 5.893e-05/0.1585, allocations: 23.98 kB / 0.6884 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.1588, allocations: 15.97 kB / 0.6884 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003262/0.1591, allocations: 214.8 kB / 0.6886 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002057/0.1594, allocations: 0.6885 MB / 0.6893 GB, free: 4.09 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 3.169e-05/0.1594, allocations: 11.92 kB / 0.6893 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.375e-05/0.1594, allocations: 11.44 kB / 0.6893 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of SimCode: time 2.51e-07/0.1594, allocations: 4 kB / 0.6893 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of Templates: time 0.003934/0.1634, allocations: 1.78 MB / 0.691 GB, free: 2.301 MB / 0.5294 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)