Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eva.m|eva.mEva_flow|eva.mAir_flow|int.y",fileNamePrefix="Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eva.m|eva.mEva_flow|eva.mAir_flow|int.y",fileNamePrefix="Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 107.8 kB / 16.27 MB, free: 6.414 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.001281/0.001281, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.506/1.506, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.836/2.836, allocations: 469.8 MB / 0.743 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.38 kB / 0.9092 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3687, allocations: 159.2 MB / 1.065 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal): time 0.004199/0.373, allocations: 2.377 MB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.7676/1.141, allocations: 151 MB / 1.214 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002203/1.141, allocations: 1.938 kB / 1.214 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000403/1.141, allocations: 90.83 kB / 1.214 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0008275/1.142, allocations: 243.2 kB / 1.215 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001859/1.144, allocations: 0.6435 MB / 1.215 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005802/1.145, allocations: 436.8 kB / 1.216 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/1.145, allocations: 54.84 kB / 1.216 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/1.145, allocations: 183.7 kB / 1.216 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000373/1.145, allocations: 194.9 kB / 1.216 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.981e-05/1.145, allocations: 37.64 kB / 1.216 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/1.147, allocations: 0.6174 MB / 1.217 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001414/1.147, allocations: 84.66 kB / 1.217 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002089/1.147, allocations: 164.2 kB / 1.217 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001086/1.148, allocations: 0.6478 MB / 1.218 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/1.148, allocations: 3.938 kB / 1.218 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.643e-06/1.148, allocations: 0 / 1.218 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.224e-06/1.148, allocations: 1.438 kB / 1.218 GB, free: 8.922 MB / 0.9356 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.001655/1.15, allocations: 0.744 MB / 1.218 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/1.15, allocations: 14 kB / 1.218 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/1.152, allocations: 156.1 kB / 1.219 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005255/1.152, allocations: 310.9 kB / 1.219 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/1.152, allocations: 46.08 kB / 1.219 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.561e-05/1.152, allocations: 21.66 kB / 1.219 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/1.153, allocations: 208.5 kB / 1.219 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/1.153, allocations: 0 / 1.219 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.757e-05/1.153, allocations: 6.75 kB / 1.219 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/1.153, allocations: 6.688 kB / 1.219 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002726/1.153, allocations: 115.4 kB / 1.219 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002685/1.156, allocations: 0.99 MB / 1.22 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008276/1.157, allocations: 166.4 kB / 1.22 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/1.157, allocations: 93.45 kB / 1.22 GB, free: 6.699 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/1.157, allocations: 9.562 kB / 1.22 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004723/1.157, allocations: 190.2 kB / 1.221 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=19): time 1.492e-06/1.157, allocations: 0 / 1.221 GB, free: 6.547 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.004388/1.162, allocations: 0.8625 MB / 1.222 GB, free: 6.062 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.303e-05/1.162, allocations: 84.98 kB / 1.222 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/1.162, allocations: 344.9 kB / 1.222 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/1.163, allocations: 32.73 kB / 1.222 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/1.163, allocations: 149.7 kB / 1.222 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.335e-05/1.163, allocations: 59.45 kB / 1.222 GB, free: 5.516 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/1.163, allocations: 82.88 kB / 1.222 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001777/1.163, allocations: 350.6 kB / 1.223 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/1.163, allocations: 134.1 kB / 1.223 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/1.164, allocations: 223 kB / 1.223 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006609/1.165, allocations: 340.8 kB / 1.223 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.165, allocations: 0 / 1.223 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003781/1.168, allocations: 0.8515 MB / 1.224 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.232e-05/1.168, allocations: 41.78 kB / 1.224 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/1.168, allocations: 2.5 kB / 1.224 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009221/1.169, allocations: 192.9 kB / 1.224 GB, free: 4.113 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/1.17, allocations: 44.47 kB / 1.224 GB, free: 4.098 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003305/1.173, allocations: 2.352 MB / 1.227 GB, free: 1.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005035/1.173, allocations: 51.17 kB / 1.227 GB, free: 1.797 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.324e-05/1.174, allocations: 21.14 kB / 1.227 GB, free: 1.789 MB / 0.9356 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.0002559/1.174, allocations: 186.6 kB / 1.227 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.586e-05/1.174, allocations: 30.91 kB / 1.227 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.229e-05/1.174, allocations: 27.39 kB / 1.227 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/1.174, allocations: 0 / 1.227 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/1.174, allocations: 0 / 1.227 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/1.174, allocations: 10.09 kB / 1.227 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/1.177, allocations: 1.033 MB / 1.228 GB, free: 0.8555 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/1.177, allocations: 4 kB / 1.228 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.672e-05/1.177, allocations: 8.5 kB / 1.228 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003309/1.178, allocations: 115.3 kB / 1.228 GB, free: 0.7852 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/1.178, allocations: 9.062 kB / 1.228 GB, free: 0.7812 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/1.179, allocations: 0.7539 MB / 1.229 GB, free: 96 kB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.179, allocations: 2.656 kB / 1.229 GB, free: 96 kB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00339/1.182, allocations: 0.8696 MB / 1.23 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/1.182, allocations: 136.7 kB / 1.23 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.828e-05/1.183, allocations: 12.06 kB / 1.23 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/1.183, allocations: 23.91 kB / 1.23 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/1.183, allocations: 11.98 kB / 1.23 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/1.183, allocations: 7.984 kB / 1.23 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003422/1.183, allocations: 239 kB / 1.23 GB, free: 15 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/1.183, allocations: 0 / 1.23 GB, free: 15 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005963/1.184, allocations: 112 kB / 1.23 GB, free: 14.89 MB / 0.9512 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.000396/1.184, allocations: 183.9 kB / 1.23 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001707/1.186, allocations: 0.5776 MB / 1.231 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.186, allocations: 0 / 1.231 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007967/1.187, allocations: 252.1 kB / 1.231 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/1.187, allocations: 66.03 kB / 1.231 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/1.189, allocations: 0.648 MB / 1.232 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004219/1.189, allocations: 0.7676 MB / 1.233 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.127e-05/1.189, allocations: 23.42 kB / 1.233 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/1.189, allocations: 0 / 1.233 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of Templates: time 0.01073/1.2, allocations: 6.508 MB / 1.239 GB, free: 5.805 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.makefile (rm -f Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; mkfifo Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe >> ../files/Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.sim & ./Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_EvaporationFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches