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.001253/0.001253, 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.001284/0.001284, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002405/0.002405, allocations: 287 kB / 290.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 178.6 MB / 0.5073 GB, free: 4.535 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002616/0.002616, allocations: 97.89 kB / 0.6066 GB, free: 24.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1407, allocations: 89.14 MB / 0.6936 GB, free: 4.16 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003262/0.144, allocations: 2.03 MB / 0.6956 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008931/0.1449, allocations: 0.5705 MB / 0.6962 GB, free: 1.551 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.281e-05/0.145, allocations: 7.938 kB / 0.6962 GB, free: 1.543 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.1451, allocations: 24.38 kB / 0.6962 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.1452, allocations: 47.53 kB / 0.6962 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.1454, allocations: 95.88 kB / 0.6963 GB, free: 1.379 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.1458, allocations: 287.3 kB / 0.6966 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.146, allocations: 119.7 kB / 0.6967 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.1461, allocations: 123.5 kB / 0.6968 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.1463, allocations: 127.5 kB / 0.697 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.131e-05/0.1464, allocations: 28 kB / 0.697 GB, free: 0.707 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.513e-05/0.1464, allocations: 28 kB / 0.697 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.217e-05/0.1465, allocations: 67.75 kB / 0.6971 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.1466, allocations: 123.4 kB / 0.6972 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.1469, allocations: 287 kB / 0.6975 GB, free: 216 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1469, allocations: 0 / 0.6975 GB, free: 216 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1469, allocations: 0 / 0.6975 GB, free: 216 kB / 494.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1469, allocations: 0 / 0.6975 GB, free: 216 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.001184/0.1481, allocations: 0.6659 MB / 0.6981 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.1482, allocations: 8.031 kB / 0.6981 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.724e-05/0.1482, allocations: 59.16 kB / 0.6982 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.812e-05/0.1483, allocations: 36.55 kB / 0.6982 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.1486, allocations: 257.3 kB / 0.6985 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.1487, allocations: 20.81 kB / 0.6985 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.433e-05/0.1487, allocations: 24.36 kB / 0.6985 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006386/0.1494, allocations: 291.3 kB / 0.6988 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1494, allocations: 0 / 0.6988 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.1494, allocations: 16 kB / 0.6988 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1494, allocations: 8 kB / 0.6988 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006943/0.1501, allocations: 201.6 kB / 0.699 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.1513, allocations: 0.662 MB / 0.6996 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006746/0.152, allocations: 198.4 kB / 0.6998 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.1523, allocations: 88.78 kB / 0.6999 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.1523, allocations: 11.94 kB / 0.6999 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004966/0.1528, allocations: 199 kB / 0.7001 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=19): time 3.697e-06/0.1528, allocations: 3.984 kB / 0.7001 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001086/0.1539, allocations: 339.2 kB / 0.7004 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.589e-05/0.154, allocations: 144.4 kB / 0.7006 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.1542, allocations: 206.9 kB / 0.7008 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/0.1543, allocations: 37.7 kB / 0.7008 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.1544, allocations: 172.3 kB / 0.701 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.11e-05/0.1544, allocations: 47.44 kB / 0.701 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1545, allocations: 69.97 kB / 0.7011 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1547, allocations: 326.8 kB / 0.7014 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.1551, allocations: 112.2 kB / 0.7015 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.1555, allocations: 184.4 kB / 0.7017 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.1562, allocations: 312.9 kB / 0.702 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1562, allocations: 3.938 kB / 0.702 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009206/0.1571, allocations: 427.5 kB / 0.7024 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.339e-05/0.1572, allocations: 93.05 kB / 0.7025 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1572, allocations: 0 / 0.7025 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.1572, allocations: 4 kB / 0.7025 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.1574, allocations: 44.11 kB / 0.7025 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.1575, allocations: 7.938 kB / 0.7025 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.1578, allocations: 63.69 kB / 0.7026 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.1578, allocations: 15.98 kB / 0.7026 GB, free: 10.55 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.0001489/0.158, allocations: 156.3 kB / 0.7028 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.695e-05/0.158, allocations: 19.75 kB / 0.7028 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.908e-05/0.1581, allocations: 29.86 kB / 0.7028 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.1581, allocations: 4 kB / 0.7028 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1581, allocations: 0 / 0.7028 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1581, allocations: 0 / 0.7028 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.1592, allocations: 0.6114 MB / 0.7034 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1592, allocations: 0 / 0.7034 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.1594, allocations: 35.89 kB / 0.7034 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1594, allocations: 0 / 0.7034 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.1594, allocations: 4 kB / 0.7034 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1594, allocations: 0 / 0.7034 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1594, allocations: 0 / 0.7034 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007617/0.1602, allocations: 357.2 kB / 0.7038 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.313e-05/0.1602, allocations: 104.9 kB / 0.7039 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.593e-05/0.1603, allocations: 8 kB / 0.7039 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.1606, allocations: 43.94 kB / 0.7039 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.1608, allocations: 55.92 kB / 0.704 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.1608, allocations: 11.88 kB / 0.704 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001207/0.1609, allocations: 148.5 kB / 0.7041 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1609, allocations: 0 / 0.7041 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002994/0.1612, allocations: 67.83 kB / 0.7042 GB, free: 8.824 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.001448/0.1627, allocations: 1.019 MB / 0.7052 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008818/0.1636, allocations: 426.4 kB / 0.7056 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.1636, allocations: 4 kB / 0.7056 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.164, allocations: 124.2 kB / 0.7057 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.1643, allocations: 32.08 kB / 0.7058 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003991/0.1683, allocations: 2.67 MB / 0.7084 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.1686, allocations: 0.7398 MB / 0.7091 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.49e-05/0.1687, allocations: 17.95 kB / 0.7091 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.1689, allocations: 87.39 kB / 0.7092 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1689, allocations: 0 / 0.7092 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.949/2.118, allocations: 5.656 MB / 0.7147 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/15.39, allocations: 9.156 kB / 0.7147 GB, free: 14.04 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)