Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_EvaporationFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_EvaporationFlowReversal",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.006701/0.006701, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001557/0.001557, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.062/2.062, allocations: 390.3 MB / 0.6648 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001314, allocations: 71.89 kB / 0.9505 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6428/0.6441, allocations: 140.4 MB / 1.088 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal): time 0.003087/0.6472, allocations: 2.408 MB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1552/0.8024, allocations: 151 MB / 1.237 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.8027, allocations: 2.156 kB / 1.237 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000368/0.8031, allocations: 90.28 kB / 1.237 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0007529/0.8039, allocations: 240.8 kB / 1.238 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001619/0.8055, allocations: 0.6643 MB / 1.238 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.8061, allocations: 440.2 kB / 1.239 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.8062, allocations: 47.34 kB / 1.239 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.8065, allocations: 185.8 kB / 1.239 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003648/0.8069, allocations: 203.2 kB / 1.239 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.304e-05/0.8069, allocations: 30.12 kB / 1.239 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001161/0.8081, allocations: 0.6275 MB / 1.24 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.8082, allocations: 82.84 kB / 1.24 GB, free: 464 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.8084, allocations: 163.3 kB / 1.24 GB, free: 348 kB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.8095, allocations: 0.6591 MB / 1.241 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.8095, allocations: 0 / 1.241 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8095, allocations: 0 / 1.241 GB, free: 15.91 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.8095, allocations: 1.219 kB / 1.241 GB, free: 15.91 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001604/0.8111, allocations: 0.7508 MB / 1.241 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.8112, allocations: 9.719 kB / 1.241 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.812e-05/0.8112, allocations: 50.7 kB / 1.241 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001566/0.8128, allocations: 163.4 kB / 1.242 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005429/0.8133, allocations: 321.2 kB / 1.242 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.8134, allocations: 45.89 kB / 1.242 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.717e-05/0.8135, allocations: 24.69 kB / 1.242 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004016/0.8139, allocations: 213.6 kB / 1.242 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.8139, allocations: 3.938 kB / 1.242 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/0.814, allocations: 6.344 kB / 1.242 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.814, allocations: 6.25 kB / 1.242 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.8143, allocations: 119.8 kB / 1.242 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.8167, allocations: 0.9785 MB / 1.243 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007663/0.8175, allocations: 166.5 kB / 1.243 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.8177, allocations: 97.88 kB / 1.243 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.8177, allocations: 13.12 kB / 1.243 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/0.8181, allocations: 189.1 kB / 1.244 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 2.083e-06/0.8181, allocations: 0 / 1.244 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.004076/0.8222, allocations: 0.8637 MB / 1.245 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.8222, allocations: 89.05 kB / 1.245 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/0.8227, allocations: 344.4 kB / 1.245 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.264e-05/0.8227, allocations: 33.7 kB / 1.245 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.8228, allocations: 152.7 kB / 1.245 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.602e-05/0.8229, allocations: 59.48 kB / 1.245 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.8231, allocations: 93.92 kB / 1.245 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.961e-05/0.8232, allocations: 334.8 kB / 1.246 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000327/0.8235, allocations: 140.5 kB / 1.246 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.8239, allocations: 221.3 kB / 1.246 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005981/0.8245, allocations: 328.7 kB / 1.246 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.8245, allocations: 4 kB / 1.246 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003595/0.8281, allocations: 0.8569 MB / 1.247 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.8282, allocations: 41.62 kB / 1.247 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.8282, allocations: 4 kB / 1.247 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008867/0.8291, allocations: 193.6 kB / 1.247 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.8293, allocations: 43.91 kB / 1.247 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/0.8322, allocations: 2.342 MB / 1.25 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004956/0.8327, allocations: 43.72 kB / 1.25 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.177e-05/0.8327, allocations: 23.97 kB / 1.25 GB, free: 7.223 MB / 0.9825 GB Warning: Assuming fixed start value for the following 1 variables: eva.off:DISCRETE(fixed = true protected = true ) "Signal, true when component is off" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.eva.off,eva.off,$whenCondition2,mAir_flow.nextEventScaled,mAir_flow.nextEvent,$PRE.mAir_flow.nextEvent,mAir_flow.last,mAir_flow.b,mAir_flow.a,$whenCondition1,int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {7} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002355/0.833, allocations: 190.1 kB / 1.25 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.97e-05/0.8331, allocations: 31.81 kB / 1.25 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.478e-05/0.8331, allocations: 35.11 kB / 1.25 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.8331, allocations: 0 / 1.25 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.8331, allocations: 0 / 1.25 GB, free: 6.957 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.8331, allocations: 3.938 kB / 1.25 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00318/0.8363, allocations: 1.032 MB / 1.251 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.8363, allocations: 7.938 kB / 1.251 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.108e-05/0.8364, allocations: 7.938 kB / 1.251 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003018/0.8367, allocations: 120.8 kB / 1.251 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.8367, allocations: 8 kB / 1.251 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008364/0.8376, allocations: 0.7499 MB / 1.252 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.8376, allocations: 0 / 1.252 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/0.8407, allocations: 0.8786 MB / 1.253 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001628/0.8408, allocations: 128.9 kB / 1.253 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.515e-05/0.8409, allocations: 4 kB / 1.253 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.8412, allocations: 23.98 kB / 1.253 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.8412, allocations: 7.984 kB / 1.253 GB, free: 3.855 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.975e-05/0.8413, allocations: 19.92 kB / 1.253 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002744/0.8416, allocations: 231 kB / 1.253 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8416, allocations: 0 / 1.253 GB, free: 3.609 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005296/0.8421, allocations: 115.9 kB / 1.253 GB, free: 3.496 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (eva.m,int.y) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,eva.off,mAir_flow.a,mAir_flow.b,mAir_flow.last,mAir_flow.nextEvent,mAir_flow.nextEventScaled) * Number of discrete states: 7 (eva.off,mAir_flow.nextEvent,mAir_flow.last,mAir_flow.nextEventScaled,mAir_flow.b,mAir_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {7} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001518/0.8436, allocations: 1.229 MB / 1.254 GB, free: 2.234 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001546/0.8452, allocations: 0.5693 MB / 1.255 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8452, allocations: 0 / 1.255 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007314/0.8459, allocations: 264.1 kB / 1.255 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.8464, allocations: 72.92 kB / 1.255 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.857, allocations: 4.354 MB / 1.26 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.8573, allocations: 0.7676 MB / 1.26 GB, free: 12.03 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001481/0.8575, allocations: 22.3 kB / 1.26 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.8576, allocations: 87.39 kB / 1.26 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of SimCode: time 4.81e-07/0.8576, allocations: 0 / 1.26 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.8887, allocations: 10.35 MB / 1.27 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.87, allocations: 2.75 kB / 1.27 GB, free: 1.824 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal_res.csv --start-time 0 --stop-time 2400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.96 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_EvaporationFlowReversal.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe 2>&1)