Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.498/1.498, allocations: 249.3 MB / 261.8 MB, free: 5.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 184.8 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.1 MB / 0.572 GB, free: 10.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008819/0.000882, allocations: 86.52 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.429e-05/4.441e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.233, allocations: 106.3 MB / 0.8918 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.682/6.915, allocations: 2.204 GB / 3.096 GB, free: 124.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/6.915, allocations: 89.83 kB / 3.096 GB, free: 124.8 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.875/10.79, allocations: 1.006 GB / 4.102 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.903e-06/10.79, allocations: 4 kB / 4.102 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000163/10.79, allocations: 47.98 kB / 4.103 GB, free: 118.5 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.004622/10.8, allocations: 2.069 MB / 4.105 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/10.8, allocations: 8.031 kB / 4.105 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003713/10.8, allocations: 0.614 MB / 4.105 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003337/10.8, allocations: 1.435 MB / 4.107 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003468/10.8, allocations: 162.2 kB / 4.107 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/10.8, allocations: 127.9 kB / 4.107 GB, free: 114 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002248/10.81, allocations: 1.352 MB / 4.108 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/10.81, allocations: 11.44 kB / 4.108 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/10.81, allocations: 48 kB / 4.108 GB, free: 112.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-05/10.81, allocations: 46.19 kB / 4.108 GB, free: 112.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/10.81, allocations: 1.047 MB / 4.109 GB, free: 111.4 MB / 0.8855 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.007959/10.82, allocations: 5.884 MB / 4.115 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/10.82, allocations: 0.9714 MB / 4.116 GB, free: 104.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006401/10.82, allocations: 479.1 kB / 4.116 GB, free: 103.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000537/10.82, allocations: 316 kB / 4.117 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007354/10.82, allocations: 0.5341 MB / 4.117 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=87): time 3.146e-06/10.82, allocations: 0 / 4.117 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95): time 0.006778/10.82, allocations: 3.027 MB / 4.12 GB, free: 99.72 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/10.83, allocations: 200.7 kB / 4.12 GB, free: 99.48 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/10.83, allocations: 1.142 MB / 4.122 GB, free: 98.34 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001168/10.83, allocations: 49.7 kB / 4.122 GB, free: 98.28 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005652/10.83, allocations: 0.7332 MB / 4.122 GB, free: 97.54 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/10.83, allocations: 322.8 kB / 4.123 GB, free: 97.22 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/10.83, allocations: 20 kB / 4.123 GB, free: 97.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.966e-05/10.83, allocations: 341.9 kB / 4.123 GB, free: 96.86 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005044/10.83, allocations: 377.9 kB / 4.123 GB, free: 96.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006375/10.83, allocations: 0.6165 MB / 4.124 GB, free: 95.79 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009698/10.84, allocations: 2.349 MB / 4.126 GB, free: 93.43 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/10.84, allocations: 4 kB / 4.126 GB, free: 93.42 MB / 0.8855 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003811/10.84, allocations: 1.651 MB / 4.128 GB, free: 91.75 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002951/10.84, allocations: 1.304 MB / 4.129 GB, free: 90.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/10.84, allocations: 4 kB / 4.129 GB, free: 90.32 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/10.84, allocations: 422.5 kB / 4.129 GB, free: 89.91 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007628/10.84, allocations: 167.8 kB / 4.13 GB, free: 89.74 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006295/10.85, allocations: 6.849 MB / 4.136 GB, free: 82.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002044/10.85, allocations: 147.7 kB / 4.136 GB, free: 82.32 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/10.85, allocations: 43.98 kB / 4.137 GB, free: 82.28 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/10.85, allocations: 4 kB / 4.137 GB, free: 82.27 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003244/10.86, allocations: 1.495 MB / 4.138 GB, free: 80.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/10.86, allocations: 4 kB / 4.138 GB, free: 80.76 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009473/10.86, allocations: 420.4 kB / 4.138 GB, free: 80.35 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006514/10.86, allocations: 180.1 kB / 4.139 GB, free: 80.17 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006444/10.86, allocations: 7.859 MB / 4.146 GB, free: 71.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/10.87, allocations: 147.8 kB / 4.146 GB, free: 71.61 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.501e-05/10.87, allocations: 44.08 kB / 4.146 GB, free: 71.57 MB / 0.8855 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heaDyn.vol.dynBal.medium.p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 11,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003452/10.87, allocations: 198.4 kB / 4.147 GB, free: 71.36 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/10.87, allocations: 166 kB / 4.147 GB, free: 71.2 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/10.87, allocations: 1.45 MB / 4.148 GB, free: 69.73 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/10.87, allocations: 8 kB / 4.148 GB, free: 69.72 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/10.87, allocations: 7.938 kB / 4.148 GB, free: 69.71 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002397/10.87, allocations: 1.31 MB / 4.149 GB, free: 68.36 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00577/10.88, allocations: 3.33 MB / 4.153 GB, free: 64.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/10.88, allocations: 7.938 kB / 4.153 GB, free: 64.89 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008363/10.88, allocations: 196.2 kB / 4.153 GB, free: 64.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004256/10.88, allocations: 205.1 kB / 4.153 GB, free: 64.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.299e-05/10.88, allocations: 35.98 kB / 4.153 GB, free: 64.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002189/10.88, allocations: 2.473 MB / 4.156 GB, free: 61.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/10.88, allocations: 4 kB / 4.156 GB, free: 61.83 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/10.89, allocations: 2.394 MB / 4.158 GB, free: 59.25 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008229/10.89, allocations: 367 kB / 4.158 GB, free: 58.87 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/10.89, allocations: 31.98 kB / 4.158 GB, free: 58.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001204/10.89, allocations: 143.8 kB / 4.158 GB, free: 58.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/10.89, allocations: 68.97 kB / 4.158 GB, free: 58.63 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/10.89, allocations: 43.97 kB / 4.159 GB, free: 58.59 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001221/10.89, allocations: 0.8937 MB / 4.159 GB, free: 57.7 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.9e-07/10.89, allocations: 0 / 4.159 GB, free: 57.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003593/10.89, allocations: 0.9919 MB / 4.16 GB, free: 56.71 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003514/10.9, allocations: 2.378 MB / 4.163 GB, free: 54.24 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00366/10.9, allocations: 2.696 MB / 4.165 GB, free: 51.43 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/10.9, allocations: 4 kB / 4.165 GB, free: 51.43 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009374/10.9, allocations: 0.6985 MB / 4.166 GB, free: 50.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004329/10.91, allocations: 0.869 MB / 4.167 GB, free: 49.85 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00522/10.91, allocations: 2.628 MB / 4.169 GB, free: 47.16 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007715/10.91, allocations: 1.398 MB / 4.171 GB, free: 45.73 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002249/10.91, allocations: 495.8 kB / 4.171 GB, free: 45.24 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/10.91, allocations: 87.42 kB / 4.171 GB, free: 45.16 MB / 0.8855 GB Notification: Performance of SimCode: time 1.804e-06/10.91, allocations: 0 / 4.171 GB, free: 45.16 MB / 0.8855 GB Notification: Performance of Templates: time 0.7367/11.65, allocations: 70.6 MB / 4.24 GB, free: 160.3 MB / 0.9011 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches