Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.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.HeatExchangers.BaseClasses.Examples.HexElementLatent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.port_a1.m_flow|hex.port_a2.m_flow|netEne.y|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.port_a1.m_flow|hex.port_a2.m_flow|netEne.y|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 99.62 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.001267/0.001267, 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.434/1.434, 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.519/2.519, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004335, allocations: 8 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8096/0.81, allocations: 142.3 MB / 0.9535 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.2525/1.063, allocations: 209.9 MB / 1.159 GB, free: 13.74 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02382/1.087, allocations: 15.86 MB / 1.174 GB, free: 13.85 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002846/1.089, allocations: 63.56 kB / 1.174 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004162/1.094, allocations: 0.9952 MB / 1.175 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.01182/1.105, allocations: 3.275 MB / 1.178 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.005898/1.111, allocations: 1.813 MB / 1.18 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.007953/1.119, allocations: 3.037 MB / 1.183 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002985/1.122, allocations: 1.318 MB / 1.184 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/1.127, allocations: 1.557 MB / 1.186 GB, free: 1.773 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002679/1.13, allocations: 0.9762 MB / 1.187 GB, free: 0.793 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0003615/1.13, allocations: 71.94 kB / 1.187 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004845/1.135, allocations: 1.307 MB / 1.188 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.000618/1.136, allocations: 434.5 kB / 1.188 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0009839/1.137, allocations: 436.6 kB / 1.189 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00431/1.141, allocations: 2.439 MB / 1.191 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/1.141, allocations: 3.938 kB / 1.191 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.796e-06/1.141, allocations: 0 / 1.191 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.445e-05/1.141, allocations: 0 / 1.191 GB, free: 12.11 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004727/1.146, allocations: 2.082 MB / 1.193 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/1.146, allocations: 8.031 kB / 1.193 GB, free: 9.961 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001915/1.148, allocations: 373.1 kB / 1.194 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002697/1.151, allocations: 1.333 MB / 1.195 GB, free: 8.207 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.411e-05/1.151, allocations: 114.7 kB / 1.195 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/1.151, allocations: 144 kB / 1.195 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/1.154, allocations: 1.483 MB / 1.197 GB, free: 6.402 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/1.154, allocations: 4 kB / 1.197 GB, free: 6.398 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/1.154, allocations: 59.95 kB / 1.197 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-05/1.154, allocations: 58.58 kB / 1.197 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002086/1.156, allocations: 1.154 MB / 1.198 GB, free: 5.121 MB / 0.9512 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.009518/1.166, allocations: 7.305 MB / 1.205 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/1.167, allocations: 0.8684 MB / 1.206 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007507/1.168, allocations: 0.5539 MB / 1.206 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/1.168, allocations: 43.17 kB / 1.206 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=74): time 3.416e-06/1.168, allocations: 0 / 1.206 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of matching and sorting (n=74): time 0.007268/1.175, allocations: 2.205 MB / 1.209 GB, free: 9.332 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/1.175, allocations: 64.06 kB / 1.209 GB, free: 9.258 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/1.178, allocations: 1.317 MB / 1.21 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001297/1.178, allocations: 41.7 kB / 1.21 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007804/1.179, allocations: 0.7978 MB / 1.211 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/1.179, allocations: 260.3 kB / 1.211 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.843e-05/1.179, allocations: 12 kB / 1.211 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001544/1.179, allocations: 345.9 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006486/1.18, allocations: 325.8 kB / 1.212 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008479/1.181, allocations: 0.5716 MB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008051/1.182, allocations: 418.8 kB / 1.213 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/1.182, allocations: 0 / 1.213 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002872/1.185, allocations: 1.271 MB / 1.214 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.001022/1.186, allocations: 1.965 MB / 1.216 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/1.186, allocations: 11.88 kB / 1.216 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00198/1.188, allocations: 422.9 kB / 1.216 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006629/1.188, allocations: 155.7 kB / 1.216 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/1.19, allocations: 2.056 MB / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/1.192, allocations: 192.7 kB / 1.219 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/1.192, allocations: 36 kB / 1.219 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/1.192, allocations: 4 kB / 1.219 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002042/1.194, allocations: 1.068 MB / 1.22 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/1.194, allocations: 4.406 kB / 1.22 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001462/1.196, allocations: 375.6 kB / 1.22 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006432/1.196, allocations: 159.7 kB / 1.22 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003621/1.2, allocations: 3.868 MB / 1.224 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/1.202, allocations: 195 kB / 1.224 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/1.202, allocations: 36 kB / 1.224 GB, free: 8.684 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (79): * Single equations (assignments): 75 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 21,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009697/1.203, allocations: 464.9 kB / 1.225 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004569/1.203, allocations: 162 kB / 1.225 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003009/1.206, allocations: 1.232 MB / 1.226 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/1.206, allocations: 8 kB / 1.226 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/1.206, allocations: 0 / 1.226 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002451/1.209, allocations: 1.322 MB / 1.227 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005606/1.214, allocations: 2.736 MB / 1.23 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/1.214, allocations: 3.938 kB / 1.23 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000477/1.215, allocations: 99.89 kB / 1.23 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/1.216, allocations: 374.4 kB / 1.23 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-05/1.216, allocations: 23.98 kB / 1.23 GB, free: 2.039 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/1.218, allocations: 2.041 MB / 1.232 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.218, allocations: 4 kB / 1.232 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/1.22, allocations: 1.39 MB / 1.234 GB, free: 14.39 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009933/1.221, allocations: 354.8 kB / 1.234 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003709/1.222, allocations: 27.94 kB / 1.234 GB, free: 14 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/1.223, allocations: 119.7 kB / 1.234 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/1.223, allocations: 52.44 kB / 1.234 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.568e-05/1.223, allocations: 31.98 kB / 1.234 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001562/1.225, allocations: 0.8938 MB / 1.235 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.5e-07/1.225, allocations: 0 / 1.235 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003303/1.228, allocations: 0.9133 MB / 1.236 GB, free: 12 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 21,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009518/1.229, allocations: 392.1 kB / 1.236 GB, free: 11.62 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003707/1.233, allocations: 1.661 MB / 1.238 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/1.233, allocations: 4 kB / 1.238 GB, free: 9.926 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001065/1.234, allocations: 482.9 kB / 1.239 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004095/1.238, allocations: 0.7717 MB / 1.239 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0057/1.244, allocations: 3.256 MB / 1.243 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/1.245, allocations: 1.379 MB / 1.244 GB, free: 3.961 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001672/1.247, allocations: 331.6 kB / 1.244 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003266/1.247, allocations: 95.42 kB / 1.244 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of SimCode: time 1.162e-06/1.247, allocations: 0 / 1.244 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of Templates: time 0.5733/1.821, allocations: 30.51 MB / 1.274 GB, free: 269.6 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches