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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001032/0.001032, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008417/0.008417, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.571/1.571, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.872/2.872, allocations: 473.4 MB / 0.7469 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004248/0.0004249, allocations: 7.656 kB / 0.9158 GB, free: 33.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3854, allocations: 162.2 MB / 1.074 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06138/0.4469, allocations: 68.88 MB / 1.141 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02315/0.4701, allocations: 18.79 MB / 1.16 GB, free: 15.61 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002688/0.4728, allocations: 63.56 kB / 1.16 GB, free: 15.54 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.002155/0.475, allocations: 0.6566 MB / 1.16 GB, free: 14.88 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.007953/0.4829, allocations: 2.613 MB / 1.163 GB, free: 12.26 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004218/0.4872, allocations: 1.491 MB / 1.164 GB, free: 10.78 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.008182/0.4954, allocations: 5.008 MB / 1.169 GB, free: 5.75 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003515/0.4989, allocations: 1.152 MB / 1.17 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004126/0.5031, allocations: 1.454 MB / 1.172 GB, free: 3.105 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002326/0.5055, allocations: 1.104 MB / 1.173 GB, free: 1.996 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.000195/0.5057, allocations: 56 kB / 1.173 GB, free: 1.941 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003149/0.5088, allocations: 1.228 MB / 1.174 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000291/0.5091, allocations: 254.7 kB / 1.174 GB, free: 472 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.5102, allocations: 0.8061 MB / 1.175 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00384/0.5141, allocations: 2.952 MB / 1.178 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.5141, allocations: 0 / 1.178 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.294e-06/0.5141, allocations: 0 / 1.178 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.703e-05/0.5141, allocations: 0 / 1.178 GB, free: 12.68 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: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.003172/0.5173, allocations: 1.707 MB / 1.18 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.5173, allocations: 12.03 kB / 1.18 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.5196, allocations: 0.4984 MB / 1.18 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002525/0.5222, allocations: 1.511 MB / 1.182 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003857/0.5226, allocations: 150 kB / 1.182 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.5227, allocations: 100 kB / 1.182 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002752/0.5255, allocations: 1.326 MB / 1.183 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.5255, allocations: 3.938 kB / 1.183 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.5256, allocations: 44 kB / 1.183 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.622e-05/0.5257, allocations: 24 kB / 1.183 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.5285, allocations: 1.171 MB / 1.185 GB, free: 5.93 MB / 0.9356 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.00876/0.5373, allocations: 7.184 MB / 1.192 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003345/0.5406, allocations: 0.8889 MB / 1.192 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006384/0.5413, allocations: 302 kB / 1.193 GB, free: 13.05 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001365/0.5427, allocations: 1.722 MB / 1.194 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.5427, allocations: 42.94 kB / 1.194 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=48): time 3.156e-06/0.5427, allocations: 0 / 1.194 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.0051/0.5478, allocations: 1.448 MB / 1.196 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.5479, allocations: 59.84 kB / 1.196 GB, free: 9.348 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002446/0.5503, allocations: 1.537 MB / 1.197 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 7.47e-05/0.5504, allocations: 37.7 kB / 1.197 GB, free: 7.758 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005853/0.551, allocations: 0.6653 MB / 1.198 GB, free: 7.086 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.5512, allocations: 173.6 kB / 1.198 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.712e-05/0.5513, allocations: 65.62 kB / 1.198 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.5515, allocations: 330 kB / 1.199 GB, free: 6.516 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.5525, allocations: 385.8 kB / 1.199 GB, free: 6.137 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.5537, allocations: 0.6646 MB / 1.2 GB, free: 5.359 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001854/0.5556, allocations: 0.899 MB / 1.201 GB, free: 4.367 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.5556, allocations: 3.938 kB / 1.201 GB, free: 4.363 MB / 0.9512 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004685/0.5603, allocations: 1.443 MB / 1.202 GB, free: 2.91 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.5603, allocations: 8 kB / 1.202 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.5603, allocations: 4 kB / 1.202 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009661/0.5613, allocations: 229 kB / 1.202 GB, free: 2.672 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007689/0.5621, allocations: 199.7 kB / 1.202 GB, free: 2.477 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009258/0.563, allocations: 0.7279 MB / 1.203 GB, free: 1.723 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.5649, allocations: 266.7 kB / 1.203 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.565, allocations: 43.98 kB / 1.203 GB, free: 1.418 MB / 0.9512 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.0007451/0.5657, allocations: 349.6 kB / 1.204 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.566, allocations: 142.2 kB / 1.204 GB, free: 0.9258 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002507/0.5685, allocations: 1.18 MB / 1.205 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.209e-05/0.5685, allocations: 11.98 kB / 1.205 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5685, allocations: 3.938 kB / 1.205 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.5685, allocations: 3.984 kB / 1.205 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005434/0.574, allocations: 2.592 MB / 1.208 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.574, allocations: 0 / 1.208 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003977/0.5744, allocations: 96.06 kB / 1.208 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009034/0.5753, allocations: 228.6 kB / 1.208 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/0.5754, allocations: 12 kB / 1.208 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.5768, allocations: 0.8021 MB / 1.209 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.5768, allocations: 3.938 kB / 1.209 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003728/0.5805, allocations: 1.293 MB / 1.21 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007835/0.5813, allocations: 374.8 kB / 1.21 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.5815, allocations: 12 kB / 1.21 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.5825, allocations: 107.8 kB / 1.21 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.919e-05/0.5827, allocations: 40.44 kB / 1.21 GB, free: 9.992 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.5827, allocations: 31.98 kB / 1.21 GB, free: 9.961 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001896/0.5846, allocations: 1.082 MB / 1.212 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5846, allocations: 0 / 1.212 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001433/0.5861, allocations: 439.4 kB / 1.212 GB, free: 8.453 MB / 0.9669 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.001023/0.5871, allocations: 469.1 kB / 1.212 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002341/0.5895, allocations: 0.8759 MB / 1.213 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.5895, allocations: 0 / 1.213 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.5909, allocations: 475.5 kB / 1.214 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003824/0.5947, allocations: 0.7137 MB / 1.214 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/0.5993, allocations: 2.775 MB / 1.217 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007421/0.6, allocations: 1.168 MB / 1.218 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001124/0.6012, allocations: 267.9 kB / 1.218 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002865/0.6015, allocations: 115.4 kB / 1.219 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of SimCode: time 1.542e-06/0.6015, allocations: 0 / 1.219 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of Templates: time 0.0536/0.6551, allocations: 30.46 MB / 1.248 GB, free: 3.402 MB / 0.9981 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/jenkins/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