Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.007787/0.007787, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001866/0.001866, allocations: 189.4 kB / 16.79 MB, free: 5.809 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.367/1.367, allocations: 222.9 MB / 240.5 MB, free: 4.566 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.465/2.465, allocations: 390.2 MB / 0.6649 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.00147, allocations: 63.91 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6852/0.6867, allocations: 140.3 MB / 0.9496 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw): time 0.0645/0.7512, allocations: 70.11 MB / 1.018 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02392/0.7751, allocations: 18.99 MB / 1.037 GB, free: 8.805 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003239/0.7784, allocations: 67.56 kB / 1.037 GB, free: 8.738 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003007/0.7814, allocations: 0.6644 MB / 1.037 GB, free: 8.07 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.007894/0.7894, allocations: 2.606 MB / 1.04 GB, free: 5.453 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003981/0.7934, allocations: 1.486 MB / 1.041 GB, free: 3.977 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00815/0.8016, allocations: 5.019 MB / 1.046 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002297/0.8039, allocations: 1.183 MB / 1.047 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003524/0.8075, allocations: 1.493 MB / 1.049 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002162/0.8097, allocations: 1.163 MB / 1.05 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0003571/0.81, allocations: 76 kB / 1.05 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003323/0.8134, allocations: 1.243 MB / 1.051 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0004915/0.8139, allocations: 294.6 kB / 1.052 GB, free: 9.457 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.8152, allocations: 0.8161 MB / 1.052 GB, free: 8.637 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003034/0.8183, allocations: 2.436 MB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.8183, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8183, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.174e-05/0.8184, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 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.004577/0.823, allocations: 2.029 MB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.823, allocations: 8.031 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002261/0.8253, allocations: 449.8 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.8279, allocations: 1.504 MB / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003604/0.8283, allocations: 134 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.8284, allocations: 104 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002555/0.831, allocations: 1.297 MB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.831, allocations: 4 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.958e-05/0.8311, allocations: 44 kB / 1.06 GB, free: 432 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.525e-05/0.8311, allocations: 27.94 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002607/0.8338, allocations: 1.108 MB / 1.061 GB, free: 15.28 MB / 0.8262 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.008562/0.8423, allocations: 7.133 MB / 1.068 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003108/0.8455, allocations: 0.8074 MB / 1.069 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000571/0.8461, allocations: 286 kB / 1.069 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001319/0.8474, allocations: 1.722 MB / 1.071 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.8474, allocations: 43 kB / 1.071 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.355e-06/0.8475, allocations: 0 / 1.071 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.004832/0.8523, allocations: 1.33 MB / 1.072 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.8524, allocations: 59.78 kB / 1.072 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/0.8552, allocations: 1.521 MB / 1.074 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.8553, allocations: 37.7 kB / 1.074 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006875/0.856, allocations: 0.673 MB / 1.075 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.8562, allocations: 169.6 kB / 1.075 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003543/0.8566, allocations: 162.5 kB / 1.075 GB, free: 384 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.8567, allocations: 337.9 kB / 1.075 GB, free: 40 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009793/0.8577, allocations: 361.8 kB / 1.075 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.8589, allocations: 0.6315 MB / 1.076 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.8606, allocations: 0.8483 MB / 1.077 GB, free: 14 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.8607, allocations: 4 kB / 1.077 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004376/0.865, allocations: 1.337 MB / 1.078 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.8651, allocations: 4 kB / 1.078 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.8651, allocations: 11.94 kB / 1.078 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000901/0.866, allocations: 221.4 kB / 1.078 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007398/0.8668, allocations: 183.7 kB / 1.079 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008582/0.8677, allocations: 0.7202 MB / 1.079 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/0.8694, allocations: 234.7 kB / 1.08 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.8696, allocations: 35.98 kB / 1.08 GB, free: 11.21 MB / 0.8419 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 (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.0007061/0.8703, allocations: 358.3 kB / 1.08 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/0.8707, allocations: 150.1 kB / 1.08 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.8733, allocations: 1.141 MB / 1.081 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.8733, allocations: 15.92 kB / 1.081 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.8733, allocations: 0 / 1.081 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.8733, allocations: 7.984 kB / 1.081 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005458/0.8788, allocations: 2.502 MB / 1.084 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/0.8788, allocations: 8.031 kB / 1.084 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.8792, allocations: 83.88 kB / 1.084 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007686/0.88, allocations: 216.6 kB / 1.084 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.926e-05/0.88, allocations: 16 kB / 1.084 GB, free: 6.629 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.8813, allocations: 0.767 MB / 1.085 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.8813, allocations: 0 / 1.085 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003359/0.8847, allocations: 1.207 MB / 1.086 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007437/0.8855, allocations: 339 kB / 1.086 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003938/0.8859, allocations: 16 kB / 1.086 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.887, allocations: 103.6 kB / 1.086 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.8871, allocations: 48.44 kB / 1.086 GB, free: 4.066 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.801e-05/0.8872, allocations: 23.98 kB / 1.086 GB, free: 4.043 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002096/0.8893, allocations: 1.074 MB / 1.087 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8893, allocations: 0 / 1.087 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001632/0.8909, allocations: 431.5 kB / 1.088 GB, free: 2.551 MB / 0.8419 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.001751/0.8927, allocations: 471.7 kB / 1.088 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002644/0.8954, allocations: 0.8251 MB / 1.089 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.8954, allocations: 0 / 1.089 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.8969, allocations: 447.5 kB / 1.09 GB, free: 0.832 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004781/0.9017, allocations: 0.7104 MB / 1.09 GB, free: 136 kB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005101/0.9068, allocations: 2.77 MB / 1.093 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008996/0.9077, allocations: 1.162 MB / 1.094 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004206/0.9081, allocations: 119.4 kB / 1.094 GB, free: 12 MB / 0.8575 GB Notification: Performance of SimCode: time 1.273e-06/0.9081, allocations: 0 / 1.094 GB, free: 12 MB / 0.8575 GB Notification: Performance of Templates: time 0.05298/0.9611, allocations: 33.82 MB / 1.127 GB, free: 10.38 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.sim & ./Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Validation_Carnot_TEva_2ndLaw.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Validation.Carnot_TEva_2ndLaw.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches