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.006616/0.006616, allocations: 107.8 kB / 15.74 MB, free: 6.449 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.00107/0.00107, allocations: 196 kB / 16.67 MB, free: 6.355 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 282.7 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9444/0.9444, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 103.8 kB / 0.6814 GB, free: 15.51 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1502, allocations: 86.97 MB / 0.7663 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002453/0.1527, allocations: 1.735 MB / 0.768 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001354/0.1541, allocations: 1.021 MB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.318e-05/0.1541, allocations: 0 / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.196e-05/0.1542, allocations: 11.86 kB / 0.769 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 9.557e-05/0.1543, allocations: 35.7 kB / 0.7691 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.1547, allocations: 169.5 kB / 0.7692 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.1549, allocations: 87.53 kB / 0.7693 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.155, allocations: 48.11 kB / 0.7694 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.791e-05/0.1551, allocations: 35.86 kB / 0.7694 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.924e-05/0.1552, allocations: 47.78 kB / 0.7694 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.738e-05/0.1552, allocations: 8 kB / 0.7695 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003155/0.1555, allocations: 187.8 kB / 0.7696 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.799e-05/0.1555, allocations: 15.92 kB / 0.7696 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.233e-05/0.1556, allocations: 43.8 kB / 0.7697 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.1559, allocations: 199.5 kB / 0.7699 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1559, allocations: 0 / 0.7699 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.243e-06/0.1559, allocations: 0 / 0.7699 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.1559, allocations: 0 / 0.7699 GB, free: 4.812 MB / 0.5606 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.0004753/0.1564, allocations: 427 kB / 0.7703 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.1564, allocations: 12.03 kB / 0.7703 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.1564, allocations: 12.75 kB / 0.7703 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.1566, allocations: 188.2 kB / 0.7705 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.1566, allocations: 4.375 kB / 0.7705 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.1566, allocations: 4.375 kB / 0.7705 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.1568, allocations: 73.97 kB / 0.7706 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.1568, allocations: 3.938 kB / 0.7706 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.1568, allocations: 8 kB / 0.7706 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1568, allocations: 4 kB / 0.7706 GB, free: 4 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.157, allocations: 43.97 kB / 0.7706 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004533/0.1574, allocations: 392 kB / 0.771 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.1576, allocations: 42.56 kB / 0.771 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.592e-05/0.1576, allocations: 24.94 kB / 0.7711 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.931e-05/0.1577, allocations: 85.11 kB / 0.7711 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.1578, allocations: 34.5 kB / 0.7712 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1578, allocations: 0 / 0.7712 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0002573/0.158, allocations: 89.56 kB / 0.7713 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.1581, allocations: 51.41 kB / 0.7713 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.1582, allocations: 144.2 kB / 0.7715 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.1582, allocations: 25.7 kB / 0.7715 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.1583, allocations: 104 kB / 0.7716 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.634e-05/0.1583, allocations: 11.91 kB / 0.7716 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.1583, allocations: 9.719 kB / 0.7716 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1584, allocations: 322.8 kB / 0.7719 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.147e-05/0.1585, allocations: 15.98 kB / 0.7719 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.103e-05/0.1585, allocations: 12 kB / 0.7719 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.335e-05/0.1586, allocations: 40.78 kB / 0.772 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1586, allocations: 0 / 0.772 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001385/0.1588, allocations: 73.91 kB / 0.772 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.1588, allocations: 8 kB / 0.772 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.1588, allocations: 0 / 0.772 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.1588, allocations: 0 / 0.772 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.814e-05/0.1589, allocations: 11.98 kB / 0.7721 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1589, allocations: 0 / 0.7721 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.714e-05/0.159, allocations: 7.938 kB / 0.7721 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.159, allocations: 7.984 kB / 0.7721 GB, free: 2.309 MB / 0.5606 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 7.056e-05/0.1591, allocations: 114.5 kB / 0.7722 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.043e-05/0.1591, allocations: 7.906 kB / 0.7722 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.1593, allocations: 89.84 kB / 0.7723 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1593, allocations: 0 / 0.7723 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1593, allocations: 0 / 0.7723 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1594, allocations: 3.938 kB / 0.7723 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.1595, allocations: 193.5 kB / 0.7725 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1595, allocations: 0 / 0.7725 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.451e-05/0.1596, allocations: 15.92 kB / 0.7725 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1596, allocations: 4.109 kB / 0.7725 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.1596, allocations: 3.938 kB / 0.7725 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1596, allocations: 0 / 0.7725 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1597, allocations: 0 / 0.7725 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001806/0.1598, allocations: 171.4 kB / 0.7727 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.1599, allocations: 92.95 kB / 0.7727 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.1599, allocations: 7.984 kB / 0.7727 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.131e-05/0.16, allocations: 0 / 0.7727 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.16, allocations: 7.938 kB / 0.7728 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.16, allocations: 0 / 0.7728 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.436e-05/0.1601, allocations: 109.8 kB / 0.7729 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1601, allocations: 0 / 0.7729 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002874/0.1604, allocations: 63.84 kB / 0.7729 GB, free: 1.34 MB / 0.5606 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.0002169/0.1606, allocations: 163.1 kB / 0.7731 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001555/0.1608, allocations: 43.91 kB / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.1608, allocations: 0 / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.988e-05/0.1609, allocations: 23.98 kB / 0.7731 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.1611, allocations: 6.188 kB / 0.7731 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003349/0.1615, allocations: 218.9 kB / 0.7734 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.1617, allocations: 0.6924 MB / 0.774 GB, free: 144 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.243e-05/0.1617, allocations: 4 kB / 0.774 GB, free: 140 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.435e-05/0.1618, allocations: 11.44 kB / 0.774 GB, free: 128 kB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.1618, allocations: 0 / 0.774 GB, free: 128 kB / 0.5606 GB Notification: Performance of Templates: time 0.3046/0.4664, allocations: 1.776 MB / 0.7758 GB, free: 14.38 MB / 0.5606 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)