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: "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.Examples.GasGapClosed,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007267/0.0007269, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.000761/0.000761, allocations: 172.7 kB / 15.95 MB, free: 208 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.282/1.282, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001607/0.001607, allocations: 258.9 kB / 291.3 MB, free: 1.992 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.7882/0.7882, allocations: 144.7 MB / 487.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003823, allocations: 14.47 kB / 0.5686 GB, free: 38.42 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1271, allocations: 83.08 MB / 0.6497 GB, free: 3.473 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.001646/0.1288, allocations: 1.417 MB / 0.6511 GB, free: 2.047 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.1301, allocations: 0.9404 MB / 0.652 GB, free: 1.105 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.502e-05/0.1301, allocations: 4 kB / 0.652 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.826e-05/0.1302, allocations: 9.547 kB / 0.652 GB, free: 1.094 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.059e-05/0.1303, allocations: 27.72 kB / 0.652 GB, free: 1.066 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.1306, allocations: 129.3 kB / 0.6522 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.1308, allocations: 91.52 kB / 0.6522 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.152e-05/0.1309, allocations: 18.31 kB / 0.6523 GB, free: 0.832 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.478e-05/0.1309, allocations: 35.88 kB / 0.6523 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.58e-05/0.131, allocations: 36.5 kB / 0.6523 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.131, allocations: 0 / 0.6523 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002809/0.1313, allocations: 177.2 kB / 0.6525 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.612e-05/0.1314, allocations: 15.92 kB / 0.6525 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.288e-05/0.1314, allocations: 38.73 kB / 0.6526 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.1316, allocations: 140 kB / 0.6527 GB, free: 404 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1316, allocations: 5.516 kB / 0.6527 GB, free: 400 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1316, allocations: 0 / 0.6527 GB, free: 400 kB / 446.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.1316, allocations: 0 / 0.6527 GB, free: 400 kB / 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.0004564/0.1321, allocations: 411.6 kB / 0.6531 GB, free: 15.94 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1321, allocations: 9.25 kB / 0.6531 GB, free: 15.93 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.233e-05/0.1322, allocations: 38.5 kB / 0.6531 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.469e-05/0.1322, allocations: 7.906 kB / 0.6531 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.1324, allocations: 195.5 kB / 0.6533 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.1324, allocations: 8.422 kB / 0.6533 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.1324, allocations: 4 kB / 0.6533 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.1326, allocations: 83.19 kB / 0.6534 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.1326, allocations: 0 / 0.6534 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.1326, allocations: 0 / 0.6534 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.1326, allocations: 0.9375 kB / 0.6534 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.1327, allocations: 57.47 kB / 0.6535 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004643/0.1332, allocations: 389.6 kB / 0.6538 GB, free: 15.05 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.832e-05/0.1333, allocations: 49.62 kB / 0.6539 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.447e-05/0.1334, allocations: 28.94 kB / 0.6539 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.1335, allocations: 85.11 kB / 0.654 GB, free: 14.87 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.1335, allocations: 35.19 kB / 0.654 GB, free: 14.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.1335, allocations: 1.5 kB / 0.654 GB, free: 14.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002442/0.1338, allocations: 90.38 kB / 0.6541 GB, free: 14.73 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.1338, allocations: 55.36 kB / 0.6542 GB, free: 14.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.1339, allocations: 138.7 kB / 0.6543 GB, free: 14.52 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.1339, allocations: 29.64 kB / 0.6543 GB, free: 14.48 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.134, allocations: 104.1 kB / 0.6544 GB, free: 14.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/0.134, allocations: 11.84 kB / 0.6544 GB, free: 14.37 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.134, allocations: 0 / 0.6544 GB, free: 14.37 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.313e-05/0.1341, allocations: 314.8 kB / 0.6547 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-05/0.1342, allocations: 21.52 kB / 0.6548 GB, free: 14.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.078e-05/0.1342, allocations: 15.98 kB / 0.6548 GB, free: 14.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.905e-05/0.1343, allocations: 16.62 kB / 0.6548 GB, free: 14 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1343, allocations: 1.719 kB / 0.6548 GB, free: 14 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001427/0.1345, allocations: 77.58 kB / 0.6549 GB, free: 13.92 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.1345, allocations: 5.062 kB / 0.6549 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.1345, allocations: 0 / 0.6549 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.1345, allocations: 0 / 0.6549 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.383e-05/0.1346, allocations: 19.94 kB / 0.6549 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1346, allocations: 0 / 0.6549 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.901e-05/0.1347, allocations: 11.94 kB / 0.6549 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.1347, allocations: 3.938 kB / 0.6549 GB, free: 13.88 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.138e-05/0.1348, allocations: 119.1 kB / 0.655 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.1348, allocations: 7.906 kB / 0.655 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001958/0.135, allocations: 90.23 kB / 0.6551 GB, free: 13.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.135, allocations: 4.031 kB / 0.6551 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.135, allocations: 3.953 kB / 0.6551 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.135, allocations: 0 / 0.6551 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.1352, allocations: 189.6 kB / 0.6553 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1352, allocations: 0 / 0.6553 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.922e-05/0.1353, allocations: 11.98 kB / 0.6553 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1353, allocations: 4 kB / 0.6553 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.1353, allocations: 0 / 0.6553 GB, free: 13.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.1353, allocations: 7.938 kB / 0.6553 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1353, allocations: 3.938 kB / 0.6553 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001848/0.1355, allocations: 175.4 kB / 0.6555 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.669e-05/0.1356, allocations: 81.02 kB / 0.6556 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.1356, allocations: 7.984 kB / 0.6556 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.219e-05/0.1357, allocations: 4 kB / 0.6556 GB, free: 13.08 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.1357, allocations: 8 kB / 0.6556 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.1357, allocations: 0 / 0.6556 GB, free: 13.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.111e-05/0.1358, allocations: 113.3 kB / 0.6557 GB, free: 12.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.273e-06/0.1358, allocations: 0 / 0.6557 GB, free: 12.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.1361, allocations: 59.88 kB / 0.6558 GB, free: 12.91 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.0005456/0.1366, allocations: 0.7708 MB / 0.6565 GB, free: 12.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001407/0.1368, allocations: 39.97 kB / 0.6565 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1368, allocations: 0 / 0.6565 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 5.886e-05/0.1369, allocations: 31.92 kB / 0.6566 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.1372, allocations: 21.36 kB / 0.6566 GB, free: 12.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008638/0.138, allocations: 0.6411 MB / 0.6572 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.1383, allocations: 0.6887 MB / 0.6579 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.959e-05/0.1383, allocations: 16.17 kB / 0.6579 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.1384, allocations: 19.44 kB / 0.6579 GB, free: 10.59 MB / 462.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1384, allocations: 4 kB / 0.6579 GB, free: 10.58 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.012/0.1504, allocations: 2.81 MB / 0.6607 GB, free: 7.902 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/0.1507, allocations: 176.9 kB / 0.6609 GB, free: 7.664 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/1.751, allocations: 0 / 0.6609 GB, free: 7.664 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1) Environment - environmentSimulation: