Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.00113/0.00113, allocations: 99.23 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.001276/0.001276, allocations: 177.3 kB / 15.94 MB, free: 228 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.291/1.291, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.469/2.469, allocations: 436.5 MB / 0.7104 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003152, allocations: 12 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5422/0.5425, allocations: 153.6 MB / 1.021 GB, free: 1.285 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.2046/0.7472, allocations: 209.9 MB / 1.226 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.5348/1.282, allocations: 15.86 MB / 1.241 GB, free: 25.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002344/1.284, allocations: 67.88 kB / 1.241 GB, free: 25.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.003049/1.287, allocations: 0.9903 MB / 1.242 GB, free: 25.69 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00898/1.296, allocations: 3.275 MB / 1.246 GB, free: 25.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005352/1.302, allocations: 1.821 MB / 1.247 GB, free: 25.62 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.006237/1.308, allocations: 3.045 MB / 1.25 GB, free: 25.61 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002386/1.31, allocations: 1.316 MB / 1.252 GB, free: 25.45 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004105/1.315, allocations: 1.565 MB / 1.253 GB, free: 25.45 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002393/1.317, allocations: 0.9781 MB / 1.254 GB, free: 25.44 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000341/1.317, allocations: 68.59 kB / 1.254 GB, free: 25.44 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00469/1.322, allocations: 1.302 MB / 1.255 GB, free: 25.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0007441/1.323, allocations: 430.6 kB / 1.256 GB, free: 25.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0009261/1.324, allocations: 435.4 kB / 1.256 GB, free: 25.4 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003703/1.327, allocations: 2.442 MB / 1.259 GB, free: 25.22 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/1.327, allocations: 4.375 kB / 1.259 GB, free: 25.22 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.874e-06/1.327, allocations: 0 / 1.259 GB, free: 25.22 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.745e-05/1.328, allocations: 0 / 1.259 GB, free: 25.22 MB / 0.9825 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.00427/1.332, allocations: 2.075 MB / 1.261 GB, free: 24.12 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/1.332, allocations: 13 kB / 1.261 GB, free: 24.12 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/1.334, allocations: 382.3 kB / 1.261 GB, free: 24 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00247/1.336, allocations: 1.339 MB / 1.262 GB, free: 23.61 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.048e-05/1.336, allocations: 105.5 kB / 1.262 GB, free: 23.61 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/1.336, allocations: 142.7 kB / 1.263 GB, free: 23.61 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002474/1.339, allocations: 1.499 MB / 1.264 GB, free: 23.4 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/1.339, allocations: 0.9688 kB / 1.264 GB, free: 23.4 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/1.339, allocations: 59.33 kB / 1.264 GB, free: 23.4 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.703e-05/1.339, allocations: 53.11 kB / 1.264 GB, free: 23.39 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/1.341, allocations: 1.155 MB / 1.265 GB, free: 23.37 MB / 0.9825 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.007999/1.349, allocations: 7.292 MB / 1.272 GB, free: 19.27 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/1.351, allocations: 0.8695 MB / 1.273 GB, free: 19.14 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005759/1.351, allocations: 0.5503 MB / 1.274 GB, free: 18.58 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/1.351, allocations: 45.09 kB / 1.274 GB, free: 18.54 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=74): time 3.366e-06/1.352, allocations: 6.391 kB / 1.274 GB, free: 18.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=74): time 0.006843/1.358, allocations: 2.204 MB / 1.276 GB, free: 18.05 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/1.358, allocations: 64.19 kB / 1.276 GB, free: 17.99 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/1.36, allocations: 1.312 MB / 1.277 GB, free: 17.82 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.641e-05/1.36, allocations: 50.64 kB / 1.277 GB, free: 17.79 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004293/1.36, allocations: 0.8013 MB / 1.278 GB, free: 17.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/1.361, allocations: 256.4 kB / 1.278 GB, free: 17.32 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/1.361, allocations: 16.97 kB / 1.278 GB, free: 17.32 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 6.235e-05/1.361, allocations: 339.3 kB / 1.279 GB, free: 17.02 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005301/1.361, allocations: 331.7 kB / 1.279 GB, free: 17.02 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000635/1.362, allocations: 0.5642 MB / 1.28 GB, free: 16.76 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006362/1.363, allocations: 415 kB / 1.28 GB, free: 16.75 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/1.363, allocations: 2.031 kB / 1.28 GB, free: 16.75 MB / 0.9825 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002215/1.365, allocations: 1.273 MB / 1.281 GB, free: 16.59 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003103/1.365, allocations: 1.974 MB / 1.283 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/1.365, allocations: 5 kB / 1.283 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/1.367, allocations: 421.7 kB / 1.284 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006127/1.368, allocations: 155.6 kB / 1.284 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/1.369, allocations: 2.053 MB / 1.286 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/1.37, allocations: 196 kB / 1.286 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.813e-05/1.37, allocations: 39.25 kB / 1.286 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.255e-06/1.37, allocations: 6.781 kB / 1.286 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001722/1.372, allocations: 1.066 MB / 1.287 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.372, allocations: 6.938 kB / 1.287 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/1.374, allocations: 371.1 kB / 1.287 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005865/1.374, allocations: 160.4 kB / 1.287 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002522/1.377, allocations: 3.87 MB / 1.291 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/1.378, allocations: 182.3 kB / 1.291 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.067e-05/1.378, allocations: 39.5 kB / 1.291 GB, free: 9.477 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.0007789/1.379, allocations: 466.9 kB / 1.292 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/1.379, allocations: 154.4 kB / 1.292 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/1.382, allocations: 1.234 MB / 1.293 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/1.382, allocations: 7.344 kB / 1.293 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/1.382, allocations: 7.281 kB / 1.293 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002133/1.384, allocations: 1.324 MB / 1.295 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004108/1.388, allocations: 2.738 MB / 1.297 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/1.388, allocations: 2.75 kB / 1.297 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004559/1.389, allocations: 107.1 kB / 1.297 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/1.39, allocations: 374.5 kB / 1.298 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/1.39, allocations: 21.41 kB / 1.298 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/1.391, allocations: 2.038 MB / 1.3 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.391, allocations: 2.781 kB / 1.3 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/1.393, allocations: 1.423 MB / 1.301 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006869/1.394, allocations: 346.2 kB / 1.301 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/1.394, allocations: 13.28 kB / 1.301 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/1.395, allocations: 118.9 kB / 1.302 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/1.395, allocations: 53.28 kB / 1.302 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.067e-05/1.395, allocations: 32.19 kB / 1.302 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001079/1.396, allocations: 0.9 MB / 1.303 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.1e-07/1.396, allocations: 0 / 1.303 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002522/1.399, allocations: 0.9077 MB / 1.303 GB, free: 5.422 MB / 0.9825 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.0006677/1.399, allocations: 372.8 kB / 1.304 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002946/1.402, allocations: 1.672 MB / 1.305 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/1.402, allocations: 3.219 kB / 1.305 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0009136/1.403, allocations: 480.3 kB / 1.306 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003503/1.407, allocations: 0.7828 MB / 1.307 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003768/1.411, allocations: 3.249 MB / 1.31 GB, free: 3.25 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006981/1.411, allocations: 1.379 MB / 1.311 GB, free: 2.516 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001327/1.413, allocations: 327.1 kB / 1.311 GB, free: 2.434 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/1.413, allocations: 98.67 kB / 1.312 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of SimCode: time 6.01e-07/1.413, allocations: 0 / 1.312 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of Templates: time 0.04538/1.458, allocations: 30.5 MB / 1.341 GB, free: 5.207 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches