Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.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.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",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.001688/0.001688, allocations: 108 kB / 15.61 MB, free: 148 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.001923/0.001923, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.436/1.436, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002448/0.002448, allocations: 286.5 kB / 290.7 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.068/1.068, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003539/0.003539, allocations: 99.78 kB / 0.6066 GB, free: 24.72 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1642, allocations: 89.14 MB / 0.6936 GB, free: 4.172 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.00342/0.1676, allocations: 2.021 MB / 0.6956 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.1686, allocations: 0.5866 MB / 0.6962 GB, free: 1.555 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1688, allocations: 4 kB / 0.6962 GB, free: 1.551 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.1689, allocations: 23.67 kB / 0.6962 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.169, allocations: 36.25 kB / 0.6962 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.1693, allocations: 97.52 kB / 0.6963 GB, free: 1.398 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003254/0.1696, allocations: 291.3 kB / 0.6966 GB, free: 1.113 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.1699, allocations: 122.3 kB / 0.6967 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.17, allocations: 115.5 kB / 0.6968 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.1702, allocations: 135.5 kB / 0.697 GB, free: 0.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.224e-05/0.1702, allocations: 28 kB / 0.697 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.825e-05/0.1703, allocations: 28.78 kB / 0.697 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.946e-05/0.1704, allocations: 59.77 kB / 0.6971 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.1705, allocations: 127.4 kB / 0.6972 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003033/0.1708, allocations: 287.1 kB / 0.6975 GB, free: 236 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1708, allocations: 4 kB / 0.6975 GB, free: 232 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1708, allocations: 0 / 0.6975 GB, free: 232 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1708, allocations: 4 kB / 0.6975 GB, free: 228 kB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001281/0.1721, allocations: 0.6581 MB / 0.6981 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.1722, allocations: 12.03 kB / 0.6981 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.856e-05/0.1723, allocations: 59.09 kB / 0.6982 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.032e-05/0.1723, allocations: 32.56 kB / 0.6982 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.1727, allocations: 261.3 kB / 0.6985 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.1727, allocations: 20.8 kB / 0.6985 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.1728, allocations: 24.38 kB / 0.6985 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.1734, allocations: 295.3 kB / 0.6988 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.1734, allocations: 0 / 0.6988 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.1735, allocations: 4 kB / 0.6988 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1735, allocations: 4 kB / 0.6988 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007147/0.1742, allocations: 213.6 kB / 0.699 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.1754, allocations: 0.6582 MB / 0.6996 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006982/0.1761, allocations: 198.4 kB / 0.6998 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003379/0.1765, allocations: 96.78 kB / 0.6999 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.1765, allocations: 0 / 0.6999 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005654/0.1771, allocations: 199.1 kB / 0.7001 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=19): time 1.503e-06/0.1771, allocations: 0 / 0.7001 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001135/0.1782, allocations: 339.2 kB / 0.7004 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.1783, allocations: 136.5 kB / 0.7006 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.1785, allocations: 210.9 kB / 0.7008 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.027e-05/0.1786, allocations: 41.64 kB / 0.7008 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.1787, allocations: 164.3 kB / 0.701 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.069e-05/0.1788, allocations: 47.45 kB / 0.701 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.1789, allocations: 65.97 kB / 0.7011 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.179, allocations: 338.8 kB / 0.7014 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.1794, allocations: 116.2 kB / 0.7015 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.1799, allocations: 184.4 kB / 0.7017 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007235/0.1806, allocations: 308.9 kB / 0.702 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1806, allocations: 0 / 0.702 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009679/0.1816, allocations: 431.5 kB / 0.7024 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.718e-05/0.1817, allocations: 93.03 kB / 0.7025 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.1817, allocations: 4 kB / 0.7025 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1817, allocations: 0 / 0.7025 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.182, allocations: 47.91 kB / 0.7025 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.182, allocations: 3.984 kB / 0.7025 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003693/0.1823, allocations: 67.81 kB / 0.7026 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.1824, allocations: 12 kB / 0.7026 GB, free: 10.58 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (minFloRatSaf.disErr.y,$PRE.minFloRatSaf.disErr.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,minFloRatSaf.hysEva.y,$PRE.minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,$PRE.minFloRatSaf.hysCon.y,minFloRatSaf.booPasThr.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,minFloRatSaf.intConOne.y,minFloRatSaf.disErr.local_set,minFloRatSaf.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 3 * 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 0.000154/0.1825, allocations: 156.4 kB / 0.7028 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.1826, allocations: 23.75 kB / 0.7028 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.16e-05/0.1826, allocations: 25.86 kB / 0.7028 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1826, allocations: 3.938 kB / 0.7028 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1827, allocations: 0 / 0.7028 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.1827, allocations: 0 / 0.7028 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.1838, allocations: 0.6192 MB / 0.7034 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1838, allocations: 3.984 kB / 0.7034 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.184, allocations: 27.91 kB / 0.7034 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.184, allocations: 8 kB / 0.7035 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.184, allocations: 7.984 kB / 0.7035 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.184, allocations: 0 / 0.7035 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.184, allocations: 0 / 0.7035 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.1848, allocations: 357.7 kB / 0.7038 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.1849, allocations: 92.86 kB / 0.7039 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.185, allocations: 11.94 kB / 0.7039 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/0.1853, allocations: 43.94 kB / 0.7039 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.1854, allocations: 51.92 kB / 0.704 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.1855, allocations: 19.98 kB / 0.704 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001299/0.1856, allocations: 148.6 kB / 0.7042 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1856, allocations: 0 / 0.7042 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000306/0.1859, allocations: 55.84 kB / 0.7042 GB, free: 8.852 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: 15 (minFloRatSaf.booPasThr.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,minFloRatSaf.disErr.y,minFloRatSaf.hysCon.y,minFloRatSaf.hysEva.y,ySetPul.T_start,ySetPul.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count) * Number of discrete states: 7 (mEvaEmu_flow.count,mConEmu_flow.count,ySetPul.count,minFloRatSaf.hysEva.y,minFloRatSaf.hysCon.y,hys.y,minFloRatSaf.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001573/0.1875, allocations: 1.012 MB / 0.7052 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000976/0.1885, allocations: 442.5 kB / 0.7056 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1885, allocations: 0 / 0.7056 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.1889, allocations: 115.9 kB / 0.7057 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.1893, allocations: 36.84 kB / 0.7058 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.1936, allocations: 2.67 MB / 0.7084 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.1939, allocations: 0.7398 MB / 0.7091 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001135/0.1941, allocations: 29.92 kB / 0.7091 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.1942, allocations: 75.41 kB / 0.7092 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.1942, allocations: 0 / 0.7092 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02798/0.2222, allocations: 5.656 MB / 0.7147 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.869/8.091, allocations: 15.84 kB / 0.7147 GB, free: 14.06 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 1 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)