Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_EvaporationFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_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.005518/0.005518, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.001357/0.001357, allocations: 196.3 kB / 16.67 MB, free: 6.352 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.69/2.69, allocations: 469.4 MB / 0.7422 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 63.84 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2746, allocations: 159.1 MB / 1.22 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal): time 0.003598/0.2782, allocations: 2.381 MB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.7448/1.023, allocations: 151 MB / 1.37 GB, free: 13.24 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/1.023, allocations: 5.375 kB / 1.37 GB, free: 13.24 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0003487/1.024, allocations: 104.2 kB / 1.37 GB, free: 13.19 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0007418/1.024, allocations: 239.3 kB / 1.37 GB, free: 13.07 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001671/1.026, allocations: 0.6697 MB / 1.371 GB, free: 12.74 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0005781/1.027, allocations: 435.8 kB / 1.371 GB, free: 12.55 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/1.027, allocations: 49.25 kB / 1.371 GB, free: 12.53 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000305/1.027, allocations: 189.5 kB / 1.371 GB, free: 12.45 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003823/1.028, allocations: 196.2 kB / 1.371 GB, free: 12.38 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 7.58e-05/1.028, allocations: 29.84 kB / 1.371 GB, free: 12.38 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/1.029, allocations: 0.6268 MB / 1.372 GB, free: 12.18 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001177/1.029, allocations: 85.7 kB / 1.372 GB, free: 12.13 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.000205/1.029, allocations: 167 kB / 1.372 GB, free: 12.04 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.00102/1.03, allocations: 0.6589 MB / 1.373 GB, free: 11.8 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/1.03, allocations: 1.469 kB / 1.373 GB, free: 11.8 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.233e-06/1.03, allocations: 0 / 1.373 GB, free: 11.8 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.185e-05/1.03, allocations: 0 / 1.373 GB, free: 11.8 MB / 1.076 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.001696/1.032, allocations: 0.7531 MB / 1.374 GB, free: 11.22 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/1.032, allocations: 9.25 kB / 1.374 GB, free: 11.22 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.69e-05/1.032, allocations: 49.62 kB / 1.374 GB, free: 11.17 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/1.034, allocations: 159.2 kB / 1.374 GB, free: 11.14 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/1.034, allocations: 322.2 kB / 1.374 GB, free: 10.87 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.414e-05/1.034, allocations: 41.61 kB / 1.374 GB, free: 10.83 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.786e-05/1.034, allocations: 26.02 kB / 1.374 GB, free: 10.82 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004076/1.035, allocations: 214.1 kB / 1.374 GB, free: 10.71 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/1.035, allocations: 3.938 kB / 1.374 GB, free: 10.71 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/1.035, allocations: 6.219 kB / 1.374 GB, free: 10.7 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/1.035, allocations: 2.344 kB / 1.374 GB, free: 10.7 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/1.035, allocations: 114.2 kB / 1.375 GB, free: 10.67 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/1.038, allocations: 0.9959 MB / 1.375 GB, free: 10.02 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000818/1.038, allocations: 164.4 kB / 1.376 GB, free: 9.953 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/1.039, allocations: 97.08 kB / 1.376 GB, free: 9.914 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/1.039, allocations: 6.297 kB / 1.376 GB, free: 9.91 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003558/1.039, allocations: 198.3 kB / 1.376 GB, free: 9.789 MB / 1.076 GB Notification: Performance of pre-optimization done (n=19): time 1.813e-06/1.039, allocations: 0 / 1.376 GB, free: 9.789 MB / 1.076 GB Notification: Performance of matching and sorting (n=19): time 0.004229/1.043, allocations: 0.8672 MB / 1.377 GB, free: 9.398 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/1.043, allocations: 84.89 kB / 1.377 GB, free: 9.301 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/1.044, allocations: 345.2 kB / 1.377 GB, free: 9.074 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/1.044, allocations: 33.05 kB / 1.377 GB, free: 9.039 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/1.044, allocations: 148.9 kB / 1.377 GB, free: 8.898 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 5.736e-05/1.044, allocations: 59.23 kB / 1.377 GB, free: 8.848 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/1.044, allocations: 84.86 kB / 1.377 GB, free: 8.789 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001181/1.044, allocations: 349.2 kB / 1.378 GB, free: 8.445 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/1.045, allocations: 137.9 kB / 1.378 GB, free: 8.383 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004357/1.045, allocations: 221.6 kB / 1.378 GB, free: 8.246 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000657/1.046, allocations: 337.7 kB / 1.378 GB, free: 8.023 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/1.046, allocations: 5.531 kB / 1.379 GB, free: 8.02 MB / 1.076 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003777/1.05, allocations: 0.8624 MB / 1.379 GB, free: 7.57 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/1.05, allocations: 40.84 kB / 1.379 GB, free: 7.531 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/1.05, allocations: 1.188 kB / 1.379 GB, free: 7.531 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009264/1.051, allocations: 189.7 kB / 1.38 GB, free: 7.438 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/1.051, allocations: 44.59 kB / 1.38 GB, free: 7.422 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/1.054, allocations: 2.345 MB / 1.382 GB, free: 5.164 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/1.054, allocations: 48.41 kB / 1.382 GB, free: 5.133 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.499e-05/1.054, allocations: 19.67 kB / 1.382 GB, free: 5.125 MB / 1.076 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.0002549/1.055, allocations: 191.9 kB / 1.382 GB, free: 4.949 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.067e-05/1.055, allocations: 39.7 kB / 1.382 GB, free: 4.926 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.967e-05/1.055, allocations: 22.94 kB / 1.382 GB, free: 4.91 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/1.055, allocations: 9.031 kB / 1.382 GB, free: 4.902 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/1.055, allocations: 1.312 kB / 1.382 GB, free: 4.902 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/1.055, allocations: 7.922 kB / 1.382 GB, free: 4.895 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00335/1.058, allocations: 1.027 MB / 1.383 GB, free: 4.188 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.058, allocations: 0 / 1.383 GB, free: 4.188 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.037e-05/1.058, allocations: 13.33 kB / 1.383 GB, free: 4.18 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003433/1.059, allocations: 120.2 kB / 1.383 GB, free: 4.113 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/1.059, allocations: 15.58 kB / 1.383 GB, free: 4.102 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009006/1.06, allocations: 0.736 MB / 1.384 GB, free: 3.434 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.06, allocations: 0 / 1.384 GB, free: 3.434 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003224/1.063, allocations: 0.8799 MB / 1.385 GB, free: 2.922 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/1.063, allocations: 142.1 kB / 1.385 GB, free: 2.777 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.108e-05/1.063, allocations: 7.844 kB / 1.385 GB, free: 2.773 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002779/1.063, allocations: 11.52 kB / 1.385 GB, free: 2.77 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/1.063, allocations: 13.33 kB / 1.385 GB, free: 2.762 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/1.063, allocations: 10.05 kB / 1.385 GB, free: 2.758 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0003095/1.064, allocations: 240.9 kB / 1.385 GB, free: 2.605 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.21e-07/1.064, allocations: 1.312 kB / 1.385 GB, free: 2.605 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005484/1.064, allocations: 110.9 kB / 1.385 GB, free: 2.59 MB / 1.076 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.00164/1.066, allocations: 1.231 MB / 1.387 GB, free: 1.637 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001735/1.068, allocations: 0.5606 MB / 1.387 GB, free: 1.27 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.068, allocations: 9.25 kB / 1.387 GB, free: 1.262 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.000797/1.069, allocations: 258.3 kB / 1.387 GB, free: 1.094 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/1.069, allocations: 65.55 kB / 1.388 GB, free: 1.055 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/1.081, allocations: 4.348 MB / 1.392 GB, free: 14.23 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/1.081, allocations: 0.763 MB / 1.393 GB, free: 13.5 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0001787/1.081, allocations: 36.72 kB / 1.393 GB, free: 13.48 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/1.082, allocations: 83.91 kB / 1.393 GB, free: 13.41 MB / 1.092 GB Notification: Performance of SimCode: time 6.11e-07/1.082, allocations: 0 / 1.393 GB, free: 13.41 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/1.112, allocations: 10.33 MB / 1.403 GB, free: 8.301 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/12.5, allocations: 14.42 kB / 1.403 GB, free: 8.289 MB / 1.092 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.DXSystems.Cooling.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_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_EvaporationFlowReversal.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe 2>&1)