Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate,fileNamePrefix="Buildings_latest_Buildings_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.007534/0.007534, allocations: 101.7 kB / 15.73 MB, free: 5.492 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.00121/0.00121, allocations: 188.4 kB / 16.67 MB, free: 5.422 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.271/1.271, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.487/2.487, allocations: 469.4 MB / 0.7421 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.91 kB / 1.064 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8027/0.804, allocations: 159.1 MB / 1.22 GB, free: 2.246 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate): time 0.003383/0.8074, allocations: 2.031 MB / 1.222 GB, free: 208 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.8085, allocations: 0.5689 MB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.8087, allocations: 4 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.8089, allocations: 23.67 kB / 1.222 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001729/0.8091, allocations: 43.58 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000279/0.8094, allocations: 95.88 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.8098, allocations: 299.3 kB / 1.223 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.81, allocations: 117.6 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.8102, allocations: 123.5 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.8104, allocations: 127.5 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.85e-05/0.8105, allocations: 28 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.741e-05/0.8105, allocations: 32 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.605e-05/0.8106, allocations: 67.73 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.8107, allocations: 119.4 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003339/0.8111, allocations: 307 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.8111, allocations: 0 / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8111, allocations: 0 / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.8111, allocations: 0 / 1.224 GB, free: 14.26 MB / 0.9512 GB 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.00117/0.8123, allocations: 0.6565 MB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.8123, allocations: 12.03 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.846e-05/0.8124, allocations: 63.16 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.078e-05/0.8125, allocations: 28.56 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.8129, allocations: 261.8 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.8129, allocations: 24.8 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.813, allocations: 20.38 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006032/0.8136, allocations: 291.4 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.8136, allocations: 0 / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.8136, allocations: 12 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.8136, allocations: 4 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006129/0.8142, allocations: 213.5 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.8154, allocations: 0.6465 MB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005952/0.816, allocations: 198.4 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000284/0.8163, allocations: 92.78 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.8163, allocations: 4 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000458/0.8167, allocations: 204.9 kB / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=19): time 1.603e-06/0.8168, allocations: 0 / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of matching and sorting (n=19): time 0.0009886/0.8177, allocations: 335 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.278e-05/0.8178, allocations: 136.5 kB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.818, allocations: 211.2 kB / 1.227 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.8181, allocations: 37.7 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.8182, allocations: 164.1 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.426e-05/0.8182, allocations: 51.44 kB / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.8184, allocations: 69.88 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.8185, allocations: 334.8 kB / 1.228 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.8188, allocations: 112.2 kB / 1.228 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003684/0.8192, allocations: 185.5 kB / 1.228 GB, free: 9.652 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000604/0.8198, allocations: 314.5 kB / 1.228 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.8198, allocations: 0 / 1.228 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008377/0.8207, allocations: 427.4 kB / 1.229 GB, free: 8.867 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/0.8207, allocations: 93.03 kB / 1.229 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.8207, allocations: 0 / 1.229 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.8208, allocations: 8.156 kB / 1.229 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.821, allocations: 43.95 kB / 1.229 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.821, allocations: 7.984 kB / 1.229 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.8213, allocations: 67.7 kB / 1.229 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.8214, allocations: 12 kB / 1.229 GB, free: 8.621 MB / 0.9512 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.0001517/0.8215, allocations: 152.9 kB / 1.229 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.769e-05/0.8216, allocations: 23.66 kB / 1.229 GB, free: 8.441 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.935e-05/0.8216, allocations: 25.86 kB / 1.229 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.8216, allocations: 4 kB / 1.229 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.8216, allocations: 0 / 1.229 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.8216, allocations: 0 / 1.229 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.8226, allocations: 0.623 MB / 1.23 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.8227, allocations: 0 / 1.23 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.8228, allocations: 27.95 kB / 1.23 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.408e-06/0.8228, allocations: 4 kB / 1.23 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.8228, allocations: 8 kB / 1.23 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.8229, allocations: 3.984 kB / 1.23 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8229, allocations: 0 / 1.23 GB, free: 7.691 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006776/0.8235, allocations: 353.2 kB / 1.23 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.823e-05/0.8236, allocations: 92.92 kB / 1.23 GB, free: 7.223 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/0.8237, allocations: 8 kB / 1.23 GB, free: 7.215 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.8239, allocations: 47.94 kB / 1.23 GB, free: 7.168 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.8241, allocations: 51.92 kB / 1.23 GB, free: 7.117 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.8241, allocations: 15.98 kB / 1.23 GB, free: 7.102 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001186/0.8242, allocations: 144.4 kB / 1.23 GB, free: 6.961 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8242, allocations: 0 / 1.23 GB, free: 6.961 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000304/0.8246, allocations: 63.78 kB / 1.23 GB, free: 6.898 MB / 0.9512 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.001331/0.8259, allocations: 1.019 MB / 1.231 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008024/0.8267, allocations: 422.4 kB / 1.232 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.8267, allocations: 320 / 1.232 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000341/0.8271, allocations: 123.8 kB / 1.232 GB, free: 5.281 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.8274, allocations: 37.64 kB / 1.232 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003894/0.8313, allocations: 2.692 MB / 1.235 GB, free: 2.441 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.8316, allocations: 0.7436 MB / 1.235 GB, free: 1.668 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000107/0.8317, allocations: 25.94 kB / 1.235 GB, free: 1.645 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.8319, allocations: 79.41 kB / 1.235 GB, free: 1.566 MB / 0.9512 GB Notification: Performance of SimCode: time 4.51e-07/0.8319, allocations: 0 / 1.235 GB, free: 1.566 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.8567, allocations: 5.723 MB / 1.241 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/8.634, allocations: 4.5 kB / 1.241 GB, free: 12.04 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_MinimalFlowRate.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.MinimalFlowRate.pipe 2>&1)