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.00105/0.00105, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.001379/0.001379, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.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.747/2.747, allocations: 437.7 MB / 0.7117 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004124/0.0004127, allocations: 11.98 kB / 0.8722 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8827/0.8831, allocations: 153.8 MB / 1.022 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.06338/0.9466, allocations: 65.13 MB / 1.086 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02264/0.9692, allocations: 17.69 MB / 1.103 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00256/0.9718, allocations: 59.62 kB / 1.103 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.9738, allocations: 0.5121 MB / 1.104 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007011/0.9808, allocations: 2.11 MB / 1.106 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003779/0.9846, allocations: 1.084 MB / 1.107 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006536/0.9912, allocations: 4.381 MB / 1.111 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002038/0.9932, allocations: 1.018 MB / 1.112 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003478/0.9967, allocations: 1.333 MB / 1.114 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002245/0.999, allocations: 1.038 MB / 1.115 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002035/0.9992, allocations: 60 kB / 1.115 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002751/1.002, allocations: 0.9082 MB / 1.115 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002949/1.002, allocations: 246.8 kB / 1.116 GB, free: 364 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006525/1.003, allocations: 365 kB / 1.116 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002845/1.006, allocations: 2.299 MB / 1.118 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/1.006, allocations: 0 / 1.118 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.703e-06/1.006, allocations: 0 / 1.118 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.333e-05/1.006, allocations: 0 / 1.118 GB, free: 13.69 MB / 0.8731 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.003311/1.009, allocations: 1.723 MB / 1.12 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.009, allocations: 8.031 kB / 1.12 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002058/1.011, allocations: 0.4937 MB / 1.12 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/1.014, allocations: 1.47 MB / 1.122 GB, free: 9.871 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000346/1.014, allocations: 150 kB / 1.122 GB, free: 9.723 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/1.014, allocations: 104 kB / 1.122 GB, free: 9.621 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/1.017, allocations: 1.315 MB / 1.123 GB, free: 8.215 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/1.017, allocations: 3.938 kB / 1.123 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/1.017, allocations: 44 kB / 1.123 GB, free: 8.168 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/1.017, allocations: 24 kB / 1.124 GB, free: 8.145 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00254/1.02, allocations: 1.155 MB / 1.125 GB, free: 6.992 MB / 0.8731 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.008694/1.028, allocations: 7.184 MB / 1.132 GB, free: 15.31 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002909/1.031, allocations: 0.8891 MB / 1.133 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006026/1.032, allocations: 301.9 kB / 1.133 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001244/1.033, allocations: 1.722 MB / 1.134 GB, free: 12.01 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/1.033, allocations: 39 kB / 1.135 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=48): time 2.525e-06/1.033, allocations: 0 / 1.135 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of matching and sorting (n=48): time 0.00452/1.038, allocations: 1.448 MB / 1.136 GB, free: 10.48 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/1.038, allocations: 59.84 kB / 1.136 GB, free: 10.41 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/1.04, allocations: 1.525 MB / 1.137 GB, free: 8.879 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/1.04, allocations: 37.7 kB / 1.138 GB, free: 8.836 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006877/1.041, allocations: 0.6653 MB / 1.138 GB, free: 8.164 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/1.041, allocations: 165.6 kB / 1.138 GB, free: 8 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/1.041, allocations: 20 kB / 1.138 GB, free: 7.98 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001789/1.042, allocations: 334 kB / 1.139 GB, free: 7.648 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009451/1.043, allocations: 381.8 kB / 1.139 GB, free: 7.273 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/1.044, allocations: 0.6549 MB / 1.14 GB, free: 6.5 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009865/1.045, allocations: 445.9 kB / 1.14 GB, free: 6.066 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/1.045, allocations: 4 kB / 1.14 GB, free: 6.062 MB / 0.8887 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002819/1.048, allocations: 1.22 MB / 1.141 GB, free: 4.832 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/1.048, allocations: 8 kB / 1.141 GB, free: 4.824 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/1.048, allocations: 8 kB / 1.141 GB, free: 4.816 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000864/1.049, allocations: 225.1 kB / 1.142 GB, free: 4.594 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007229/1.049, allocations: 195.7 kB / 1.142 GB, free: 4.402 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008664/1.05, allocations: 0.7279 MB / 1.142 GB, free: 3.648 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/1.052, allocations: 266.7 kB / 1.143 GB, free: 3.387 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/1.052, allocations: 47.98 kB / 1.143 GB, free: 3.34 MB / 0.8887 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006883/1.053, allocations: 353.5 kB / 1.143 GB, free: 2.988 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002288/1.053, allocations: 146.1 kB / 1.143 GB, free: 2.844 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/1.055, allocations: 1.176 MB / 1.144 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.507e-05/1.055, allocations: 15.94 kB / 1.144 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/1.055, allocations: 0 / 1.144 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/1.055, allocations: 0 / 1.144 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004991/1.06, allocations: 2.584 MB / 1.147 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/1.06, allocations: 4.188 kB / 1.147 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003488/1.061, allocations: 91.88 kB / 1.147 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007153/1.061, allocations: 228.5 kB / 1.147 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/1.062, allocations: 12 kB / 1.147 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/1.063, allocations: 0.8021 MB / 1.148 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/1.063, allocations: 3.938 kB / 1.148 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003212/1.066, allocations: 1.281 MB / 1.149 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000694/1.067, allocations: 378.8 kB / 1.15 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001822/1.067, allocations: 16 kB / 1.15 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008735/1.068, allocations: 103.8 kB / 1.15 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/1.068, allocations: 48.39 kB / 1.15 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.088e-05/1.068, allocations: 28.17 kB / 1.15 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001783/1.07, allocations: 1.07 MB / 1.151 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.5e-07/1.07, allocations: 3.938 kB / 1.151 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001378/1.071, allocations: 427.4 kB / 1.151 GB, free: 10.41 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.000893/1.072, allocations: 462.1 kB / 1.152 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002061/1.074, allocations: 0.868 MB / 1.153 GB, free: 9.09 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/1.074, allocations: 4 kB / 1.153 GB, free: 9.086 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001186/1.075, allocations: 475.5 kB / 1.153 GB, free: 8.625 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/1.078, allocations: 0.6948 MB / 1.154 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0041/1.082, allocations: 2.71 MB / 1.156 GB, free: 5.176 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/1.083, allocations: 1.172 MB / 1.157 GB, free: 3.973 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001081/1.084, allocations: 267.3 kB / 1.158 GB, free: 3.711 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/1.084, allocations: 111.4 kB / 1.158 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of SimCode: time 5.31e-07/1.084, allocations: 0 / 1.158 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of Templates: time 0.05533/1.14, allocations: 29.03 MB / 1.186 GB, free: 6.914 MB / 0.9356 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