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.0009004/0.0009004, allocations: 100.1 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.0009255/0.0009255, allocations: 177.3 kB / 15.95 MB, free: 216 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.256/1.256, allocations: 223.2 MB / 239.9 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.001667/0.001667, allocations: 270.7 kB / 291.2 MB, free: 2 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.7474/0.7474, allocations: 144.6 MB / 487 MB, free: 7.188 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.0004338, allocations: 11.78 kB / 0.5684 GB, free: 38.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1436, allocations: 83.09 MB / 0.6495 GB, free: 3.648 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.00157/0.1452, allocations: 1.38 MB / 0.6509 GB, free: 2.258 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1464, allocations: 0.9127 MB / 0.6518 GB, free: 1.348 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.918e-05/0.1464, allocations: 0 / 0.6518 GB, free: 1.348 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.683e-05/0.1465, allocations: 7.922 kB / 0.6518 GB, free: 1.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.95e-05/0.1466, allocations: 27.88 kB / 0.6518 GB, free: 1.312 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.1469, allocations: 133 kB / 0.6519 GB, free: 1.184 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.959e-05/0.147, allocations: 68.55 kB / 0.652 GB, free: 1.117 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.866e-05/0.1471, allocations: 25.17 kB / 0.652 GB, free: 1.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.751e-05/0.1472, allocations: 32.52 kB / 0.652 GB, free: 1.059 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.637e-05/0.1472, allocations: 36.56 kB / 0.6521 GB, free: 1.023 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-06/0.1473, allocations: 4 kB / 0.6521 GB, free: 1.02 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.1475, allocations: 181 kB / 0.6523 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.517e-05/0.1475, allocations: 12.7 kB / 0.6523 GB, free: 0.832 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.308e-05/0.1476, allocations: 37.64 kB / 0.6523 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.1478, allocations: 140.9 kB / 0.6524 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.1478, allocations: 0 / 0.6524 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1478, allocations: 0 / 0.6524 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.775e-06/0.1478, allocations: 0.625 kB / 0.6524 GB, free: 0.6523 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.0003612/0.1481, allocations: 416.3 kB / 0.6528 GB, free: 204 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.402e-05/0.1482, allocations: 12.56 kB / 0.6528 GB, free: 192 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.392e-05/0.1482, allocations: 34.56 kB / 0.6529 GB, free: 148 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.806e-05/0.1482, allocations: 12.38 kB / 0.6529 GB, free: 136 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.1484, allocations: 188.8 kB / 0.6531 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.863e-06/0.1484, allocations: 7.953 kB / 0.6531 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.1484, allocations: 8.875 kB / 0.6531 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/0.1485, allocations: 72.22 kB / 0.6532 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-06/0.1485, allocations: 0 / 0.6532 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.1486, allocations: 0 / 0.6532 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1486, allocations: 4 kB / 0.6532 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.1487, allocations: 43.97 kB / 0.6532 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.1491, allocations: 398.4 kB / 0.6536 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.652e-05/0.1492, allocations: 52.05 kB / 0.6536 GB, free: 15.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.098e-05/0.1493, allocations: 85.83 kB / 0.6537 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.1493, allocations: 40.11 kB / 0.6538 GB, free: 15.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1493, allocations: 0 / 0.6538 GB, free: 15.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002173/0.1496, allocations: 91.64 kB / 0.6538 GB, free: 15.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/0.1496, allocations: 51.41 kB / 0.6539 GB, free: 14.96 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.098e-05/0.1497, allocations: 139.3 kB / 0.654 GB, free: 14.81 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.1497, allocations: 28.95 kB / 0.654 GB, free: 14.78 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.1497, allocations: 108 kB / 0.6542 GB, free: 14.67 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.949e-06/0.1498, allocations: 3.906 kB / 0.6542 GB, free: 14.67 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-06/0.1498, allocations: 0 / 0.6542 GB, free: 14.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.054e-05/0.1499, allocations: 322.8 kB / 0.6545 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.568e-05/0.1499, allocations: 12 kB / 0.6545 GB, free: 14.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.385e-05/0.15, allocations: 24.7 kB / 0.6545 GB, free: 14.31 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.797e-05/0.15, allocations: 17.58 kB / 0.6545 GB, free: 14.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.15, allocations: 0 / 0.6545 GB, free: 14.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001339/0.1502, allocations: 70.66 kB / 0.6546 GB, free: 14.22 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.1502, allocations: 8 kB / 0.6546 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.1502, allocations: 7.984 kB / 0.6546 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.239e-06/0.1502, allocations: 0 / 0.6546 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.307e-05/0.1503, allocations: 12 kB / 0.6546 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.1503, allocations: 3.953 kB / 0.6546 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.882e-05/0.1504, allocations: 11.92 kB / 0.6546 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.1504, allocations: 0 / 0.6546 GB, free: 14.18 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 5.777e-05/0.1504, allocations: 113.8 kB / 0.6547 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1505, allocations: 8.234 kB / 0.6547 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.1506, allocations: 93.83 kB / 0.6548 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1507, allocations: 4 kB / 0.6548 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.1507, allocations: 3.938 kB / 0.6548 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1507, allocations: 3.953 kB / 0.6548 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.1508, allocations: 189.6 kB / 0.655 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1509, allocations: 4 kB / 0.655 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.694e-05/0.1509, allocations: 8 kB / 0.655 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1509, allocations: 4 kB / 0.655 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.119e-06/0.1509, allocations: 0 / 0.655 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.151, allocations: 4 kB / 0.655 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.151, allocations: 7.922 kB / 0.655 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.1511, allocations: 179.3 kB / 0.6552 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.1512, allocations: 81.02 kB / 0.6553 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.1512, allocations: 4 kB / 0.6553 GB, free: 13.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.566e-05/0.1513, allocations: 8 kB / 0.6553 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.14e-05/0.1513, allocations: 3.984 kB / 0.6553 GB, free: 13.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.1513, allocations: 4 kB / 0.6553 GB, free: 13.36 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.814e-05/0.1514, allocations: 109.3 kB / 0.6554 GB, free: 13.26 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1514, allocations: 0 / 0.6554 GB, free: 13.26 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002723/0.1517, allocations: 59.92 kB / 0.6555 GB, free: 13.2 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.000478/0.1521, allocations: 0.7708 MB / 0.6562 GB, free: 12.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001161/0.1523, allocations: 35.98 kB / 0.6563 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-06/0.1523, allocations: 0 / 0.6563 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.038e-05/0.1523, allocations: 31.98 kB / 0.6563 GB, free: 12.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001711/0.1525, allocations: 8 kB / 0.6563 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007602/0.1533, allocations: 0.6486 MB / 0.6569 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.1535, allocations: 0.7004 MB / 0.6576 GB, free: 10.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.988e-05/0.1535, allocations: 8.172 kB / 0.6576 GB, free: 10.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.1536, allocations: 19.44 kB / 0.6576 GB, free: 10.88 MB / 462.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1536, allocations: 0 / 0.6576 GB, free: 10.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.411/1.564, allocations: 2.792 MB / 0.6604 GB, free: 8.223 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/1.565, allocations: 177.8 kB / 0.6605 GB, free: 7.977 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/3.427, allocations: 4 kB / 0.6605 GB, free: 7.973 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: