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.000969/0.000969, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006456/0.006456, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.417/1.417, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.79/2.79, allocations: 462.6 MB / 0.7363 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 11.75 kB / 0.9027 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3446, allocations: 159.6 MB / 1.059 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.9809/1.326, allocations: 248.1 MB / 1.301 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02584/1.351, allocations: 17.96 MB / 1.318 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004029/1.355, allocations: 70.84 kB / 1.319 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003275/1.359, allocations: 0.9046 MB / 1.319 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01246/1.371, allocations: 3.586 MB / 1.323 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005548/1.377, allocations: 1.636 MB / 1.325 GB, free: 1.711 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01014/1.387, allocations: 6.801 MB / 1.331 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003617/1.391, allocations: 1.501 MB / 1.333 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005418/1.396, allocations: 1.831 MB / 1.334 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004042/1.4, allocations: 1.482 MB / 1.336 GB, free: 1.395 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006358/1.401, allocations: 72.16 kB / 1.336 GB, free: 1.395 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006698/1.408, allocations: 2.704 MB / 1.339 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001203/1.409, allocations: 476.7 kB / 1.339 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003244/1.412, allocations: 0.9946 MB / 1.34 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.008328/1.42, allocations: 3.625 MB / 1.344 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/1.42, allocations: 6.625 kB / 1.344 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.433e-06/1.42, allocations: 0 / 1.344 GB, free: 0.7305 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.272e-05/1.42, allocations: 4 kB / 1.344 GB, free: 0.7266 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.004839/1.425, allocations: 2.091 MB / 1.346 GB, free: 15.59 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/1.425, allocations: 16.25 kB / 1.346 GB, free: 15.59 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001859/1.427, allocations: 373.8 kB / 1.346 GB, free: 15.47 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/1.43, allocations: 1.431 MB / 1.347 GB, free: 15.02 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.808e-05/1.43, allocations: 108.7 kB / 1.347 GB, free: 15.01 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/1.43, allocations: 146.2 kB / 1.348 GB, free: 15.01 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002924/1.433, allocations: 1.509 MB / 1.349 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/1.433, allocations: 6.625 kB / 1.349 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/1.433, allocations: 58.12 kB / 1.349 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.242e-05/1.433, allocations: 53.86 kB / 1.349 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002123/1.435, allocations: 1.163 MB / 1.35 GB, free: 14.78 MB / 1.014 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.009022/1.444, allocations: 7.202 MB / 1.357 GB, free: 10.77 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/1.446, allocations: 0.8324 MB / 1.358 GB, free: 10.64 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007362/1.447, allocations: 456.7 kB / 1.359 GB, free: 10.62 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009675/1.448, allocations: 0.7312 MB / 1.359 GB, free: 9.867 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/1.448, allocations: 41.69 kB / 1.359 GB, free: 9.828 MB / 1.014 GB Notification: Performance of pre-optimization done (n=74): time 3.417e-06/1.448, allocations: 0 / 1.359 GB, free: 9.828 MB / 1.014 GB Notification: Performance of matching and sorting (n=74): time 0.0068/1.454, allocations: 2.15 MB / 1.361 GB, free: 9.281 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/1.455, allocations: 62.19 kB / 1.362 GB, free: 9.215 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/1.456, allocations: 1.315 MB / 1.363 GB, free: 8.836 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/1.456, allocations: 43.98 kB / 1.363 GB, free: 8.805 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.000597/1.457, allocations: 0.8018 MB / 1.364 GB, free: 8.426 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000281/1.457, allocations: 254.6 kB / 1.364 GB, free: 8.238 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/1.457, allocations: 74.69 kB / 1.364 GB, free: 8.215 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000128/1.458, allocations: 341.4 kB / 1.364 GB, free: 7.898 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005906/1.458, allocations: 334.1 kB / 1.365 GB, free: 7.848 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007841/1.459, allocations: 0.5712 MB / 1.365 GB, free: 7.527 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/1.46, allocations: 0.8949 MB / 1.366 GB, free: 7.27 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/1.46, allocations: 0 / 1.366 GB, free: 7.27 MB / 1.014 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002599/1.463, allocations: 1.286 MB / 1.367 GB, free: 6.957 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001769/1.463, allocations: 230.2 kB / 1.368 GB, free: 6.691 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/1.463, allocations: 10.44 kB / 1.368 GB, free: 6.688 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001935/1.465, allocations: 422.4 kB / 1.368 GB, free: 6.559 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000629/1.466, allocations: 159.6 kB / 1.368 GB, free: 6.535 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/1.468, allocations: 2.058 MB / 1.37 GB, free: 4.895 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/1.469, allocations: 194.1 kB / 1.37 GB, free: 4.801 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.177e-05/1.469, allocations: 35.22 kB / 1.37 GB, free: 4.801 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/1.469, allocations: 3.594 kB / 1.37 GB, free: 4.801 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00197/1.471, allocations: 1.066 MB / 1.371 GB, free: 4.621 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/1.471, allocations: 3.594 kB / 1.371 GB, free: 4.621 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001504/1.473, allocations: 373.1 kB / 1.372 GB, free: 4.512 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006054/1.473, allocations: 157.4 kB / 1.372 GB, free: 4.492 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/1.477, allocations: 3.849 MB / 1.376 GB, free: 1.145 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/1.479, allocations: 188.4 kB / 1.376 GB, free: 1.059 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.561e-05/1.479, allocations: 34 kB / 1.376 GB, free: 1.055 MB / 1.014 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.001165/1.48, allocations: 476.5 kB / 1.376 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004363/1.48, allocations: 157 kB / 1.376 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/1.483, allocations: 1.225 MB / 1.378 GB, free: 316 kB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/1.483, allocations: 11.69 kB / 1.378 GB, free: 312 kB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/1.483, allocations: 3.375 kB / 1.378 GB, free: 312 kB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002395/1.486, allocations: 1.3 MB / 1.379 GB, free: 15.4 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005277/1.491, allocations: 2.768 MB / 1.382 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/1.491, allocations: 2.688 kB / 1.382 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004741/1.491, allocations: 112.9 kB / 1.382 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/1.493, allocations: 380.2 kB / 1.382 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.732e-05/1.493, allocations: 13.5 kB / 1.382 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/1.495, allocations: 2.027 MB / 1.384 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.275e-06/1.495, allocations: 11.06 kB / 1.384 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/1.497, allocations: 1.229 MB / 1.385 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007793/1.498, allocations: 346.3 kB / 1.386 GB, free: 10.51 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/1.498, allocations: 15.42 kB / 1.386 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/1.499, allocations: 114.5 kB / 1.386 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/1.499, allocations: 50.25 kB / 1.386 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.818e-05/1.499, allocations: 33.89 kB / 1.386 GB, free: 10.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001947/1.501, allocations: 0.8911 MB / 1.387 GB, free: 9.922 MB / 1.029 GB Notification: Performance of sort global known variables: time 4.11e-07/1.501, allocations: 0 / 1.387 GB, free: 9.922 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002691/1.504, allocations: 0.9048 MB / 1.388 GB, free: 9.73 MB / 1.029 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.0008353/1.505, allocations: 391.2 kB / 1.388 GB, free: 9.52 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003387/1.508, allocations: 1.673 MB / 1.39 GB, free: 8.695 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/1.508, allocations: 0 / 1.39 GB, free: 8.695 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0009776/1.509, allocations: 476.1 kB / 1.39 GB, free: 8.504 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004606/1.514, allocations: 0.7821 MB / 1.391 GB, free: 8.109 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004872/1.519, allocations: 3.362 MB / 1.394 GB, free: 5.809 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000905/1.519, allocations: 1.348 MB / 1.395 GB, free: 4.809 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001583/1.521, allocations: 326.3 kB / 1.396 GB, free: 4.652 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/1.521, allocations: 101.3 kB / 1.396 GB, free: 4.637 MB / 1.029 GB Notification: Performance of SimCode: time 1.273e-06/1.521, allocations: 0 / 1.396 GB, free: 4.637 MB / 1.029 GB Notification: Performance of Templates: time 0.05427/1.576, allocations: 31.01 MB / 1.426 GB, free: 8.797 MB / 1.061 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches