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.00123/0.00123, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001321/0.001321, allocations: 191 kB / 17.29 MB, free: 5.516 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.249/1.249, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002048/0.002049, allocations: 288.2 kB / 291.4 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8991/0.8991, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 100.4 kB / 0.5966 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1437, allocations: 86.97 MB / 0.6816 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002649/0.1464, allocations: 1.735 MB / 0.6833 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.1478, allocations: 1.017 MB / 0.6843 GB, free: 4.719 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.449e-05/0.1479, allocations: 3.938 kB / 0.6843 GB, free: 4.715 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.505e-05/0.1479, allocations: 11.86 kB / 0.6843 GB, free: 4.703 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.057e-05/0.1481, allocations: 35.7 kB / 0.6843 GB, free: 4.668 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004678/0.1485, allocations: 167.4 kB / 0.6845 GB, free: 4.504 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.1487, allocations: 99.47 kB / 0.6846 GB, free: 4.406 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.1488, allocations: 40.12 kB / 0.6846 GB, free: 4.363 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.753e-05/0.1489, allocations: 39.84 kB / 0.6846 GB, free: 4.324 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.058e-05/0.149, allocations: 39.86 kB / 0.6847 GB, free: 4.285 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.149, allocations: 4 kB / 0.6847 GB, free: 4.281 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003002/0.1493, allocations: 187.7 kB / 0.6849 GB, free: 4.098 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.1493, allocations: 15.92 kB / 0.6849 GB, free: 4.082 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.251e-05/0.1494, allocations: 39.81 kB / 0.6849 GB, free: 4.043 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002612/0.1496, allocations: 203.5 kB / 0.6851 GB, free: 3.844 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.1496, allocations: 4 kB / 0.6851 GB, free: 3.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1496, allocations: 0 / 0.6851 GB, free: 3.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1497, allocations: 0 / 0.6851 GB, free: 3.84 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.000461/0.1501, allocations: 423 kB / 0.6855 GB, free: 3.379 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.1502, allocations: 8.031 kB / 0.6855 GB, free: 3.371 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.1502, allocations: 12.83 kB / 0.6855 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.1504, allocations: 189.9 kB / 0.6857 GB, free: 3.137 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.1504, allocations: 8.375 kB / 0.6857 GB, free: 3.129 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.1504, allocations: 4.375 kB / 0.6857 GB, free: 3.125 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.1505, allocations: 73.98 kB / 0.6858 GB, free: 3.047 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.1506, allocations: 4 kB / 0.6858 GB, free: 3.043 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.1506, allocations: 0 / 0.6858 GB, free: 3.043 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-06/0.1506, allocations: 0 / 0.6858 GB, free: 3.043 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.1507, allocations: 51.91 kB / 0.6859 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004507/0.1512, allocations: 387.9 kB / 0.6862 GB, free: 2.551 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.1513, allocations: 50.5 kB / 0.6863 GB, free: 2.492 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.603e-05/0.1513, allocations: 28.94 kB / 0.6863 GB, free: 2.461 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.949e-05/0.1515, allocations: 85.09 kB / 0.6864 GB, free: 2.359 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.1515, allocations: 30.56 kB / 0.6864 GB, free: 2.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1515, allocations: 0 / 0.6864 GB, free: 2.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002586/0.1518, allocations: 89.58 kB / 0.6865 GB, free: 2.227 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.1518, allocations: 51.41 kB / 0.6865 GB, free: 2.164 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.1519, allocations: 139.5 kB / 0.6867 GB, free: 2.016 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.1519, allocations: 29.64 kB / 0.6867 GB, free: 1.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.18e-05/0.152, allocations: 100.1 kB / 0.6868 GB, free: 1.879 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.152, allocations: 19.8 kB / 0.6868 GB, free: 1.859 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.152, allocations: 17.7 kB / 0.6868 GB, free: 1.836 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.593e-05/0.1521, allocations: 314.8 kB / 0.6871 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.865e-05/0.1522, allocations: 23.92 kB / 0.6872 GB, free: 1.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.105e-05/0.1522, allocations: 15.98 kB / 0.6872 GB, free: 1.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.623e-05/0.1523, allocations: 32.84 kB / 0.6872 GB, free: 1.445 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1523, allocations: 4 kB / 0.6872 GB, free: 1.441 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001359/0.1525, allocations: 69.91 kB / 0.6873 GB, free: 1.367 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.1525, allocations: 4 kB / 0.6873 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.1525, allocations: 3.984 kB / 0.6873 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/0.1525, allocations: 0 / 0.6873 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.656e-05/0.1526, allocations: 19.94 kB / 0.6873 GB, free: 1.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1526, allocations: 3.984 kB / 0.6873 GB, free: 1.336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.436e-05/0.1527, allocations: 3.938 kB / 0.6873 GB, free: 1.332 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.1527, allocations: 4 kB / 0.6873 GB, free: 1.328 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 6.516e-05/0.1528, allocations: 113.8 kB / 0.6874 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.1528, allocations: 7.906 kB / 0.6874 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001918/0.153, allocations: 77.91 kB / 0.6875 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.153, allocations: 4 kB / 0.6875 GB, free: 1.105 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.153, allocations: 4.109 kB / 0.6875 GB, free: 1.102 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.153, allocations: 7.875 kB / 0.6875 GB, free: 1.094 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.1532, allocations: 189.6 kB / 0.6877 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1532, allocations: 0 / 0.6877 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.35e-05/0.1533, allocations: 11.94 kB / 0.6877 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1533, allocations: 0 / 0.6877 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.1533, allocations: 3.984 kB / 0.6877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1533, allocations: 0 / 0.6877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1533, allocations: 0 / 0.6877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.1535, allocations: 175.4 kB / 0.6879 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.866e-05/0.1536, allocations: 88.95 kB / 0.688 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.1536, allocations: 4 kB / 0.688 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.603e-05/0.1537, allocations: 8 kB / 0.688 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.1537, allocations: 7.922 kB / 0.688 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.1537, allocations: 0 / 0.688 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.401e-05/0.1538, allocations: 104.8 kB / 0.6881 GB, free: 440 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1538, allocations: 4 kB / 0.6881 GB, free: 436 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002786/0.1541, allocations: 63.92 kB / 0.6882 GB, free: 372 kB / 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.000226/0.1543, allocations: 163.1 kB / 0.6883 GB, free: 200 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001421/0.1544, allocations: 35.98 kB / 0.6883 GB, free: 164 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.1545, allocations: 0 / 0.6883 GB, free: 164 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.466e-05/0.1545, allocations: 19.98 kB / 0.6884 GB, free: 144 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.1548, allocations: 27.88 kB / 0.6884 GB, free: 116 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2295/0.3843, allocations: 200.8 kB / 0.6886 GB, free: 18.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.3845, allocations: 0.6913 MB / 0.6893 GB, free: 17.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.669e-05/0.3845, allocations: 6.172 kB / 0.6893 GB, free: 17.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.216e-05/0.3846, allocations: 13.97 kB / 0.6893 GB, free: 17.4 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3846, allocations: 0.5625 kB / 0.6893 GB, free: 17.4 MB / 494.1 MB Notification: Performance of Templates: time 0.004729/0.3893, allocations: 1.778 MB / 0.691 GB, free: 17.36 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)