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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: 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_latest_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_latest_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.001004/0.001004, allocations: 99.5 kB / 16.02 MB, free: 76 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.001327/0.001327, allocations: 180.2 kB / 16.92 MB, free: 6.891 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.462/1.462, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.932/2.932, allocations: 462.6 MB / 0.737 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003708, allocations: 15.12 kB / 0.9034 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3706, allocations: 159.6 MB / 1.059 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal): time 0.002948/0.3736, allocations: 2.084 MB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1691/0.5427, allocations: 147.1 MB / 1.205 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000324/0.5431, allocations: 0 / 1.205 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004401/0.5436, allocations: 87.55 kB / 1.205 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0009195/0.5445, allocations: 209.9 kB / 1.205 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.5465, allocations: 0.5882 MB / 1.206 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007141/0.5472, allocations: 406.6 kB / 1.206 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.5474, allocations: 44.72 kB / 1.206 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000367/0.5477, allocations: 171.4 kB / 1.206 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004223/0.5482, allocations: 183.4 kB / 1.207 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.477e-05/0.5483, allocations: 16 kB / 1.207 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.5497, allocations: 0.6628 MB / 1.207 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.5498, allocations: 79.66 kB / 1.207 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002331/0.5501, allocations: 172.9 kB / 1.208 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0008383/0.5509, allocations: 466.9 kB / 1.208 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.551, allocations: 0 / 1.208 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.551, allocations: 4 kB / 1.208 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.185e-05/0.551, allocations: 0 / 1.208 GB, free: 12.21 MB / 0.9669 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.001643/0.5526, allocations: 0.6871 MB / 1.209 GB, free: 11.47 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.5527, allocations: 11.97 kB / 1.209 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001633/0.5543, allocations: 164.4 kB / 1.209 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005709/0.5549, allocations: 310.8 kB / 1.209 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-05/0.555, allocations: 49.64 kB / 1.209 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.214e-05/0.5551, allocations: 24 kB / 1.209 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004376/0.5555, allocations: 200.1 kB / 1.209 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.5555, allocations: 0 / 1.209 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.5556, allocations: 11.94 kB / 1.209 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.5556, allocations: 7.938 kB / 1.209 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.5559, allocations: 124.1 kB / 1.21 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/0.5585, allocations: 0.9964 MB / 1.211 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008251/0.5593, allocations: 170.4 kB / 1.211 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.5595, allocations: 96.83 kB / 1.211 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.5596, allocations: 0 / 1.211 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003962/0.56, allocations: 198.1 kB / 1.211 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.593e-06/0.56, allocations: 0 / 1.211 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.004352/0.5644, allocations: 0.8805 MB / 1.212 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.5644, allocations: 85.11 kB / 1.212 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004404/0.5649, allocations: 340.4 kB / 1.212 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.34e-05/0.565, allocations: 33.7 kB / 1.212 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.5651, allocations: 148.6 kB / 1.212 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.088e-05/0.5652, allocations: 55.25 kB / 1.212 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.607e-05/0.5653, allocations: 41.69 kB / 1.212 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.5654, allocations: 342.8 kB / 1.213 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.5658, allocations: 148.5 kB / 1.213 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/0.5662, allocations: 221.3 kB / 1.213 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007106/0.5669, allocations: 352.5 kB / 1.214 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.567, allocations: 0 / 1.214 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003881/0.5709, allocations: 0.8691 MB / 1.214 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.58e-05/0.5709, allocations: 37.7 kB / 1.214 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.5709, allocations: 4 kB / 1.214 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009394/0.5719, allocations: 201.6 kB / 1.215 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.5721, allocations: 43.92 kB / 1.215 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003114/0.5752, allocations: 2.233 MB / 1.217 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004788/0.5757, allocations: 51.58 kB / 1.217 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.5758, allocations: 19.92 kB / 1.217 GB, free: 2.594 MB / 0.9669 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.0002652/0.5761, allocations: 192.9 kB / 1.217 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.811e-05/0.5761, allocations: 31.62 kB / 1.217 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.947e-05/0.5762, allocations: 27.17 kB / 1.217 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.5762, allocations: 0 / 1.217 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.5762, allocations: 0 / 1.217 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.5762, allocations: 0 / 1.217 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003399/0.5796, allocations: 1.067 MB / 1.218 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.5796, allocations: 3.938 kB / 1.218 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.022e-05/0.5797, allocations: 4 kB / 1.218 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00032/0.58, allocations: 116.8 kB / 1.218 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.5801, allocations: 11.98 kB / 1.218 GB, free: 1.066 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009153/0.581, allocations: 0.7521 MB / 1.219 GB, free: 300 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.581, allocations: 0 / 1.219 GB, free: 300 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.5843, allocations: 0.8937 MB / 1.22 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.5845, allocations: 132.7 kB / 1.22 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.5846, allocations: 12.06 kB / 1.22 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.5849, allocations: 11.98 kB / 1.22 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/0.5849, allocations: 15.97 kB / 1.22 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.715e-05/0.585, allocations: 11.98 kB / 1.22 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000317/0.5853, allocations: 239 kB / 1.22 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5853, allocations: 0 / 1.22 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005495/0.5859, allocations: 115.9 kB / 1.22 GB, free: 14.83 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.0004081/0.5863, allocations: 179.1 kB / 1.221 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001662/0.5879, allocations: 0.5658 MB / 1.221 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.588, allocations: 0 / 1.221 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007601/0.5887, allocations: 240.1 kB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005367/0.5893, allocations: 67.06 kB / 1.221 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.5908, allocations: 0.7552 MB / 1.222 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.5911, allocations: 0.756 MB / 1.223 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.173e-05/0.5912, allocations: 27.42 kB / 1.223 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of SimCode: time 6.71e-07/0.5913, allocations: 0 / 1.223 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of Templates: time 0.01037/0.6016, allocations: 6.46 MB / 1.229 GB, free: 5.715 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.makefile (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 & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_EvaporationFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches