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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0007778/0.0007781, allocations: 90.52 kB / 15.36 MB, free: 0.7344 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.005114/0.005114, allocations: 170.4 kB / 16.26 MB, free: 6.617 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.415/2.415, allocations: 390.9 MB / 0.6663 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003424, allocations: 12 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.654/0.6543, allocations: 142.4 MB / 0.9551 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.2635/0.9179, allocations: 248.2 MB / 1.197 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02708/0.945, allocations: 17.95 MB / 1.215 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003536/0.9486, allocations: 75.5 kB / 1.215 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003833/0.9524, allocations: 0.9014 MB / 1.216 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.9636, allocations: 3.583 MB / 1.219 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.004956/0.9686, allocations: 1.634 MB / 1.221 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.009191/0.9778, allocations: 6.793 MB / 1.228 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003035/0.9809, allocations: 1.504 MB / 1.229 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004904/0.9858, allocations: 1.832 MB / 1.231 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003768/0.9896, allocations: 1.478 MB / 1.232 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0005233/0.9901, allocations: 68 kB / 1.232 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006219/0.9963, allocations: 2.704 MB / 1.235 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.9974, allocations: 474.1 kB / 1.235 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002404/0.9998, allocations: 1 MB / 1.236 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007141/1.007, allocations: 3.625 MB / 1.24 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/1.007, allocations: 3.938 kB / 1.24 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.613e-06/1.007, allocations: 0 / 1.24 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001114/1.007, allocations: 0 / 1.24 GB, free: 10.68 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.005104/1.012, allocations: 2.101 MB / 1.242 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/1.012, allocations: 8.031 kB / 1.242 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002069/1.014, allocations: 377.1 kB / 1.242 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003021/1.017, allocations: 1.429 MB / 1.244 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/1.018, allocations: 114.6 kB / 1.244 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/1.018, allocations: 139.9 kB / 1.244 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003161/1.021, allocations: 1.511 MB / 1.246 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.543e-05/1.021, allocations: 4 kB / 1.246 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/1.021, allocations: 60 kB / 1.246 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.518e-05/1.021, allocations: 58.56 kB / 1.246 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002549/1.024, allocations: 1.158 MB / 1.247 GB, free: 3.551 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.5218/1.546, allocations: 7.187 MB / 1.254 GB, free: 283.2 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/1.547, allocations: 0.8321 MB / 1.255 GB, free: 282.8 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008282/1.548, allocations: 448 kB / 1.255 GB, free: 282.7 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007755/1.549, allocations: 0.7303 MB / 1.256 GB, free: 281.9 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/1.549, allocations: 47.89 kB / 1.256 GB, free: 281.9 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=74): time 2.795e-06/1.549, allocations: 0 / 1.256 GB, free: 281.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=74): time 0.007416/1.556, allocations: 2.15 MB / 1.258 GB, free: 281.1 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/1.556, allocations: 66.12 kB / 1.258 GB, free: 281 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002134/1.559, allocations: 1.312 MB / 1.259 GB, free: 280.5 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.661e-05/1.559, allocations: 39.02 kB / 1.259 GB, free: 280.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005121/1.559, allocations: 0.8025 MB / 1.26 GB, free: 279.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/1.559, allocations: 259.5 kB / 1.26 GB, free: 279.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/1.56, allocations: 72.31 kB / 1.26 GB, free: 279.6 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.195e-05/1.56, allocations: 345.1 kB / 1.261 GB, free: 279.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006449/1.56, allocations: 337 kB / 1.261 GB, free: 279.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008151/1.561, allocations: 0.5736 MB / 1.262 GB, free: 278.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/1.563, allocations: 0.8923 MB / 1.262 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/1.563, allocations: 0 / 1.262 GB, free: 278.4 MB / 0.9981 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003006/1.566, allocations: 1.29 MB / 1.264 GB, free: 277.8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/1.566, allocations: 230.3 kB / 1.264 GB, free: 277.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/1.566, allocations: 6.594 kB / 1.264 GB, free: 277.6 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002097/1.568, allocations: 427.9 kB / 1.264 GB, free: 277.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006298/1.569, allocations: 157 kB / 1.264 GB, free: 277.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/1.57, allocations: 2.053 MB / 1.266 GB, free: 275.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/1.571, allocations: 187.7 kB / 1.267 GB, free: 275.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.348e-05/1.571, allocations: 40.64 kB / 1.267 GB, free: 275.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/1.571, allocations: 4.625 kB / 1.267 GB, free: 275.5 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001806/1.573, allocations: 1.059 MB / 1.268 GB, free: 275 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/1.573, allocations: 7.688 kB / 1.268 GB, free: 275 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/1.575, allocations: 382 kB / 1.268 GB, free: 274.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005756/1.575, allocations: 157.2 kB / 1.268 GB, free: 274.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002653/1.578, allocations: 3.86 MB / 1.272 GB, free: 271.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/1.579, allocations: 173.6 kB / 1.272 GB, free: 271 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.859e-05/1.579, allocations: 46.38 kB / 1.272 GB, free: 271 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,21), (1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008032/1.58, allocations: 475.4 kB / 1.273 GB, free: 270.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/1.58, allocations: 162.4 kB / 1.273 GB, free: 270.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/1.583, allocations: 1.209 MB / 1.274 GB, free: 269.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/1.583, allocations: 15.23 kB / 1.274 GB, free: 269.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-06/1.583, allocations: 0 / 1.274 GB, free: 269.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002263/1.585, allocations: 1.302 MB / 1.275 GB, free: 269 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004331/1.59, allocations: 2.778 MB / 1.278 GB, free: 267.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/1.59, allocations: 6.125 kB / 1.278 GB, free: 267.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/1.59, allocations: 110 kB / 1.278 GB, free: 267.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001456/1.592, allocations: 363.9 kB / 1.278 GB, free: 266.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/1.592, allocations: 23.48 kB / 1.279 GB, free: 266.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/1.593, allocations: 2.027 MB / 1.281 GB, free: 265.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/1.593, allocations: 4.781 kB / 1.281 GB, free: 265.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/1.595, allocations: 1.237 MB / 1.282 GB, free: 264.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/1.595, allocations: 338.5 kB / 1.282 GB, free: 264 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/1.595, allocations: 13.97 kB / 1.282 GB, free: 264 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/1.596, allocations: 118.1 kB / 1.282 GB, free: 264 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/1.597, allocations: 55.39 kB / 1.282 GB, free: 263.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.026e-05/1.597, allocations: 37.17 kB / 1.282 GB, free: 263.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001242/1.598, allocations: 0.8844 MB / 1.283 GB, free: 263.4 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/1.598, allocations: 0 / 1.283 GB, free: 263.4 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00251/1.6, allocations: 0.907 MB / 1.284 GB, free: 263.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (49): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,20), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007329/1.601, allocations: 375.9 kB / 1.284 GB, free: 263.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003191/1.604, allocations: 1.677 MB / 1.286 GB, free: 262.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.604, allocations: 1.375 kB / 1.286 GB, free: 262.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009098/1.605, allocations: 483.7 kB / 1.286 GB, free: 262 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003972/1.609, allocations: 0.7908 MB / 1.287 GB, free: 261.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/1.613, allocations: 3.358 MB / 1.291 GB, free: 259.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006247/1.613, allocations: 1.354 MB / 1.292 GB, free: 258.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001154/1.615, allocations: 328.2 kB / 1.292 GB, free: 258.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001981/1.615, allocations: 94.06 kB / 1.292 GB, free: 258.2 MB / 0.9981 GB Notification: Performance of SimCode: time 4.1e-07/1.615, allocations: 0 / 1.292 GB, free: 258.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.04174/1.657, allocations: 30.99 MB / 1.322 GB, free: 229.7 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches