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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009682/0.0009683, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009466/0.0009467, allocations: 177.3 kB / 15.94 MB, free: 228 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.429/1.429, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.801/2.801, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004661/0.0004662, allocations: 12 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7903/0.7908, allocations: 153.6 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.05868/0.8495, allocations: 59.18 MB / 1.079 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02099/0.8705, allocations: 15.07 MB / 1.093 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002849/0.8734, allocations: 55.62 kB / 1.093 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002698/0.8762, allocations: 0.6956 MB / 1.094 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007901/0.8841, allocations: 2.302 MB / 1.096 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005524/0.8896, allocations: 1.559 MB / 1.098 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005903/0.8955, allocations: 2.288 MB / 1.1 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002088/0.8976, allocations: 1.026 MB / 1.101 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003824/0.9015, allocations: 1.269 MB / 1.102 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002091/0.9036, allocations: 0.7816 MB / 1.103 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004172/0.904, allocations: 60 kB / 1.103 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003404/0.9074, allocations: 0.9791 MB / 1.104 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005562/0.908, allocations: 242.9 kB / 1.104 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009996/0.909, allocations: 368.9 kB / 1.105 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004364/0.9134, allocations: 2.268 MB / 1.107 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.9134, allocations: 3.938 kB / 1.107 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.455e-06/0.9134, allocations: 0 / 1.107 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.858e-05/0.9135, allocations: 0 / 1.107 GB, free: 8.777 MB / 0.8575 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.005116/0.9187, allocations: 1.735 MB / 1.109 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 8.58e-05/0.9188, allocations: 11.98 kB / 1.109 GB, free: 6.969 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003555/0.9223, allocations: 0.4937 MB / 1.109 GB, free: 6.473 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004998/0.9274, allocations: 1.42 MB / 1.11 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004978/0.9279, allocations: 150 kB / 1.111 GB, free: 4.848 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004528/0.9283, allocations: 104 kB / 1.111 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004348/0.9327, allocations: 1.313 MB / 1.112 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.943e-05/0.9328, allocations: 0 / 1.112 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000187/0.933, allocations: 44 kB / 1.112 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.442e-05/0.933, allocations: 24 kB / 1.112 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003404/0.9364, allocations: 1.155 MB / 1.113 GB, free: 2.121 MB / 0.8575 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.01435/0.9508, allocations: 7.217 MB / 1.12 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003631/0.9545, allocations: 0.9044 MB / 1.121 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001519/0.956, allocations: 1.722 MB / 1.123 GB, free: 7.391 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.9561, allocations: 35 kB / 1.123 GB, free: 7.348 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=48): time 3.066e-06/0.9561, allocations: 4 kB / 1.123 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48): time 0.005473/0.9616, allocations: 1.432 MB / 1.124 GB, free: 5.879 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.9617, allocations: 59.84 kB / 1.124 GB, free: 5.809 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003379/0.9651, allocations: 1.544 MB / 1.126 GB, free: 4.254 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.9652, allocations: 37.7 kB / 1.126 GB, free: 4.211 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007351/0.966, allocations: 0.6731 MB / 1.126 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.9662, allocations: 165.6 kB / 1.127 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.658e-05/0.9662, allocations: 16 kB / 1.127 GB, free: 3.352 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.9664, allocations: 334 kB / 1.127 GB, free: 3.02 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.9675, allocations: 389.7 kB / 1.127 GB, free: 2.641 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.9688, allocations: 0.6549 MB / 1.128 GB, free: 1.871 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.97, allocations: 437.9 kB / 1.128 GB, free: 1.445 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.9701, allocations: 8 kB / 1.128 GB, free: 1.438 MB / 0.8731 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003248/0.9733, allocations: 1.217 MB / 1.13 GB, free: 212 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.9733, allocations: 8 kB / 1.13 GB, free: 204 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.9734, allocations: 8 kB / 1.13 GB, free: 196 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009663/0.9743, allocations: 228.8 kB / 1.13 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007915/0.9751, allocations: 195.7 kB / 1.13 GB, free: 15.77 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.9762, allocations: 0.724 MB / 1.131 GB, free: 15.02 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.9781, allocations: 270.6 kB / 1.131 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.9783, allocations: 43.98 kB / 1.131 GB, free: 14.71 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.0007623/0.9791, allocations: 353.7 kB / 1.131 GB, free: 14.36 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003663/0.9794, allocations: 150.2 kB / 1.131 GB, free: 14.21 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002711/0.9821, allocations: 1.172 MB / 1.133 GB, free: 13.01 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.557e-05/0.9822, allocations: 8 kB / 1.133 GB, free: 13 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.9822, allocations: 3.953 kB / 1.133 GB, free: 13 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.9822, allocations: 3.984 kB / 1.133 GB, free: 13 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006008/0.9882, allocations: 2.596 MB / 1.135 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.9883, allocations: 4 kB / 1.135 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003769/0.9886, allocations: 92.06 kB / 1.135 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008141/0.9895, allocations: 228.6 kB / 1.135 GB, free: 10 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.204e-05/0.9895, allocations: 23.98 kB / 1.136 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.9909, allocations: 0.7943 MB / 1.136 GB, free: 9.156 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.9909, allocations: 3.938 kB / 1.136 GB, free: 9.152 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003672/0.9946, allocations: 1.377 MB / 1.138 GB, free: 7.695 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007837/0.9954, allocations: 370.9 kB / 1.138 GB, free: 7.312 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003167/0.9957, allocations: 12 kB / 1.138 GB, free: 7.301 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.9969, allocations: 115.7 kB / 1.138 GB, free: 7.188 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.997, allocations: 52.45 kB / 1.138 GB, free: 7.137 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.381e-05/0.9971, allocations: 23.98 kB / 1.138 GB, free: 7.113 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002208/0.9993, allocations: 1.082 MB / 1.139 GB, free: 6.035 MB / 0.8887 GB Notification: Performance of sort global known variables: time 3.51e-07/0.9993, allocations: 3.938 kB / 1.139 GB, free: 6.031 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001709/1.001, allocations: 435.4 kB / 1.14 GB, free: 5.605 MB / 0.8887 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.001146/1.002, allocations: 478 kB / 1.14 GB, free: 5.141 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002377/1.005, allocations: 0.868 MB / 1.141 GB, free: 4.273 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/1.005, allocations: 256 / 1.141 GB, free: 4.273 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001396/1.006, allocations: 483.2 kB / 1.141 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003983/1.01, allocations: 0.6875 MB / 1.142 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006897/1.017, allocations: 2.702 MB / 1.145 GB, free: 384 kB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001373/1.018, allocations: 1.203 MB / 1.146 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001578/1.02, allocations: 263.9 kB / 1.146 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004248/1.02, allocations: 111.3 kB / 1.146 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of SimCode: time 1.573e-06/1.02, allocations: 8 kB / 1.146 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of Templates: time 0.05225/1.073, allocations: 29.37 MB / 1.175 GB, free: 1.723 MB / 0.92 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","../files/Buildings_latest_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches