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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001126/0.001126, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001136/0.001136, allocations: 191 kB / 17.29 MB, free: 5.516 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.56/2.56, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.56 kB / 0.8707 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3291, allocations: 151.6 MB / 1.019 GB, free: 9.859 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.6974/1.027, allocations: 70.49 MB / 1.088 GB, free: 26.49 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0264/1.053, allocations: 18.93 MB / 1.106 GB, free: 24.15 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003787/1.057, allocations: 75.03 kB / 1.106 GB, free: 24.12 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002966/1.06, allocations: 0.8233 MB / 1.107 GB, free: 23.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01098/1.071, allocations: 2.844 MB / 1.11 GB, free: 21.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006044/1.077, allocations: 1.668 MB / 1.111 GB, free: 20.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007942/1.085, allocations: 4.051 MB / 1.115 GB, free: 18.84 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003542/1.089, allocations: 1.451 MB / 1.117 GB, free: 18.12 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005687/1.094, allocations: 1.764 MB / 1.118 GB, free: 17.2 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002998/1.097, allocations: 1.182 MB / 1.12 GB, free: 16.64 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000741/1.098, allocations: 175.3 kB / 1.12 GB, free: 16.64 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004905/1.103, allocations: 1.414 MB / 1.121 GB, free: 16.13 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000856/1.104, allocations: 387.5 kB / 1.122 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001991/1.106, allocations: 0.9126 MB / 1.122 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.006663/1.113, allocations: 3.1 MB / 1.125 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/1.113, allocations: 1.125 kB / 1.125 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.484e-06/1.113, allocations: 0 / 1.125 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.953e-05/1.113, allocations: 4 kB / 1.125 GB, free: 14.11 MB / 0.8419 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.004489/1.117, allocations: 2.027 MB / 1.127 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/1.117, allocations: 11 kB / 1.127 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002463/1.12, allocations: 445.5 kB / 1.128 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003422/1.123, allocations: 1.551 MB / 1.129 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.593e-05/1.123, allocations: 82.34 kB / 1.129 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/1.123, allocations: 106.4 kB / 1.13 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002596/1.126, allocations: 1.318 MB / 1.131 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/1.126, allocations: 9.281 kB / 1.131 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/1.126, allocations: 47.52 kB / 1.131 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/1.126, allocations: 26 kB / 1.131 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002619/1.129, allocations: 1.093 MB / 1.132 GB, free: 10.47 MB / 0.8419 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.00844/1.137, allocations: 7.495 MB / 1.139 GB, free: 4.531 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002945/1.14, allocations: 0.8003 MB / 1.14 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005529/1.141, allocations: 280.2 kB / 1.14 GB, free: 4.172 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00089/1.142, allocations: 1.727 MB / 1.142 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/1.142, allocations: 41.53 kB / 1.142 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 2.294e-06/1.142, allocations: 1.25 kB / 1.142 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.004758/1.146, allocations: 1.341 MB / 1.143 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/1.147, allocations: 60.53 kB / 1.143 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002768/1.149, allocations: 1.543 MB / 1.145 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001088/1.149, allocations: 37.64 kB / 1.145 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.00049/1.15, allocations: 0.6768 MB / 1.146 GB, free: 232 kB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000164/1.15, allocations: 171.2 kB / 1.146 GB, free: 80 kB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003336/1.15, allocations: 177.3 kB / 1.146 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001329/1.151, allocations: 333.1 kB / 1.146 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009327/1.152, allocations: 362.6 kB / 1.147 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/1.153, allocations: 0.6567 MB / 1.147 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/1.155, allocations: 0.8868 MB / 1.148 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/1.155, allocations: 6.125 kB / 1.148 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003168/1.158, allocations: 1.196 MB / 1.149 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/1.158, allocations: 8.219 kB / 1.149 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/1.158, allocations: 8.719 kB / 1.149 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009048/1.159, allocations: 218.4 kB / 1.15 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007794/1.16, allocations: 194.3 kB / 1.15 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008759/1.16, allocations: 0.7259 MB / 1.15 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/1.162, allocations: 208.4 kB / 1.151 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/1.162, allocations: 51.06 kB / 1.151 GB, free: 12.68 MB / 0.8575 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.0007093/1.163, allocations: 350.6 kB / 1.151 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003121/1.163, allocations: 149.6 kB / 1.151 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002551/1.166, allocations: 1.137 MB / 1.152 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.668e-05/1.166, allocations: 9.734 kB / 1.152 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/1.166, allocations: 1.062 kB / 1.152 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.166, allocations: 3.984 kB / 1.152 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005741/1.172, allocations: 2.517 MB / 1.155 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/1.172, allocations: 1.062 kB / 1.155 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004042/1.172, allocations: 85.72 kB / 1.155 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008774/1.173, allocations: 218.6 kB / 1.155 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-05/1.173, allocations: 18.89 kB / 1.155 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/1.175, allocations: 0.7733 MB / 1.156 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.175, allocations: 5.562 kB / 1.156 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003619/1.178, allocations: 1.209 MB / 1.157 GB, free: 8.363 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009204/1.179, allocations: 350.5 kB / 1.157 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002851/1.179, allocations: 20 kB / 1.157 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009409/1.18, allocations: 74.09 kB / 1.157 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/1.181, allocations: 35.36 kB / 1.157 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.107e-05/1.181, allocations: 30.2 kB / 1.158 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00211/1.183, allocations: 1.083 MB / 1.159 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.41e-07/1.183, allocations: 0 / 1.159 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001999/1.185, allocations: 447.4 kB / 1.159 GB, free: 7.281 MB / 0.8575 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.001256/1.186, allocations: 485.9 kB / 1.159 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00234/1.188, allocations: 0.8474 MB / 1.16 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.188, allocations: 3.156 kB / 1.16 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.00135/1.19, allocations: 441.1 kB / 1.161 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/1.193, allocations: 0.7372 MB / 1.161 GB, free: 6.02 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/1.198, allocations: 2.251 MB / 1.164 GB, free: 4.672 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008586/1.199, allocations: 1.171 MB / 1.165 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001181/1.2, allocations: 277.3 kB / 1.165 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/1.2, allocations: 120.9 kB / 1.165 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of SimCode: time 9.62e-07/1.2, allocations: 0 / 1.165 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of Templates: time 0.05278/1.253, allocations: 31.49 MB / 1.196 GB, free: 7.867 MB / 0.8887 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 -s gbode -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/jenkins1/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