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.0008026/0.0008027, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0008124/0.0008124, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.174/1.174, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001609/0.001609, allocations: 266.8 kB / 291.2 MB, free: 1.988 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7068/0.7068, allocations: 144.6 MB / 487 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003863, allocations: 12.94 kB / 0.5683 GB, free: 38.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1267, allocations: 83.09 MB / 0.6494 GB, free: 3.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.001645/0.1284, allocations: 1.377 MB / 0.6508 GB, free: 2.203 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.1297, allocations: 0.9108 MB / 0.6516 GB, free: 1.293 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.771e-05/0.1298, allocations: 0 / 0.6516 GB, free: 1.293 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.443e-05/0.1299, allocations: 7.922 kB / 0.6517 GB, free: 1.285 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.13, allocations: 32.7 kB / 0.6517 GB, free: 1.254 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/0.1304, allocations: 132.8 kB / 0.6518 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.1305, allocations: 65.34 kB / 0.6519 GB, free: 1.062 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.406e-05/0.1306, allocations: 24.86 kB / 0.6519 GB, free: 1.035 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.714e-05/0.1307, allocations: 31.86 kB / 0.6519 GB, free: 1.004 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.939e-05/0.1308, allocations: 32.61 kB / 0.652 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.1308, allocations: 4.719 kB / 0.652 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003229/0.1311, allocations: 184.8 kB / 0.6521 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.762e-05/0.1312, allocations: 11.98 kB / 0.6522 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.26e-05/0.1312, allocations: 39.17 kB / 0.6522 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.1314, allocations: 140 kB / 0.6523 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1314, allocations: 3.938 kB / 0.6523 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1314, allocations: 0 / 0.6523 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1315, allocations: 0.7188 kB / 0.6523 GB, free: 0.5938 MB / 446.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.0004692/0.1319, allocations: 420 kB / 0.6527 GB, free: 140 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.132, allocations: 8.688 kB / 0.6527 GB, free: 132 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.132, allocations: 7.906 kB / 0.6527 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.1322, allocations: 192.8 kB / 0.6529 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1322, allocations: 7.953 kB / 0.6529 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.1322, allocations: 8.875 kB / 0.6529 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.1324, allocations: 74.78 kB / 0.653 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.1324, allocations: 0 / 0.653 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.1324, allocations: 5.438 kB / 0.653 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.1324, allocations: 3.984 kB / 0.653 GB, free: 15.79 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.1326, allocations: 48.66 kB / 0.6531 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000457/0.133, allocations: 391.9 kB / 0.6534 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.1331, allocations: 42.56 kB / 0.6535 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.715e-05/0.1333, allocations: 85.2 kB / 0.6536 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.1333, allocations: 40.17 kB / 0.6536 GB, free: 15.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 2.685e-06/0.1333, allocations: 112 / 0.6536 GB, free: 15.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.000256/0.1336, allocations: 91.7 kB / 0.6537 GB, free: 15.01 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.1336, allocations: 55.41 kB / 0.6537 GB, free: 14.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1337, allocations: 138.1 kB / 0.6539 GB, free: 14.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.1337, allocations: 26.45 kB / 0.6539 GB, free: 14.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.1338, allocations: 115.1 kB / 0.654 GB, free: 14.65 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.1338, allocations: 11.89 kB / 0.654 GB, free: 14.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/0.1338, allocations: 0 / 0.654 GB, free: 14.64 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1339, allocations: 318.8 kB / 0.6543 GB, free: 14.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.68e-05/0.134, allocations: 15.98 kB / 0.6543 GB, free: 14.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.907e-05/0.134, allocations: 12 kB / 0.6544 GB, free: 14.29 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.289e-05/0.1341, allocations: 25.36 kB / 0.6544 GB, free: 14.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1341, allocations: 3.938 kB / 0.6544 GB, free: 14.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001335/0.1343, allocations: 75.33 kB / 0.6545 GB, free: 14.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.1343, allocations: 4 kB / 0.6545 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.1343, allocations: 0 / 0.6545 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.496e-06/0.1343, allocations: 4 kB / 0.6545 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.752e-05/0.1344, allocations: 8 kB / 0.6545 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.1344, allocations: 7.938 kB / 0.6545 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.516e-05/0.1345, allocations: 4 kB / 0.6545 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1345, allocations: 4 kB / 0.6545 GB, free: 14.16 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.189e-05/0.1345, allocations: 110.9 kB / 0.6546 GB, free: 14.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.1346, allocations: 7.906 kB / 0.6546 GB, free: 14.03 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001945/0.1348, allocations: 109.7 kB / 0.6547 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1348, allocations: 0 / 0.6547 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1348, allocations: 0 / 0.6547 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1348, allocations: 3.953 kB / 0.6547 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.135, allocations: 185.6 kB / 0.6549 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.135, allocations: 0 / 0.6549 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.589e-05/0.1351, allocations: 12 kB / 0.6549 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1351, allocations: 0 / 0.6549 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1351, allocations: 7.984 kB / 0.6549 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1351, allocations: 0 / 0.6549 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1351, allocations: 0 / 0.6549 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001761/0.1353, allocations: 183.7 kB / 0.6551 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.576e-05/0.1353, allocations: 89.02 kB / 0.6552 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.1353, allocations: 3.938 kB / 0.6552 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.162e-05/0.1354, allocations: 8 kB / 0.6552 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.349e-05/0.1355, allocations: 3.984 kB / 0.6552 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/0.1355, allocations: 0 / 0.6552 GB, free: 13.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.726e-05/0.1355, allocations: 109.5 kB / 0.6553 GB, free: 13.24 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1355, allocations: 0 / 0.6553 GB, free: 13.24 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.1358, allocations: 67.92 kB / 0.6553 GB, free: 13.17 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002096/0.136, allocations: 155.1 kB / 0.6555 GB, free: 13.01 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.1362, allocations: 39.98 kB / 0.6555 GB, free: 12.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1362, allocations: 4 kB / 0.6555 GB, free: 12.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.287e-05/0.1363, allocations: 27.92 kB / 0.6556 GB, free: 12.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.1365, allocations: 8 kB / 0.6556 GB, free: 12.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003092/0.1368, allocations: 249.6 kB / 0.6558 GB, free: 12.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.137, allocations: 0.6926 MB / 0.6565 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.529e-05/0.137, allocations: 16.17 kB / 0.6565 GB, free: 11.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.429e-05/0.1371, allocations: 19.31 kB / 0.6565 GB, free: 11.91 MB / 462.1 MB Notification: Performance of SimCode: time 2e-07/0.1371, allocations: 0 / 0.6565 GB, free: 11.91 MB / 462.1 MB Notification: Performance of Templates: time 0.003602/0.1407, allocations: 1.673 MB / 0.6582 GB, free: 10.25 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: