Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Examples.Carnot_TEva,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.TSet|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva") translateModel(Buildings.Fluid.Chillers.Examples.Carnot_TEva,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.TSet|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001234, allocations: 100.9 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.001227/0.001228, 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.376/1.376, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.423/2.423, allocations: 390.3 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003919/0.0003923, allocations: 8 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8547/0.8552, allocations: 142.3 MB / 0.9535 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.Carnot_TEva): time 0.0573/0.9125, allocations: 51.32 MB / 1.004 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0167/0.9292, allocations: 10.32 MB / 1.014 GB, free: 2.387 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00283/0.9321, allocations: 43.69 kB / 1.014 GB, free: 2.344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002938/0.9351, allocations: 0.6219 MB / 1.014 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.00957/0.9447, allocations: 1.955 MB / 1.016 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004754/0.9494, allocations: 1.307 MB / 1.018 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.004907/0.9543, allocations: 1.845 MB / 1.019 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.956, allocations: 0.8154 MB / 1.02 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002829/0.9588, allocations: 0.9808 MB / 1.021 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.9599, allocations: 0.6066 MB / 1.022 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.96, allocations: 44 kB / 1.022 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002876/0.9629, allocations: 0.9907 MB / 1.023 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002488/0.9632, allocations: 187.2 kB / 1.023 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005266/0.9637, allocations: 289 kB / 1.023 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002231/0.9659, allocations: 1.582 MB / 1.025 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.966, allocations: 0 / 1.025 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.036e-06/0.966, allocations: 0 / 1.025 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.561e-05/0.966, allocations: 4 kB / 1.025 GB, free: 7.102 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002772/0.9688, allocations: 1.477 MB / 1.026 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.9688, allocations: 8.031 kB / 1.026 GB, free: 5.559 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002175/0.971, allocations: 477.9 kB / 1.027 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002026/0.973, allocations: 1.051 MB / 1.028 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003621/0.9734, allocations: 133.8 kB / 1.028 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.9735, allocations: 80 kB / 1.028 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002042/0.9756, allocations: 0.9973 MB / 1.029 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.9756, allocations: 3.938 kB / 1.029 GB, free: 2.727 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.811e-05/0.9757, allocations: 32 kB / 1.029 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.9757, allocations: 20 kB / 1.029 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/0.978, allocations: 0.9055 MB / 1.03 GB, free: 1.773 MB / 0.7794 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.006944/0.985, allocations: 4.91 MB / 1.035 GB, free: 12.51 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003445/0.9885, allocations: 0.9019 MB / 1.035 GB, free: 11.6 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007422/0.9892, allocations: 0.8947 MB / 1.036 GB, free: 10.5 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.9893, allocations: 46.5 kB / 1.036 GB, free: 10.45 MB / 0.795 GB Notification: Performance of pre-optimization done (n=43): time 3.236e-06/0.9893, allocations: 0 / 1.036 GB, free: 10.45 MB / 0.795 GB Notification: Performance of matching and sorting (n=43): time 0.007564/0.9969, allocations: 1.939 MB / 1.038 GB, free: 8.477 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.9969, allocations: 59.41 kB / 1.038 GB, free: 8.406 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.9987, allocations: 1.063 MB / 1.039 GB, free: 7.328 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 8.807e-05/0.9988, allocations: 33.7 kB / 1.039 GB, free: 7.289 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000482/0.9993, allocations: 0.5274 MB / 1.04 GB, free: 6.758 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.9995, allocations: 153.8 kB / 1.04 GB, free: 6.605 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-05/0.9995, allocations: 12 kB / 1.04 GB, free: 6.594 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001599/0.9997, allocations: 322 kB / 1.04 GB, free: 6.273 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008893/1.001, allocations: 320.9 kB / 1.041 GB, free: 5.961 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/1.002, allocations: 0.5235 MB / 1.041 GB, free: 5.359 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009012/1.003, allocations: 353.3 kB / 1.041 GB, free: 5.016 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/1.003, allocations: 0 / 1.041 GB, free: 5.016 MB / 0.795 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003747/1.006, allocations: 1.227 MB / 1.043 GB, free: 3.777 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008375/1.007, allocations: 1.667 MB / 1.044 GB, free: 1.988 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/1.007, allocations: 4 kB / 1.044 GB, free: 1.984 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/1.009, allocations: 332.6 kB / 1.045 GB, free: 1.656 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005385/1.009, allocations: 127.7 kB / 1.045 GB, free: 1.531 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/1.011, allocations: 0.9489 MB / 1.046 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/1.012, allocations: 187.2 kB / 1.046 GB, free: 384 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.653e-05/1.012, allocations: 35.92 kB / 1.046 GB, free: 348 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/1.012, allocations: 4 kB / 1.046 GB, free: 344 kB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003289/1.016, allocations: 1.07 MB / 1.047 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/1.016, allocations: 4 kB / 1.047 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/1.017, allocations: 321 kB / 1.047 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005031/1.017, allocations: 127.8 kB / 1.047 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/1.019, allocations: 0.9387 MB / 1.048 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/1.02, allocations: 167.3 kB / 1.048 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-05/1.02, allocations: 35.98 kB / 1.048 GB, free: 13.65 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (51): * Single equations (assignments): 50 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006453/1.021, allocations: 349 kB / 1.049 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/1.021, allocations: 110.6 kB / 1.049 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002329/1.023, allocations: 0.9769 MB / 1.05 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/1.023, allocations: 11.94 kB / 1.05 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.023, allocations: 0 / 1.05 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/1.023, allocations: 7.984 kB / 1.05 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005171/1.028, allocations: 2.264 MB / 1.052 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/1.028, allocations: 0 / 1.052 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/1.029, allocations: 76.17 kB / 1.052 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/1.03, allocations: 318.2 kB / 1.052 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/1.03, allocations: 15.98 kB / 1.052 GB, free: 9.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00146/1.031, allocations: 0.9755 MB / 1.053 GB, free: 8.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.031, allocations: 0 / 1.053 GB, free: 8.43 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003766/1.035, allocations: 1.368 MB / 1.055 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007317/1.036, allocations: 287.5 kB / 1.055 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/1.036, allocations: 12 kB / 1.055 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009068/1.037, allocations: 119.8 kB / 1.055 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/1.037, allocations: 35.89 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.224e-05/1.037, allocations: 23.98 kB / 1.055 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001276/1.038, allocations: 0.7508 MB / 1.056 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.445e-06/1.038, allocations: 0 / 1.056 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001619/1.04, allocations: 0.5652 MB / 1.057 GB, free: 5.156 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007836/1.041, allocations: 372.9 kB / 1.057 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003091/1.044, allocations: 1.159 MB / 1.058 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/1.044, allocations: 0 / 1.058 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008913/1.045, allocations: 372.4 kB / 1.058 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/1.047, allocations: 0.4945 MB / 1.059 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/1.054, allocations: 2.5 MB / 1.061 GB, free: 220 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000828/1.054, allocations: 1.085 MB / 1.062 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001108/1.056, allocations: 216.7 kB / 1.063 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/1.056, allocations: 71.42 kB / 1.063 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of SimCode: time 1.242e-06/1.056, allocations: 0 / 1.063 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of Templates: time 0.04074/1.097, allocations: 23.21 MB / 1.085 GB, free: 7.891 MB / 0.8419 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_Carnot_TEva.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_TEva.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches