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.001447/0.001447, allocations: 102 kB / 16.27 MB, free: 5.859 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.001418/0.001418, allocations: 185.3 kB / 17.19 MB, free: 5.508 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.331/1.331, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002391/0.002391, allocations: 282.4 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.158/1.158, allocations: 178.5 MB / 0.5079 GB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002606/0.002606, allocations: 100.3 kB / 0.6071 GB, free: 9.32 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1686, allocations: 89.12 MB / 0.6941 GB, free: 116 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002922/0.1715, allocations: 1.736 MB / 0.6958 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1731, allocations: 1.032 MB / 0.6968 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.426e-05/0.1732, allocations: 4 kB / 0.6968 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.344e-05/0.1732, allocations: 7.922 kB / 0.6968 GB, free: 13.31 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.734e-05/0.1733, allocations: 31.7 kB / 0.6969 GB, free: 13.28 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.1738, allocations: 167.4 kB / 0.697 GB, free: 13.11 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.1739, allocations: 91.48 kB / 0.6971 GB, free: 13.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.174, allocations: 36.42 kB / 0.6972 GB, free: 12.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.132e-05/0.1741, allocations: 35.86 kB / 0.6972 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.217e-05/0.1742, allocations: 35.84 kB / 0.6972 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.1742, allocations: 8 kB / 0.6972 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003334/0.1746, allocations: 191.8 kB / 0.6974 GB, free: 12.72 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.147e-05/0.1746, allocations: 15.92 kB / 0.6974 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.705e-05/0.1747, allocations: 43.8 kB / 0.6975 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002861/0.175, allocations: 195.5 kB / 0.6977 GB, free: 12.47 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.175, allocations: 0 / 0.6977 GB, free: 12.47 MB / 0.545 GB Notification: Performance of FrontEnd: time 5.731e-06/0.175, allocations: 0 / 0.6977 GB, free: 12.47 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.175, allocations: 3.938 kB / 0.6977 GB, free: 12.46 MB / 0.545 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.0005244/0.1755, allocations: 431 kB / 0.6981 GB, free: 12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.1756, allocations: 8.031 kB / 0.6981 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.1756, allocations: 16.78 kB / 0.6981 GB, free: 11.97 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.1758, allocations: 194 kB / 0.6983 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.1758, allocations: 384 / 0.6983 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.1758, allocations: 4.375 kB / 0.6983 GB, free: 11.74 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.176, allocations: 77.97 kB / 0.6984 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.176, allocations: 0 / 0.6984 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.176, allocations: 3.938 kB / 0.6984 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1761, allocations: 0 / 0.6984 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.1762, allocations: 51.92 kB / 0.6984 GB, free: 11.61 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005133/0.1767, allocations: 384.1 kB / 0.6988 GB, free: 11.17 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/0.1768, allocations: 46.5 kB / 0.6988 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.739e-05/0.1769, allocations: 20.95 kB / 0.6988 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/0.177, allocations: 93.08 kB / 0.6989 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.1771, allocations: 38.56 kB / 0.699 GB, free: 10.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1771, allocations: 0 / 0.699 GB, free: 10.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.000262/0.1773, allocations: 85.75 kB / 0.6991 GB, free: 10.84 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.1774, allocations: 55.39 kB / 0.6991 GB, free: 10.78 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1775, allocations: 142 kB / 0.6992 GB, free: 10.63 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.1775, allocations: 29.7 kB / 0.6993 GB, free: 10.59 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.488e-05/0.1776, allocations: 108 kB / 0.6994 GB, free: 10.48 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.1776, allocations: 3.906 kB / 0.6994 GB, free: 10.48 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.1777, allocations: 17.72 kB / 0.6994 GB, free: 10.46 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1778, allocations: 318.8 kB / 0.6997 GB, free: 10.14 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.029e-05/0.1779, allocations: 12 kB / 0.6997 GB, free: 10.12 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.517e-05/0.1779, allocations: 15.98 kB / 0.6997 GB, free: 10.11 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.178, allocations: 40.84 kB / 0.6998 GB, free: 10.07 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.178, allocations: 0 / 0.6998 GB, free: 10.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001471/0.1782, allocations: 69.58 kB / 0.6998 GB, free: 9.992 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.1782, allocations: 4 kB / 0.6998 GB, free: 9.988 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1782, allocations: 4 kB / 0.6998 GB, free: 9.984 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1782, allocations: 7.938 kB / 0.6998 GB, free: 9.977 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.523e-05/0.1783, allocations: 7.984 kB / 0.6999 GB, free: 9.969 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.1784, allocations: 112 / 0.6999 GB, free: 9.969 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.332e-05/0.1784, allocations: 11.88 kB / 0.6999 GB, free: 9.957 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.1784, allocations: 4 kB / 0.6999 GB, free: 9.953 MB / 0.545 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.916e-05/0.1785, allocations: 113.8 kB / 0.7 GB, free: 9.832 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.1786, allocations: 11.89 kB / 0.7 GB, free: 9.82 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.1788, allocations: 81.92 kB / 0.7001 GB, free: 9.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1788, allocations: 3.938 kB / 0.7001 GB, free: 9.727 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1788, allocations: 0 / 0.7001 GB, free: 9.727 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.1788, allocations: 7.922 kB / 0.7001 GB, free: 9.719 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002/0.179, allocations: 181.6 kB / 0.7003 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.179, allocations: 4 kB / 0.7003 GB, free: 9.488 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.321e-05/0.1791, allocations: 15.92 kB / 0.7003 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1791, allocations: 0 / 0.7003 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.1791, allocations: 4 kB / 0.7003 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1791, allocations: 0 / 0.7003 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1791, allocations: 0 / 0.7003 GB, free: 9.469 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.1793, allocations: 175.4 kB / 0.7004 GB, free: 9.281 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/0.1794, allocations: 85.02 kB / 0.7005 GB, free: 9.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.1794, allocations: 4 kB / 0.7005 GB, free: 9.176 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.199e-05/0.1795, allocations: 3.984 kB / 0.7005 GB, free: 9.172 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.1795, allocations: 7.938 kB / 0.7005 GB, free: 9.164 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.1795, allocations: 0 / 0.7005 GB, free: 9.164 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.338e-05/0.1796, allocations: 113.1 kB / 0.7006 GB, free: 9.055 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1796, allocations: 0 / 0.7006 GB, free: 9.055 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002878/0.1799, allocations: 63.88 kB / 0.7007 GB, free: 8.992 MB / 0.545 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.000263/0.1802, allocations: 167.1 kB / 0.7009 GB, free: 8.82 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001513/0.1803, allocations: 39.97 kB / 0.7009 GB, free: 8.781 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1803, allocations: 0 / 0.7009 GB, free: 8.781 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 5.942e-05/0.1804, allocations: 24.31 kB / 0.7009 GB, free: 8.758 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.1807, allocations: 11.94 kB / 0.7009 GB, free: 8.746 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003944/0.1811, allocations: 248.6 kB / 0.7012 GB, free: 8.473 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.1814, allocations: 0.6962 MB / 0.7019 GB, free: 7.75 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.1815, allocations: 15.44 kB / 0.7019 GB, free: 7.734 MB / 0.545 GB Notification: Performance of SimCode: time 2.81e-07/0.1815, allocations: 4 kB / 0.7019 GB, free: 7.73 MB / 0.545 GB Notification: Performance of Templates: time 0.00344/0.1849, allocations: 1.668 MB / 0.7035 GB, free: 6.066 MB / 0.545 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)