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.001304/0.001304, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.434/1.434, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.788/2.788, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003507, allocations: 11.88 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3471, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.9826/1.33, allocations: 248.1 MB / 1.302 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02648/1.356, allocations: 17.96 MB / 1.319 GB, free: 2.035 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004278/1.361, allocations: 71.25 kB / 1.319 GB, free: 2.035 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003666/1.364, allocations: 0.9059 MB / 1.32 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01287/1.377, allocations: 3.584 MB / 1.324 GB, free: 1.84 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005572/1.383, allocations: 1.632 MB / 1.325 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01085/1.394, allocations: 6.8 MB / 1.332 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003185/1.397, allocations: 1.509 MB / 1.333 GB, free: 1.52 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005516/1.402, allocations: 1.826 MB / 1.335 GB, free: 1.5 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004049/1.407, allocations: 1.488 MB / 1.337 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004131/1.407, allocations: 69.69 kB / 1.337 GB, free: 1.484 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006381/1.413, allocations: 2.702 MB / 1.339 GB, free: 1.453 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007172/1.414, allocations: 470.3 kB / 1.34 GB, free: 1.449 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001926/1.416, allocations: 0.9937 MB / 1.341 GB, free: 1.277 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003912/1.42, allocations: 2.718 MB / 1.343 GB, free: 1.062 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/1.42, allocations: 0 / 1.343 GB, free: 1.062 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.405e-06/1.42, allocations: 3.938 kB / 1.343 GB, free: 1.059 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.991e-05/1.42, allocations: 4 kB / 1.343 GB, free: 1.055 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.004204/1.424, allocations: 2.1 MB / 1.345 GB, free: 15.92 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/1.424, allocations: 15.94 kB / 1.345 GB, free: 15.91 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001672/1.426, allocations: 370.6 kB / 1.346 GB, free: 15.8 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002464/1.428, allocations: 1.434 MB / 1.347 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.506e-05/1.429, allocations: 104.7 kB / 1.347 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/1.429, allocations: 138.8 kB / 1.347 GB, free: 15.34 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002768/1.431, allocations: 1.517 MB / 1.349 GB, free: 15.13 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/1.432, allocations: 2.531 kB / 1.349 GB, free: 15.13 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/1.432, allocations: 56.03 kB / 1.349 GB, free: 15.13 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.519e-05/1.432, allocations: 59.66 kB / 1.349 GB, free: 15.12 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002049/1.434, allocations: 1.159 MB / 1.35 GB, free: 15.11 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.009508/1.443, allocations: 7.198 MB / 1.357 GB, free: 11.11 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/1.445, allocations: 0.8361 MB / 1.358 GB, free: 10.97 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007349/1.445, allocations: 460.1 kB / 1.358 GB, free: 10.95 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009867/1.446, allocations: 0.7274 MB / 1.359 GB, free: 10.19 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/1.447, allocations: 45.25 kB / 1.359 GB, free: 10.15 MB / 1.014 GB Notification: Performance of pre-optimization done (n=74): time 2.755e-06/1.447, allocations: 4 kB / 1.359 GB, free: 10.15 MB / 1.014 GB Notification: Performance of matching and sorting (n=74): time 0.006676/1.453, allocations: 2.14 MB / 1.361 GB, free: 9.66 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/1.453, allocations: 62.16 kB / 1.361 GB, free: 9.594 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/1.455, allocations: 1.317 MB / 1.363 GB, free: 9.309 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001223/1.455, allocations: 47.11 kB / 1.363 GB, free: 9.273 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006289/1.456, allocations: 0.7978 MB / 1.363 GB, free: 8.895 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002851/1.456, allocations: 259.4 kB / 1.364 GB, free: 8.707 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/1.456, allocations: 73.19 kB / 1.364 GB, free: 8.684 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001529/1.457, allocations: 342 kB / 1.364 GB, free: 8.367 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006006/1.457, allocations: 336.6 kB / 1.364 GB, free: 8.312 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008076/1.458, allocations: 0.5724 MB / 1.365 GB, free: 7.996 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/1.459, allocations: 0.8929 MB / 1.366 GB, free: 7.734 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/1.459, allocations: 3.125 kB / 1.366 GB, free: 7.734 MB / 1.014 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002532/1.462, allocations: 1.287 MB / 1.367 GB, free: 7.422 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001817/1.462, allocations: 229.2 kB / 1.367 GB, free: 7.156 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/1.462, allocations: 2.812 kB / 1.367 GB, free: 7.156 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001943/1.464, allocations: 428.2 kB / 1.368 GB, free: 7.023 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/1.465, allocations: 162.8 kB / 1.368 GB, free: 7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/1.466, allocations: 2.055 MB / 1.37 GB, free: 5.359 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/1.468, allocations: 189.6 kB / 1.37 GB, free: 5.266 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.821e-05/1.468, allocations: 36 kB / 1.37 GB, free: 5.266 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/1.468, allocations: 9.781 kB / 1.37 GB, free: 5.262 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001992/1.47, allocations: 1.068 MB / 1.371 GB, free: 5.082 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/1.47, allocations: 2.938 kB / 1.371 GB, free: 5.082 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/1.472, allocations: 370.8 kB / 1.372 GB, free: 4.973 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005956/1.472, allocations: 162 kB / 1.372 GB, free: 4.953 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003885/1.476, allocations: 3.849 MB / 1.375 GB, free: 1.605 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/1.478, allocations: 180.9 kB / 1.376 GB, free: 1.52 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/1.478, allocations: 43.78 kB / 1.376 GB, free: 1.512 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.001221/1.479, allocations: 470.8 kB / 1.376 GB, free: 1.301 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005226/1.48, allocations: 157.7 kB / 1.376 GB, free: 1.219 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003149/1.483, allocations: 1.218 MB / 1.377 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/1.483, allocations: 12.56 kB / 1.377 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.483, allocations: 0 / 1.377 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00246/1.486, allocations: 1.309 MB / 1.379 GB, free: 15.89 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00585/1.491, allocations: 2.77 MB / 1.381 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/1.491, allocations: 3.078 kB / 1.381 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/1.492, allocations: 109.9 kB / 1.382 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/1.493, allocations: 369.2 kB / 1.382 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.666e-05/1.494, allocations: 20.97 kB / 1.382 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/1.495, allocations: 2.028 MB / 1.384 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/1.495, allocations: 7.469 kB / 1.384 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/1.498, allocations: 1.228 MB / 1.385 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009722/1.499, allocations: 345.8 kB / 1.385 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004137/1.499, allocations: 17.42 kB / 1.385 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/1.501, allocations: 114.4 kB / 1.386 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/1.501, allocations: 55.25 kB / 1.386 GB, free: 10.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.633e-05/1.501, allocations: 29.05 kB / 1.386 GB, free: 10.9 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001997/1.503, allocations: 0.8947 MB / 1.387 GB, free: 10.41 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.9e-07/1.503, allocations: 0 / 1.387 GB, free: 10.41 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003712/1.507, allocations: 0.8991 MB / 1.387 GB, free: 10.22 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.001027/1.508, allocations: 390.2 kB / 1.388 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003844/1.511, allocations: 1.669 MB / 1.389 GB, free: 9.195 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/1.511, allocations: 0 / 1.389 GB, free: 9.195 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001108/1.513, allocations: 480 kB / 1.39 GB, free: 9.004 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005046/1.518, allocations: 0.7979 MB / 1.391 GB, free: 8.598 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006381/1.524, allocations: 3.426 MB / 1.394 GB, free: 6.246 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001337/1.525, allocations: 1.342 MB / 1.395 GB, free: 5.25 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004052/1.526, allocations: 100.9 kB / 1.395 GB, free: 5.234 MB / 1.029 GB Notification: Performance of SimCode: time 8.62e-07/1.526, allocations: 3.312 kB / 1.395 GB, free: 5.234 MB / 1.029 GB Notification: Performance of Templates: time 0.06146/1.587, allocations: 47.66 MB / 1.442 GB, free: 8.906 MB / 1.076 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:hex.Q1_flow,hex.Q2_flow,hex.port_a1.m_flow,hex.port_a2.m_flow,hex.vol1.T,hex.vol2.T,netEne.y,time