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.001515/0.001515, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001522/0.001522, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.354/1.354, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.681/2.681, allocations: 482.4 MB / 0.7553 GB, free: 6.977 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 69.03 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7762/0.7781, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.08035/0.8585, allocations: 70.6 MB / 1.152 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02701/0.8855, allocations: 18.92 MB / 1.17 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00268/0.8882, allocations: 66.97 kB / 1.17 GB, free: 15 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002599/0.8909, allocations: 0.8237 MB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008338/0.8993, allocations: 2.836 MB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004481/0.9038, allocations: 1.641 MB / 1.176 GB, free: 10.72 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.006434/0.9103, allocations: 4.013 MB / 1.179 GB, free: 8.32 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002688/0.913, allocations: 1.456 MB / 1.181 GB, free: 7.363 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005122/0.9181, allocations: 1.871 MB / 1.183 GB, free: 6.164 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002727/0.9209, allocations: 1.158 MB / 1.184 GB, free: 5.441 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004491/0.9213, allocations: 175.8 kB / 1.184 GB, free: 5.441 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003776/0.9251, allocations: 1.412 MB / 1.185 GB, free: 4.695 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005095/0.9257, allocations: 386.5 kB / 1.186 GB, free: 4.375 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001599/0.9273, allocations: 0.9179 MB / 1.187 GB, free: 3.734 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.005476/0.9328, allocations: 3.079 MB / 1.19 GB, free: 1.34 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.9328, allocations: 0 / 1.19 GB, free: 1.34 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9328, allocations: 0 / 1.19 GB, free: 1.34 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.14e-05/0.9328, allocations: 0 / 1.19 GB, free: 1.34 MB / 0.9044 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.004367/0.9372, allocations: 2.03 MB / 1.192 GB, free: 15.24 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.9373, allocations: 12.03 kB / 1.192 GB, free: 15.23 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002325/0.9396, allocations: 446.4 kB / 1.192 GB, free: 14.79 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002834/0.9425, allocations: 1.481 MB / 1.194 GB, free: 13.25 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003759/0.9429, allocations: 138 kB / 1.194 GB, free: 13.12 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/0.9431, allocations: 104 kB / 1.194 GB, free: 13.02 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002672/0.9457, allocations: 1.326 MB / 1.195 GB, free: 11.58 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.9458, allocations: 0 / 1.195 GB, free: 11.58 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/0.9459, allocations: 48 kB / 1.195 GB, free: 11.54 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.9459, allocations: 24 kB / 1.195 GB, free: 11.51 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002866/0.9488, allocations: 1.116 MB / 1.196 GB, free: 10.39 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.009882/0.9587, allocations: 7.567 MB / 1.204 GB, free: 2.309 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003221/0.9619, allocations: 0.7987 MB / 1.204 GB, free: 1.508 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000661/0.9626, allocations: 282 kB / 1.205 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00153/0.9642, allocations: 1.714 MB / 1.206 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.454e-05/0.9642, allocations: 54.92 kB / 1.206 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 2.394e-06/0.9642, allocations: 7.875 kB / 1.206 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.005077/0.9693, allocations: 1.331 MB / 1.208 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.9694, allocations: 59.84 kB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002689/0.9721, allocations: 1.545 MB / 1.209 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.9722, allocations: 41.64 kB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006645/0.9729, allocations: 0.6729 MB / 1.21 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.9731, allocations: 177.6 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.9734, allocations: 174.4 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.9736, allocations: 330 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.9746, allocations: 365.8 kB / 1.211 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.976, allocations: 0.6727 MB / 1.212 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00193/0.9779, allocations: 0.8867 MB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.978, allocations: 4 kB / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003289/0.9813, allocations: 1.201 MB / 1.214 GB, free: 7.297 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.9813, allocations: 8 kB / 1.214 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.9813, allocations: 8 kB / 1.214 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009303/0.9823, allocations: 228.6 kB / 1.214 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008118/0.9831, allocations: 195.7 kB / 1.214 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009509/0.984, allocations: 0.7201 MB / 1.215 GB, free: 6.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/0.9857, allocations: 234.6 kB / 1.215 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.9858, allocations: 39.98 kB / 1.215 GB, free: 5.848 MB / 0.9356 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.0006264/0.9865, allocations: 353.6 kB / 1.215 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002919/0.9868, allocations: 146.2 kB / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002531/0.9893, allocations: 1.149 MB / 1.217 GB, free: 4.176 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.9893, allocations: 4 kB / 1.217 GB, free: 4.172 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.9893, allocations: 4 kB / 1.217 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.9894, allocations: 3.984 kB / 1.217 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005654/0.995, allocations: 2.51 MB / 1.219 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.9951, allocations: 0 / 1.219 GB, free: 1.574 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.9954, allocations: 87.97 kB / 1.219 GB, free: 1.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00079/0.9962, allocations: 208.7 kB / 1.219 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.321e-05/0.9963, allocations: 19.98 kB / 1.219 GB, free: 1.262 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/0.9977, allocations: 0.7708 MB / 1.22 GB, free: 476 kB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/0.9977, allocations: 7.969 kB / 1.22 GB, free: 468 kB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003736/1.001, allocations: 1.203 MB / 1.221 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007555/1.002, allocations: 350.9 kB / 1.222 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/1.003, allocations: 19.98 kB / 1.222 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009389/1.003, allocations: 71.92 kB / 1.222 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/1.004, allocations: 40.5 kB / 1.222 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.66e-05/1.004, allocations: 27.98 kB / 1.222 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00194/1.006, allocations: 1.086 MB / 1.223 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.9e-07/1.006, allocations: 0 / 1.223 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001461/1.007, allocations: 451.4 kB / 1.223 GB, free: 13.17 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.001012/1.008, allocations: 487.2 kB / 1.224 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002514/1.011, allocations: 0.8752 MB / 1.225 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/1.011, allocations: 1 kB / 1.225 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001373/1.012, allocations: 447.3 kB / 1.225 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003473/1.016, allocations: 0.7452 MB / 1.226 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004361/1.02, allocations: 2.316 MB / 1.228 GB, free: 8.285 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008424/1.021, allocations: 1.161 MB / 1.229 GB, free: 7.094 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004141/1.021, allocations: 123.3 kB / 1.229 GB, free: 6.973 MB / 0.9512 GB Notification: Performance of SimCode: time 6.61e-07/1.021, allocations: 0 / 1.229 GB, free: 6.973 MB / 0.9512 GB Notification: Performance of Templates: time 0.04736/1.069, allocations: 34.06 MB / 1.263 GB, free: 5.102 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=400 -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