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.001522/0.001522, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 198.2 kB / 16.54 MB, free: 6.672 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.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.00247/0.00247, allocations: 290.9 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.016/1.016, allocations: 178.6 MB / 0.5073 GB, free: 4.57 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002719/0.002719, allocations: 98.73 kB / 0.6065 GB, free: 24.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1417, allocations: 89.15 MB / 0.6936 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.003008/0.1447, allocations: 1.731 MB / 0.6953 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1463, allocations: 1.026 MB / 0.6963 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.073e-05/0.1464, allocations: 4 kB / 0.6963 GB, free: 1.469 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.217e-05/0.1464, allocations: 11.86 kB / 0.6963 GB, free: 1.457 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.1466, allocations: 27.72 kB / 0.6963 GB, free: 1.43 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004364/0.147, allocations: 160.9 kB / 0.6965 GB, free: 1.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.1472, allocations: 99.53 kB / 0.6966 GB, free: 1.176 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.1473, allocations: 36.38 kB / 0.6966 GB, free: 1.137 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.237e-05/0.1474, allocations: 39.86 kB / 0.6966 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.268e-05/0.1475, allocations: 35.84 kB / 0.6967 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/0.1475, allocations: 8 kB / 0.6967 GB, free: 1.055 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003531/0.1478, allocations: 187.7 kB / 0.6969 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.841e-05/0.1479, allocations: 15.94 kB / 0.6969 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.317e-05/0.1479, allocations: 43.8 kB / 0.6969 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.1482, allocations: 203.5 kB / 0.6971 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1482, allocations: 3.938 kB / 0.6971 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1483, allocations: 0 / 0.6971 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.1483, allocations: 0 / 0.6971 GB, free: 0.6094 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.0005524/0.1488, allocations: 419 kB / 0.6975 GB, free: 156 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1489, allocations: 8.031 kB / 0.6975 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.113e-05/0.1489, allocations: 38.73 kB / 0.6976 GB, free: 100 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.149, allocations: 12.84 kB / 0.6976 GB, free: 88 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.1492, allocations: 196.1 kB / 0.6978 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.1492, allocations: 384 / 0.6978 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/0.1492, allocations: 8.312 kB / 0.6978 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.1494, allocations: 77.73 kB / 0.6978 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1494, allocations: 3.984 kB / 0.6978 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.1494, allocations: 4 kB / 0.6978 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1494, allocations: 0 / 0.6978 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.1496, allocations: 43.97 kB / 0.6979 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005034/0.1501, allocations: 396 kB / 0.6983 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.1502, allocations: 42.56 kB / 0.6983 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.757e-05/0.1503, allocations: 28.88 kB / 0.6983 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.1504, allocations: 93.09 kB / 0.6984 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.1504, allocations: 30.56 kB / 0.6985 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1505, allocations: 0 / 0.6985 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0002632/0.1507, allocations: 81.58 kB / 0.6985 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.1508, allocations: 51.41 kB / 0.6986 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1509, allocations: 140.5 kB / 0.6987 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1509, allocations: 25.7 kB / 0.6987 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.973e-05/0.151, allocations: 112 kB / 0.6988 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.151, allocations: 7.906 kB / 0.6989 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.151, allocations: 21.7 kB / 0.6989 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1512, allocations: 314.8 kB / 0.6992 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.199e-05/0.1512, allocations: 19.92 kB / 0.6992 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.495e-05/0.1513, allocations: 15.98 kB / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.938e-05/0.1514, allocations: 36.84 kB / 0.6992 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1514, allocations: 8 kB / 0.6993 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001777/0.1516, allocations: 69.58 kB / 0.6993 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1516, allocations: 4 kB / 0.6993 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.1516, allocations: 0 / 0.6993 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.1516, allocations: 0 / 0.6993 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.759e-05/0.1517, allocations: 15.98 kB / 0.6993 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.1518, allocations: 7.875 kB / 0.6993 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.3e-05/0.1518, allocations: 0 / 0.6993 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1518, allocations: 4 kB / 0.6993 GB, free: 14.06 MB / 0.4981 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.72e-05/0.1519, allocations: 117.8 kB / 0.6995 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.1519, allocations: 3.906 kB / 0.6995 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002042/0.1521, allocations: 86.23 kB / 0.6995 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1522, allocations: 0 / 0.6995 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1522, allocations: 8.047 kB / 0.6996 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1522, allocations: 3.984 kB / 0.6996 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.1524, allocations: 193.5 kB / 0.6997 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1524, allocations: 0 / 0.6997 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.311e-05/0.1525, allocations: 12 kB / 0.6998 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1525, allocations: 0 / 0.6998 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.1525, allocations: 3.984 kB / 0.6998 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1525, allocations: 3.938 kB / 0.6998 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1525, allocations: 3.938 kB / 0.6998 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.1527, allocations: 171.4 kB / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.1528, allocations: 88.95 kB / 0.7 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.1528, allocations: 4 kB / 0.7 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.524e-05/0.1529, allocations: 4 kB / 0.7 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.033e-05/0.153, allocations: 7.922 kB / 0.7 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.153, allocations: 0 / 0.7 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.465e-05/0.153, allocations: 103.3 kB / 0.7001 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1531, allocations: 0 / 0.7001 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002957/0.1534, allocations: 67.92 kB / 0.7002 GB, free: 13.09 MB / 0.4981 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.000648/0.154, allocations: 0.7669 MB / 0.7009 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001549/0.1542, allocations: 31.98 kB / 0.701 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.1542, allocations: 0 / 0.701 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.194e-05/0.1543, allocations: 23.92 kB / 0.701 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.1545, allocations: 27.88 kB / 0.701 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.1561, allocations: 1.476 MB / 0.7025 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.1564, allocations: 0.7015 MB / 0.7031 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.179e-05/0.1564, allocations: 7.984 kB / 0.7032 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.1565, allocations: 27.42 kB / 0.7032 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1565, allocations: 0 / 0.7032 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.1812, allocations: 3.06 MB / 0.7062 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.423/7.604, allocations: 5.688 kB / 0.7062 GB, free: 6.902 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 BuildingSystems_BuildingSystems_HAM_Examples_GasGapClosed.fmu > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)