Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.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.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi_b.SGen_flow|chi_b.chi.sta_a1.T|chi_b.chi.sta_a2.T|chi_b.chi.sta_b1.T|chi_b.chi.sta_b2.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") translateModel(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi_b.SGen_flow|chi_b.chi.sta_a1.T|chi_b.chi.sta_a2.T|chi_b.chi.sta_b1.T|chi_b.chi.sta_b2.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007658/0.007659, allocations: 100.4 kB / 15.87 MB, free: 5.867 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.001787/0.001787, allocations: 192.8 kB / 16.79 MB, free: 5.809 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.47/1.47, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.723/2.723, allocations: 461.8 MB / 0.7348 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 60.64 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3519, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.071/0.4229, allocations: 70.09 MB / 1.121 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02456/0.4475, allocations: 19.01 MB / 1.14 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003023/0.4506, allocations: 59.62 kB / 1.14 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.4531, allocations: 0.6488 MB / 1.14 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0075/0.4607, allocations: 2.616 MB / 1.143 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004181/0.4649, allocations: 1.486 MB / 1.144 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.006638/0.4715, allocations: 5.005 MB / 1.149 GB, free: 5.094 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002412/0.4739, allocations: 1.187 MB / 1.15 GB, free: 3.867 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003828/0.4778, allocations: 1.497 MB / 1.152 GB, free: 2.363 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002438/0.4802, allocations: 1.167 MB / 1.153 GB, free: 1.191 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004316/0.4807, allocations: 79.94 kB / 1.153 GB, free: 1.113 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003333/0.484, allocations: 1.236 MB / 1.154 GB, free: 15.88 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005191/0.4846, allocations: 294.6 kB / 1.155 GB, free: 15.59 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.00172/0.4863, allocations: 0.8161 MB / 1.155 GB, free: 14.77 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003173/0.4895, allocations: 2.425 MB / 1.158 GB, free: 12.34 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4895, allocations: 0 / 1.158 GB, free: 12.34 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4895, allocations: 0 / 1.158 GB, free: 12.34 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.99e-05/0.4896, allocations: 4 kB / 1.158 GB, free: 12.33 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.004558/0.4942, allocations: 2.03 MB / 1.16 GB, free: 10.24 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.4942, allocations: 19.95 kB / 1.16 GB, free: 10.22 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00249/0.4967, allocations: 438.5 kB / 1.16 GB, free: 9.789 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003195/0.5, allocations: 1.512 MB / 1.162 GB, free: 8.219 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003917/0.5004, allocations: 138 kB / 1.162 GB, free: 8.082 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002296/0.5006, allocations: 104 kB / 1.162 GB, free: 7.98 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002841/0.5035, allocations: 1.289 MB / 1.163 GB, free: 6.598 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.5035, allocations: 11.92 kB / 1.163 GB, free: 6.586 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.5036, allocations: 40 kB / 1.163 GB, free: 6.547 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.5037, allocations: 28 kB / 1.163 GB, free: 6.52 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002802/0.5065, allocations: 1.105 MB / 1.164 GB, free: 5.41 MB / 0.92 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01082/0.5173, allocations: 7.14 MB / 1.171 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003342/0.5207, allocations: 0.8033 MB / 1.172 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006293/0.5213, allocations: 285.9 kB / 1.172 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001669/0.523, allocations: 1.722 MB / 1.174 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.5231, allocations: 46.88 kB / 1.174 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 2.705e-06/0.5231, allocations: 0 / 1.174 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.005621/0.5287, allocations: 1.327 MB / 1.175 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.5289, allocations: 63.78 kB / 1.175 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003257/0.5321, allocations: 1.529 MB / 1.177 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.5322, allocations: 33.7 kB / 1.177 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006179/0.5329, allocations: 0.6653 MB / 1.178 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002037/0.5331, allocations: 165.6 kB / 1.178 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/0.5334, allocations: 166.4 kB / 1.178 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5335, allocations: 330 kB / 1.178 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009976/0.5346, allocations: 365.8 kB / 1.179 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.5358, allocations: 0.6315 MB / 1.179 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001832/0.5376, allocations: 0.8522 MB / 1.18 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.5377, allocations: 4 kB / 1.18 GB, free: 4.125 MB / 0.9356 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004604/0.5423, allocations: 1.333 MB / 1.181 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.5423, allocations: 16.14 kB / 1.181 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.5424, allocations: 8 kB / 1.181 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009634/0.5433, allocations: 212.6 kB / 1.182 GB, free: 2.551 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008041/0.5441, allocations: 183.7 kB / 1.182 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009614/0.5451, allocations: 0.7162 MB / 1.182 GB, free: 1.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.5471, allocations: 238.6 kB / 1.183 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.5472, allocations: 47.97 kB / 1.183 GB, free: 1.348 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0007664/0.548, allocations: 349.6 kB / 1.183 GB, free: 0.9961 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004652/0.5485, allocations: 146.3 kB / 1.183 GB, free: 0.8516 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00263/0.5511, allocations: 1.148 MB / 1.184 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/0.5512, allocations: 11.98 kB / 1.184 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.5512, allocations: 3.938 kB / 1.184 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.5512, allocations: 0 / 1.184 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005727/0.5569, allocations: 2.51 MB / 1.187 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.5569, allocations: 0 / 1.187 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.5573, allocations: 87.77 kB / 1.187 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000835/0.5582, allocations: 220.7 kB / 1.187 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.467e-05/0.5583, allocations: 16 kB / 1.187 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.5596, allocations: 0.7669 MB / 1.188 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.5596, allocations: 8.078 kB / 1.188 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.5633, allocations: 1.203 MB / 1.189 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009051/0.5642, allocations: 354.9 kB / 1.189 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004533/0.5647, allocations: 12 kB / 1.189 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.5659, allocations: 87.84 kB / 1.19 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.5661, allocations: 40.44 kB / 1.19 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.843e-05/0.5661, allocations: 27.98 kB / 1.19 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.002299/0.5684, allocations: 1.078 MB / 1.191 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5685, allocations: 0 / 1.191 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001699/0.5702, allocations: 439.4 kB / 1.191 GB, free: 8.676 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001175/0.5713, allocations: 475.5 kB / 1.191 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00233/0.5737, allocations: 0.8367 MB / 1.192 GB, free: 7.371 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.5737, allocations: 4.25 kB / 1.192 GB, free: 7.367 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.5751, allocations: 435.3 kB / 1.193 GB, free: 6.945 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004565/0.5797, allocations: 0.6945 MB / 1.193 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007522/0.5872, allocations: 2.759 MB / 1.196 GB, free: 3.441 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/0.5886, allocations: 1.161 MB / 1.197 GB, free: 2.254 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006579/0.5893, allocations: 123.4 kB / 1.197 GB, free: 2.133 MB / 0.9512 GB Notification: Performance of SimCode: time 4.468e-06/0.5893, allocations: 0 / 1.197 GB, free: 2.133 MB / 0.9512 GB Notification: Performance of Templates: time 0.06507/0.6543, allocations: 33.83 MB / 1.23 GB, free: 0.5195 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches