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.001276/0.001276, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001402/0.001402, allocations: 193.5 kB / 16.25 MB, free: 6.633 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.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002503/0.002503, allocations: 294.5 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 178.6 MB / 0.507 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002745/0.002745, allocations: 98.81 kB / 0.6061 GB, free: 25.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1419, allocations: 89.15 MB / 0.6931 GB, free: 4.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003424/0.1454, allocations: 2.065 MB / 0.6951 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.1465, allocations: 0.5704 MB / 0.6957 GB, free: 1.949 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1467, allocations: 0 / 0.6957 GB, free: 1.949 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.1468, allocations: 24.39 kB / 0.6957 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.147, allocations: 31.78 kB / 0.6957 GB, free: 1.895 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002331/0.1472, allocations: 75.92 kB / 0.6958 GB, free: 1.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.1476, allocations: 299.3 kB / 0.6961 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.1478, allocations: 123.7 kB / 0.6962 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.148, allocations: 119.5 kB / 0.6963 GB, free: 1.289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.1482, allocations: 127.5 kB / 0.6965 GB, free: 1.164 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.529e-05/0.1482, allocations: 32 kB / 0.6965 GB, free: 1.133 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.295e-05/0.1483, allocations: 28 kB / 0.6965 GB, free: 1.105 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.05e-05/0.1484, allocations: 63.77 kB / 0.6966 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.1485, allocations: 123.3 kB / 0.6967 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.1488, allocations: 287.1 kB / 0.697 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1488, allocations: 0 / 0.697 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1488, allocations: 0 / 0.697 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1488, allocations: 0 / 0.697 GB, free: 0.6406 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001274/0.1501, allocations: 0.6643 MB / 0.6976 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1502, allocations: 8.031 kB / 0.6976 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.045e-05/0.1503, allocations: 59.16 kB / 0.6977 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.211e-05/0.1503, allocations: 32.56 kB / 0.6977 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003158/0.1507, allocations: 257.3 kB / 0.698 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.1507, allocations: 28.78 kB / 0.698 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.486e-05/0.1507, allocations: 24.38 kB / 0.698 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.1514, allocations: 291.3 kB / 0.6983 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1514, allocations: 0 / 0.6983 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.1515, allocations: 8 kB / 0.6983 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1515, allocations: 8 kB / 0.6983 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006755/0.1522, allocations: 205.6 kB / 0.6985 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.1534, allocations: 0.6582 MB / 0.6991 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006618/0.1541, allocations: 206.3 kB / 0.6993 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.1544, allocations: 84.78 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.1544, allocations: 8 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005521/0.155, allocations: 197.7 kB / 0.6996 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=19): time 1.804e-06/0.155, allocations: 0 / 0.6996 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001088/0.1561, allocations: 337.1 kB / 0.6999 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.425e-05/0.1562, allocations: 140.5 kB / 0.7001 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002102/0.1564, allocations: 204.2 kB / 0.7003 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.1565, allocations: 37.7 kB / 0.7003 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.1566, allocations: 176.3 kB / 0.7005 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.083e-05/0.1566, allocations: 43.45 kB / 0.7005 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.1568, allocations: 65.97 kB / 0.7006 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1569, allocations: 334.8 kB / 0.7009 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003783/0.1573, allocations: 112.2 kB / 0.701 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.1577, allocations: 184.4 kB / 0.7012 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007172/0.1585, allocations: 314.4 kB / 0.7015 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1585, allocations: 0 / 0.7015 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009825/0.1595, allocations: 428.8 kB / 0.7019 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.268e-05/0.1596, allocations: 97.03 kB / 0.702 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1596, allocations: 0 / 0.702 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1596, allocations: 4 kB / 0.702 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.1599, allocations: 56.05 kB / 0.702 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.1599, allocations: 4 kB / 0.702 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003631/0.1602, allocations: 63.69 kB / 0.7021 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.1603, allocations: 8 kB / 0.7021 GB, free: 11 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.0001642/0.1605, allocations: 156.3 kB / 0.7023 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.998e-05/0.1605, allocations: 19.75 kB / 0.7023 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.364e-05/0.1606, allocations: 29.86 kB / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1606, allocations: 4 kB / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1606, allocations: 0 / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1606, allocations: 0 / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1618, allocations: 0.6167 MB / 0.7029 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1618, allocations: 0 / 0.7029 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.1619, allocations: 31.97 kB / 0.7029 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1619, allocations: 0 / 0.7029 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.162, allocations: 7.984 kB / 0.7029 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.162, allocations: 0 / 0.7029 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.162, allocations: 0 / 0.7029 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000786/0.1628, allocations: 357.2 kB / 0.7033 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.485e-05/0.1629, allocations: 92.86 kB / 0.7034 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.972e-05/0.1629, allocations: 11.94 kB / 0.7034 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.1633, allocations: 59.86 kB / 0.7034 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.1634, allocations: 51.88 kB / 0.7035 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.1635, allocations: 7.984 kB / 0.7035 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001397/0.1636, allocations: 147.4 kB / 0.7036 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1636, allocations: 0 / 0.7036 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003165/0.1639, allocations: 63.84 kB / 0.7037 GB, free: 9.266 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.001532/0.1655, allocations: 1.021 MB / 0.7047 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009225/0.1664, allocations: 432.8 kB / 0.7051 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1664, allocations: 0 / 0.7051 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003833/0.1668, allocations: 116.2 kB / 0.7052 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.1672, allocations: 35.97 kB / 0.7053 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.1715, allocations: 2.744 MB / 0.7079 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1719, allocations: 0.7398 MB / 0.7087 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001212/0.172, allocations: 25.94 kB / 0.7087 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.1722, allocations: 79.41 kB / 0.7088 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of SimCode: time 3.2e-07/0.1722, allocations: 0 / 0.7088 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.1924, allocations: 5.346 MB / 0.714 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002358/0.1927, allocations: 262.6 kB / 0.7142 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.945/2.137, allocations: 0 / 0.7142 GB, free: 14.5 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)