Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_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.01058/0.01058, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001822/0.001822, allocations: 193.8 kB / 16.68 MB, free: 5.969 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.515/2.515, allocations: 437 MB / 0.7105 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.89 kB / 1.019 GB, free: 9.418 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087/1.088, allocations: 151.6 MB / 1.167 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.08456/1.173, allocations: 70.5 MB / 1.235 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02934/1.202, allocations: 18.93 MB / 1.254 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00377/1.206, allocations: 75.56 kB / 1.254 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00333/1.209, allocations: 0.8307 MB / 1.255 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0107/1.22, allocations: 3.011 MB / 1.258 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005962/1.226, allocations: 1.647 MB / 1.259 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.007441/1.233, allocations: 4.07 MB / 1.263 GB, free: 452 kB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003063/1.236, allocations: 1.441 MB / 1.265 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00504/1.242, allocations: 1.819 MB / 1.267 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002632/1.244, allocations: 1.18 MB / 1.268 GB, free: 11.97 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006474/1.245, allocations: 179.9 kB / 1.268 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003925/1.249, allocations: 1.412 MB / 1.269 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007377/1.25, allocations: 394.6 kB / 1.27 GB, free: 9.992 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002073/1.252, allocations: 0.9177 MB / 1.27 GB, free: 9.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007364/1.259, allocations: 3.112 MB / 1.274 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/1.259, allocations: 7.938 kB / 1.274 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.104e-06/1.259, allocations: 0 / 1.274 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.559e-05/1.259, allocations: 0 / 1.274 GB, free: 5.941 MB / 0.9981 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.005748/1.265, allocations: 2.079 MB / 1.276 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/1.265, allocations: 12.92 kB / 1.276 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00269/1.268, allocations: 459.4 kB / 1.276 GB, free: 3.336 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003739/1.271, allocations: 1.572 MB / 1.278 GB, free: 1.707 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/1.272, allocations: 78.03 kB / 1.278 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/1.272, allocations: 108 kB / 1.278 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003269/1.275, allocations: 1.313 MB / 1.279 GB, free: 104 kB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/1.275, allocations: 3.938 kB / 1.279 GB, free: 100 kB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000142/1.275, allocations: 44 kB / 1.279 GB, free: 56 kB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.554e-05/1.275, allocations: 28 kB / 1.279 GB, free: 28 kB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003102/1.279, allocations: 1.097 MB / 1.28 GB, free: 14.93 MB / 1.014 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.01153/1.29, allocations: 7.495 MB / 1.287 GB, free: 6.922 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003238/1.293, allocations: 0.8063 MB / 1.288 GB, free: 6.109 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006369/1.294, allocations: 286 kB / 1.289 GB, free: 5.828 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001679/1.296, allocations: 1.722 MB / 1.29 GB, free: 3.715 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/1.296, allocations: 39 kB / 1.29 GB, free: 3.668 MB / 1.014 GB Notification: Performance of pre-optimization done (n=48): time 4.678e-06/1.296, allocations: 0 / 1.29 GB, free: 3.668 MB / 1.014 GB Notification: Performance of matching and sorting (n=48): time 0.005188/1.301, allocations: 1.343 MB / 1.292 GB, free: 2.301 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.57e-05/1.301, allocations: 63.84 kB / 1.292 GB, free: 2.227 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003469/1.305, allocations: 1.549 MB / 1.293 GB, free: 0.668 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001428/1.305, allocations: 33.7 kB / 1.293 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007462/1.305, allocations: 0.682 MB / 1.294 GB, free: 15.94 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/1.306, allocations: 182.4 kB / 1.294 GB, free: 15.76 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00038/1.306, allocations: 174.5 kB / 1.294 GB, free: 15.58 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001546/1.306, allocations: 337.9 kB / 1.294 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009789/1.307, allocations: 365.8 kB / 1.295 GB, free: 14.89 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/1.309, allocations: 0.6583 MB / 1.295 GB, free: 14.1 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/1.31, allocations: 0.8828 MB / 1.296 GB, free: 13.11 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/1.31, allocations: 7.75 kB / 1.296 GB, free: 13.11 MB / 1.029 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003326/1.314, allocations: 1.206 MB / 1.298 GB, free: 11.89 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/1.314, allocations: 8 kB / 1.298 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/1.314, allocations: 8 kB / 1.298 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/1.315, allocations: 220.6 kB / 1.298 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007699/1.316, allocations: 191.7 kB / 1.298 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/1.317, allocations: 0.7201 MB / 1.299 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/1.319, allocations: 223 kB / 1.299 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/1.319, allocations: 39.98 kB / 1.299 GB, free: 10.46 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (84): * Single equations (assignments): 83 * 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.0007912/1.32, allocations: 361.6 kB / 1.299 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005137/1.32, allocations: 155 kB / 1.299 GB, free: 9.949 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002756/1.323, allocations: 1.145 MB / 1.301 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/1.323, allocations: 8 kB / 1.301 GB, free: 8.777 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.557e-06/1.323, allocations: 0 / 1.301 GB, free: 8.777 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/1.323, allocations: 3.984 kB / 1.301 GB, free: 8.773 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006061/1.329, allocations: 2.511 MB / 1.303 GB, free: 6.184 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/1.329, allocations: 8.031 kB / 1.303 GB, free: 6.176 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/1.329, allocations: 83.88 kB / 1.303 GB, free: 6.094 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007998/1.33, allocations: 208.6 kB / 1.303 GB, free: 5.887 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.944e-05/1.33, allocations: 15.98 kB / 1.303 GB, free: 5.871 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/1.332, allocations: 0.7786 MB / 1.304 GB, free: 5.066 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/1.332, allocations: 8.031 kB / 1.304 GB, free: 5.059 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003706/1.335, allocations: 1.204 MB / 1.305 GB, free: 3.816 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009058/1.336, allocations: 363.7 kB / 1.306 GB, free: 3.441 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004438/1.337, allocations: 16.12 kB / 1.306 GB, free: 3.426 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/1.338, allocations: 67.92 kB / 1.306 GB, free: 3.359 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/1.338, allocations: 52.31 kB / 1.306 GB, free: 3.305 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.678e-05/1.338, allocations: 35.98 kB / 1.306 GB, free: 3.27 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002516/1.341, allocations: 1.082 MB / 1.307 GB, free: 2.191 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.1e-07/1.341, allocations: 0 / 1.307 GB, free: 2.191 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.001977/1.343, allocations: 447.1 kB / 1.307 GB, free: 1.754 MB / 1.029 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.001371/1.344, allocations: 480.8 kB / 1.308 GB, free: 1.285 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002497/1.346, allocations: 0.8447 MB / 1.308 GB, free: 456 kB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/1.347, allocations: 0 / 1.308 GB, free: 456 kB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001355/1.348, allocations: 451.5 kB / 1.309 GB, free: 4 kB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003858/1.352, allocations: 0.7382 MB / 1.31 GB, free: 15.27 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005139/1.357, allocations: 2.293 MB / 1.312 GB, free: 12.93 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001402/1.358, allocations: 1.172 MB / 1.313 GB, free: 11.73 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001583/1.36, allocations: 262.8 kB / 1.313 GB, free: 11.47 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005148/1.36, allocations: 115.3 kB / 1.313 GB, free: 11.36 MB / 1.045 GB Notification: Performance of SimCode: time 1.984e-06/1.361, allocations: 0 / 1.313 GB, free: 11.36 MB / 1.045 GB Notification: Performance of Templates: time 0.05942/1.42, allocations: 31.75 MB / 1.344 GB, free: 11.93 MB / 1.076 GB make -j1 -f Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (rm -f Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & ./Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches