Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.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.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_latest_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_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 100.1 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.001389/0.001389, allocations: 177.3 kB / 15.95 MB, free: 216 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.335/1.335, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.484/2.484, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003222/0.0003222, allocations: 20 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6036/0.604, allocations: 153.7 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible): time 0.225/0.8291, allocations: 205.4 MB / 1.221 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02019/0.8493, allocations: 11.1 MB / 1.232 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002927/0.8523, allocations: 67.5 kB / 1.232 GB, free: 8 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.004379/0.8567, allocations: 0.9642 MB / 1.233 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.01398/0.8707, allocations: 3.088 MB / 1.236 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007709/0.8784, allocations: 1.66 MB / 1.238 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.00728/0.8857, allocations: 2.762 MB / 1.241 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002559/0.8883, allocations: 1.124 MB / 1.242 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00442/0.8928, allocations: 1.444 MB / 1.243 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.8946, allocations: 0.8283 MB / 1.244 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003223/0.8949, allocations: 60 kB / 1.244 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003342/0.8982, allocations: 1.158 MB / 1.245 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004748/0.8987, allocations: 406.6 kB / 1.245 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005518/0.8993, allocations: 392.8 kB / 1.246 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002767/0.9021, allocations: 2.201 MB / 1.248 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.9021, allocations: 0 / 1.248 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9021, allocations: 0 / 1.248 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.139e-05/0.9021, allocations: 0 / 1.248 GB, free: 7.891 MB / 0.9981 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.003464/0.9056, allocations: 1.901 MB / 1.25 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.9057, allocations: 15.98 kB / 1.25 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001627/0.9073, allocations: 345.5 kB / 1.25 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.9095, allocations: 1.27 MB / 1.251 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.206e-05/0.9096, allocations: 90.14 kB / 1.252 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/0.9097, allocations: 123.9 kB / 1.252 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001975/0.9117, allocations: 1.201 MB / 1.253 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.9118, allocations: 0 / 1.253 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.832e-05/0.9119, allocations: 48 kB / 1.253 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.492e-05/0.9119, allocations: 38.14 kB / 1.253 GB, free: 2.707 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.9136, allocations: 0.9726 MB / 1.254 GB, free: 1.727 MB / 0.9981 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.4929/1.407, allocations: 5.559 MB / 1.259 GB, free: 230.3 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/1.408, allocations: 0.875 MB / 1.26 GB, free: 229.8 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003528/1.409, allocations: 436.3 kB / 1.261 GB, free: 229.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/1.409, allocations: 43.84 kB / 1.261 GB, free: 229.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=70): time 3.967e-06/1.409, allocations: 0 / 1.261 GB, free: 229.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=70): time 0.003892/1.413, allocations: 1.462 MB / 1.262 GB, free: 228.7 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/1.413, allocations: 63.36 kB / 1.262 GB, free: 228.6 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/1.414, allocations: 1.214 MB / 1.263 GB, free: 228.1 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.000103/1.415, allocations: 44.33 kB / 1.263 GB, free: 228.1 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/1.415, allocations: 0.6752 MB / 1.264 GB, free: 227.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000198/1.415, allocations: 254.8 kB / 1.264 GB, free: 227.4 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/1.415, allocations: 15.78 kB / 1.264 GB, free: 227.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.748e-05/1.415, allocations: 338.6 kB / 1.265 GB, free: 227.1 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007153/1.416, allocations: 295.9 kB / 1.265 GB, free: 227 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007365/1.417, allocations: 0.5128 MB / 1.265 GB, free: 226.7 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006738/1.417, allocations: 376.4 kB / 1.266 GB, free: 226.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/1.418, allocations: 1.875 kB / 1.266 GB, free: 226.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.002557/1.42, allocations: 1.073 MB / 1.267 GB, free: 226.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002046/1.42, allocations: 1.079 MB / 1.268 GB, free: 225 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/1.42, allocations: 6.578 kB / 1.268 GB, free: 225 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008033/1.421, allocations: 155.3 kB / 1.268 GB, free: 224.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008364/1.422, allocations: 174.6 kB / 1.268 GB, free: 224.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007753/1.423, allocations: 1.769 MB / 1.27 GB, free: 223.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/1.424, allocations: 173.9 kB / 1.27 GB, free: 223.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.182e-05/1.424, allocations: 37.64 kB / 1.27 GB, free: 223.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/1.424, allocations: 3.531 kB / 1.27 GB, free: 223.1 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001869/1.426, allocations: 0.867 MB / 1.271 GB, free: 222.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/1.426, allocations: 2.844 kB / 1.271 GB, free: 222.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003258/1.427, allocations: 94.73 kB / 1.271 GB, free: 222.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007962/1.427, allocations: 163.4 kB / 1.271 GB, free: 222.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/1.43, allocations: 3.161 MB / 1.274 GB, free: 219.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/1.431, allocations: 168.2 kB / 1.274 GB, free: 219.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/1.431, allocations: 30.78 kB / 1.274 GB, free: 219.7 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (87): * Single equations (assignments): 83 * Array equations: 1 * 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.0009706/1.432, allocations: 443.3 kB / 1.275 GB, free: 219.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/1.433, allocations: 141.5 kB / 1.275 GB, free: 219.3 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/1.434, allocations: 0.9603 MB / 1.276 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/1.434, allocations: 11.09 kB / 1.276 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/1.435, allocations: 0.9688 kB / 1.276 GB, free: 218.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001331/1.436, allocations: 1.075 MB / 1.277 GB, free: 218.2 MB / 0.9981 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 postOpt removeSimpleEquations (simulation): time 0.004068/1.44, allocations: 2.531 MB / 1.279 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/1.44, allocations: 6.219 kB / 1.279 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007228/1.441, allocations: 165.5 kB / 1.28 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000216/1.441, allocations: 84.94 kB / 1.28 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.818e-05/1.441, allocations: 21.5 kB / 1.28 GB, free: 216.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000636/1.442, allocations: 1.746 MB / 1.281 GB, free: 215.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.442, allocations: 3.062 kB / 1.281 GB, free: 215.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/1.444, allocations: 1.613 MB / 1.283 GB, free: 214.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006022/1.444, allocations: 335.5 kB / 1.283 GB, free: 214 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/1.445, allocations: 20.88 kB / 1.283 GB, free: 214 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009619/1.446, allocations: 114.8 kB / 1.283 GB, free: 214 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/1.446, allocations: 52.12 kB / 1.284 GB, free: 213.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.069e-05/1.446, allocations: 37.3 kB / 1.284 GB, free: 213.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001064/1.447, allocations: 0.8243 MB / 1.284 GB, free: 213.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.447, allocations: 0 / 1.284 GB, free: 213.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002172/1.449, allocations: 0.811 MB / 1.285 GB, free: 213.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 () * Number of clocked 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.0007043/1.45, allocations: 387.2 kB / 1.286 GB, free: 213.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002698/1.452, allocations: 1.467 MB / 1.287 GB, free: 212.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/1.452, allocations: 1.375 kB / 1.287 GB, free: 212.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000755/1.453, allocations: 416.4 kB / 1.287 GB, free: 212.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003465/1.457, allocations: 0.783 MB / 1.288 GB, free: 212.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003697/1.46, allocations: 3.289 MB / 1.291 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005905/1.461, allocations: 1.311 MB / 1.293 GB, free: 209.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001267/1.462, allocations: 346.2 kB / 1.293 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/1.462, allocations: 105.8 kB / 1.293 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of SimCode: time 6.72e-07/1.462, allocations: 0 / 1.293 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.03822/1.501, allocations: 27.5 MB / 1.32 GB, free: 184.7 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementSensible.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches