Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.mas.port.T|hex.port_a1.m_flow|hex.port_a2.m_flow|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.mas.port.T|hex.port_a1.m_flow|hex.port_a2.m_flow|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.317/2.317, allocations: 387.1 MB / 399.7 MB, free: 9.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 172.9 kB / 492.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.791/1.791, allocations: 221.3 MB / 0.7871 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009436/0.0009438, allocations: 98.59 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.725e-05/3.728e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.313, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.67/5.983, allocations: 2.175 GB / 3.387 GB, free: 103.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/5.984, allocations: 94.38 kB / 3.388 GB, free: 103.2 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 4.435/10.42, allocations: 1.019 GB / 4.407 GB, free: 216.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.803e-06/10.42, allocations: 0 / 4.407 GB, free: 216.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001989/10.42, allocations: 52.84 kB / 4.407 GB, free: 216.2 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.005572/10.42, allocations: 1.87 MB / 4.408 GB, free: 215.7 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/10.42, allocations: 11.06 kB / 4.408 GB, free: 215.7 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002076/10.43, allocations: 347.8 kB / 4.409 GB, free: 215.6 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00364/10.43, allocations: 1.597 MB / 4.41 GB, free: 215.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.123e-05/10.43, allocations: 89.12 kB / 4.41 GB, free: 215.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001841/10.43, allocations: 129.8 kB / 4.411 GB, free: 215.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/10.43, allocations: 1.123 MB / 4.412 GB, free: 215.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/10.43, allocations: 0.7969 kB / 4.412 GB, free: 215.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.952e-05/10.43, allocations: 46.09 kB / 4.412 GB, free: 215.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.508e-05/10.43, allocations: 50.05 kB / 4.412 GB, free: 215.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/10.43, allocations: 0.8478 MB / 4.413 GB, free: 215.1 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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.008761/10.44, allocations: 5.515 MB / 4.418 GB, free: 212.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/10.44, allocations: 0.8328 MB / 4.419 GB, free: 212.3 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006378/10.45, allocations: 376 kB / 4.419 GB, free: 212.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006007/10.45, allocations: 0.6069 MB / 4.42 GB, free: 211.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/10.45, allocations: 45.89 kB / 4.42 GB, free: 211.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=70): time 3.155e-06/10.45, allocations: 0 / 4.42 GB, free: 211.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=70): time 0.002527/10.45, allocations: 0.8222 MB / 4.421 GB, free: 211.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/10.45, allocations: 69.3 kB / 4.421 GB, free: 211.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/10.45, allocations: 1.039 MB / 4.422 GB, free: 211.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001611/10.45, allocations: 42.05 kB / 4.422 GB, free: 211.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005648/10.45, allocations: 0.6898 MB / 4.422 GB, free: 211 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002677/10.45, allocations: 245.7 kB / 4.423 GB, free: 210.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/10.45, allocations: 16.94 kB / 4.423 GB, free: 210.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.138e-05/10.45, allocations: 333.5 kB / 4.423 GB, free: 210.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005138/10.45, allocations: 244 kB / 4.423 GB, free: 210.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006405/10.45, allocations: 469.8 kB / 4.424 GB, free: 210.4 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/10.45, allocations: 318.9 kB / 4.424 GB, free: 210.4 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/10.45, allocations: 3.25 kB / 4.424 GB, free: 210.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001657/10.45, allocations: 0.9021 MB / 4.425 GB, free: 210.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002429/10.46, allocations: 0.8991 MB / 4.426 GB, free: 209.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/10.46, allocations: 0 / 4.426 GB, free: 209.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/10.46, allocations: 109.5 kB / 4.426 GB, free: 209.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007651/10.46, allocations: 153.4 kB / 4.426 GB, free: 209.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009683/10.46, allocations: 1.758 MB / 4.428 GB, free: 207.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001781/10.46, allocations: 170.2 kB / 4.428 GB, free: 207.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/10.46, allocations: 35.2 kB / 4.428 GB, free: 207.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/10.46, allocations: 4.375 kB / 4.428 GB, free: 207.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001287/10.46, allocations: 0.724 MB / 4.429 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/10.46, allocations: 6.344 kB / 4.429 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/10.46, allocations: 94.88 kB / 4.429 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/10.46, allocations: 151.4 kB / 4.429 GB, free: 207.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002485/10.46, allocations: 3.131 MB / 4.432 GB, free: 204.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/10.47, allocations: 163.5 kB / 4.432 GB, free: 204.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/10.47, allocations: 36.56 kB / 4.432 GB, free: 204.8 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000305/10.47, allocations: 152.8 kB / 4.432 GB, free: 204.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005135/10.47, allocations: 149.1 kB / 4.432 GB, free: 204.7 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002002/10.47, allocations: 0.9039 MB / 4.433 GB, free: 204.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/10.47, allocations: 7.469 kB / 4.433 GB, free: 204.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/10.47, allocations: 0 / 4.433 GB, free: 204.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001269/10.47, allocations: 1.01 MB / 4.434 GB, free: 204.1 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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 postOpt removeSimpleEquations (simulation): time 0.006014/10.48, allocations: 2.385 MB / 4.436 GB, free: 203.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/10.48, allocations: 2.25 kB / 4.437 GB, free: 203.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008068/10.48, allocations: 156.7 kB / 4.437 GB, free: 203.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002768/10.48, allocations: 96.48 kB / 4.437 GB, free: 203.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.702e-05/10.48, allocations: 18.34 kB / 4.437 GB, free: 203.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008556/10.48, allocations: 1.732 MB / 4.438 GB, free: 202 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/10.48, allocations: 6.312 kB / 4.438 GB, free: 202 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/10.48, allocations: 1.48 MB / 4.44 GB, free: 201.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/10.48, allocations: 327.8 kB / 4.44 GB, free: 201.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005298/10.48, allocations: 23.14 kB / 4.44 GB, free: 201.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001727/10.48, allocations: 120.2 kB / 4.44 GB, free: 201.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/10.48, allocations: 48.44 kB / 4.44 GB, free: 201.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/10.48, allocations: 32.3 kB / 4.44 GB, free: 201.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001846/10.49, allocations: 0.8125 MB / 4.441 GB, free: 201.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 9.42e-07/10.49, allocations: 2.844 kB / 4.441 GB, free: 201.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004587/10.49, allocations: 0.9884 MB / 4.442 GB, free: 201.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (hex.vol1.dynBal.U,hex.vol2.dynBal.medium.Xi[1],hex.vol2.dynBal.U,hex.vol2.dynBal.m,hex.mas.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004133/10.5, allocations: 2.042 MB / 4.444 GB, free: 200.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002907/10.5, allocations: 1.336 MB / 4.445 GB, free: 200.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/10.5, allocations: 0 / 4.445 GB, free: 200.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0007791/10.5, allocations: 383.5 kB / 4.446 GB, free: 200.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004719/10.5, allocations: 0.8031 MB / 4.447 GB, free: 200.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004916/10.51, allocations: 2.11 MB / 4.449 GB, free: 199.6 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/10.51, allocations: 1.323 MB / 4.45 GB, free: 198.9 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002709/10.51, allocations: 457.6 kB / 4.45 GB, free: 198.9 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/10.51, allocations: 78.23 kB / 4.451 GB, free: 198.9 MB / 1.167 GB Notification: Performance of SimCode: time 1.843e-06/10.51, allocations: 3.562 kB / 4.451 GB, free: 198.9 MB / 1.167 GB Notification: Performance of Templates: time 0.08511/10.6, allocations: 55.43 MB / 4.505 GB, free: 197.1 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementSensible.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches