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.001234/0.001235, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001152/0.001152, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.23/1.23, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002139/0.002139, allocations: 297.7 kB / 291.3 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8985/0.8985, allocations: 169.3 MB / 0.4988 GB, free: 4.523 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 95.25 kB / 0.5959 GB, free: 15.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1521, allocations: 86.97 MB / 0.6808 GB, free: 8.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002995/0.1551, allocations: 1.723 MB / 0.6825 GB, free: 6.477 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.1566, allocations: 1.033 MB / 0.6835 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.553e-05/0.1567, allocations: 0 / 0.6835 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.639e-05/0.1568, allocations: 7.875 kB / 0.6835 GB, free: 5.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1569, allocations: 27.72 kB / 0.6835 GB, free: 5.402 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.1575, allocations: 171.7 kB / 0.6837 GB, free: 5.234 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.1576, allocations: 91.55 kB / 0.6838 GB, free: 5.145 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.1578, allocations: 36.12 kB / 0.6838 GB, free: 5.105 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.225e-05/0.1579, allocations: 39.8 kB / 0.6839 GB, free: 5.066 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.863e-05/0.158, allocations: 47.78 kB / 0.6839 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.716e-05/0.158, allocations: 4 kB / 0.6839 GB, free: 5.016 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003414/0.1583, allocations: 187.8 kB / 0.6841 GB, free: 4.832 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.153e-05/0.1584, allocations: 15.92 kB / 0.6841 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.594e-05/0.1584, allocations: 43.8 kB / 0.6842 GB, free: 4.773 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003042/0.1587, allocations: 199.5 kB / 0.6843 GB, free: 4.578 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1587, allocations: 0 / 0.6843 GB, free: 4.578 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1587, allocations: 0 / 0.6843 GB, free: 4.578 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1588, allocations: 0 / 0.6843 GB, free: 4.578 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.0005235/0.1593, allocations: 427 kB / 0.6848 GB, free: 4.113 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.1593, allocations: 12.03 kB / 0.6848 GB, free: 4.102 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.235e-05/0.1594, allocations: 8.844 kB / 0.6848 GB, free: 4.094 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.1596, allocations: 194.3 kB / 0.685 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.741e-06/0.1596, allocations: 384 / 0.685 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.1596, allocations: 4.375 kB / 0.685 GB, free: 3.863 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001675/0.1598, allocations: 77.97 kB / 0.685 GB, free: 3.781 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1598, allocations: 3.984 kB / 0.685 GB, free: 3.777 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.1598, allocations: 8 kB / 0.685 GB, free: 3.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1598, allocations: 0 / 0.685 GB, free: 3.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.1599, allocations: 39.98 kB / 0.6851 GB, free: 3.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005096/0.1604, allocations: 399.8 kB / 0.6855 GB, free: 3.277 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001144/0.1606, allocations: 46.56 kB / 0.6855 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.533e-05/0.1606, allocations: 20.86 kB / 0.6855 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.1608, allocations: 89.19 kB / 0.6856 GB, free: 3.094 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.1608, allocations: 34.56 kB / 0.6856 GB, free: 3.051 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.534e-06/0.1608, allocations: 0 / 0.6856 GB, free: 3.051 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002699/0.1611, allocations: 85.52 kB / 0.6857 GB, free: 2.961 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.1611, allocations: 55.41 kB / 0.6858 GB, free: 2.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.1612, allocations: 143.6 kB / 0.6859 GB, free: 2.746 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1613, allocations: 25.7 kB / 0.6859 GB, free: 2.715 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.1613, allocations: 100.1 kB / 0.686 GB, free: 2.613 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.1613, allocations: 15.8 kB / 0.6861 GB, free: 2.598 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.1614, allocations: 17.72 kB / 0.6861 GB, free: 2.574 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.988e-05/0.1615, allocations: 314.8 kB / 0.6864 GB, free: 2.258 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.081e-05/0.1615, allocations: 12 kB / 0.6864 GB, free: 2.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.486e-05/0.1616, allocations: 19.98 kB / 0.6864 GB, free: 2.227 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.512e-05/0.1617, allocations: 40.78 kB / 0.6864 GB, free: 2.184 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1617, allocations: 4 kB / 0.6864 GB, free: 2.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001402/0.1619, allocations: 69.58 kB / 0.6865 GB, free: 2.105 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1619, allocations: 4 kB / 0.6865 GB, free: 2.102 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.1619, allocations: 0 / 0.6865 GB, free: 2.102 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1619, allocations: 0 / 0.6865 GB, free: 2.102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.834e-05/0.162, allocations: 15.92 kB / 0.6865 GB, free: 2.086 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.162, allocations: 7.984 kB / 0.6865 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.479e-05/0.1621, allocations: 3.938 kB / 0.6865 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.1621, allocations: 4 kB / 0.6865 GB, free: 2.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.145e-05/0.1622, allocations: 113.8 kB / 0.6867 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/0.1622, allocations: 3.906 kB / 0.6867 GB, free: 1.945 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.1624, allocations: 89.84 kB / 0.6867 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.1624, allocations: 384 / 0.6867 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.1624, allocations: 4.109 kB / 0.6867 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1624, allocations: 11.88 kB / 0.6868 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.1626, allocations: 185.6 kB / 0.6869 GB, free: 1.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1626, allocations: 4 kB / 0.6869 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.1627, allocations: 15.97 kB / 0.687 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1627, allocations: 0 / 0.687 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.1627, allocations: 0 / 0.687 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1627, allocations: 0 / 0.687 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1627, allocations: 0 / 0.687 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.1629, allocations: 183.3 kB / 0.6871 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.933e-05/0.163, allocations: 88.95 kB / 0.6872 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.163, allocations: 0 / 0.6872 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.517e-05/0.1631, allocations: 7.984 kB / 0.6872 GB, free: 1.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.926e-05/0.1631, allocations: 3.938 kB / 0.6872 GB, free: 1.266 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.1631, allocations: 0 / 0.6872 GB, free: 1.266 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.132e-05/0.1632, allocations: 105 kB / 0.6873 GB, free: 1.164 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1632, allocations: 0 / 0.6873 GB, free: 1.164 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.1635, allocations: 67.92 kB / 0.6874 GB, free: 1.098 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.0002451/0.1638, allocations: 159.1 kB / 0.6875 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001602/0.1639, allocations: 47.91 kB / 0.6876 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1639, allocations: 0 / 0.6876 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.666e-05/0.164, allocations: 16 kB / 0.6876 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.1643, allocations: 19.94 kB / 0.6876 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003757/0.1647, allocations: 228.7 kB / 0.6878 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2277/0.3924, allocations: 0.6929 MB / 0.6885 GB, free: 17.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.849e-05/0.3925, allocations: 16.58 kB / 0.6885 GB, free: 17.51 MB / 494.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3925, allocations: 0 / 0.6885 GB, free: 17.51 MB / 494.1 MB Notification: Performance of Templates: time 0.004143/0.3966, allocations: 1.683 MB / 0.6902 GB, free: 17.45 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)