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.0007615/0.0007615, allocations: 92.16 kB / 16.02 MB, free: 80 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.0009192/0.0009193, allocations: 174.5 kB / 16.92 MB, free: 6.652 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.528/1.528, allocations: 223.3 MB / 241 MB, free: 5.352 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.485/2.485, allocations: 390.9 MB / 0.667 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004467/0.0004467, allocations: 15.98 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7548/0.7553, allocations: 142.4 MB / 0.9557 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.2952/1.05, allocations: 248.2 MB / 1.198 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02847/1.079, allocations: 17.95 MB / 1.216 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003894/1.083, allocations: 75.5 kB / 1.216 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003816/1.087, allocations: 0.8975 MB / 1.217 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.01266/1.099, allocations: 3.585 MB / 1.22 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005875/1.105, allocations: 1.645 MB / 1.222 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01017/1.116, allocations: 6.79 MB / 1.228 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003407/1.119, allocations: 1.508 MB / 1.23 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006776/1.126, allocations: 1.824 MB / 1.232 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005207/1.131, allocations: 1.477 MB / 1.233 GB, free: 2.496 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0008212/1.132, allocations: 71.94 kB / 1.233 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007728/1.14, allocations: 2.704 MB / 1.236 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001159/1.141, allocations: 482.1 kB / 1.236 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002657/1.143, allocations: 0.9847 MB / 1.237 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005307/1.149, allocations: 2.716 MB / 1.24 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/1.149, allocations: 0 / 1.24 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.685e-06/1.149, allocations: 0 / 1.24 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001268/1.149, allocations: 4 kB / 1.24 GB, free: 11.52 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.006038/1.155, allocations: 2.105 MB / 1.242 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.155, allocations: 8.031 kB / 1.242 GB, free: 9.352 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002281/1.157, allocations: 377.1 kB / 1.242 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003484/1.161, allocations: 1.436 MB / 1.244 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/1.161, allocations: 114.7 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003427/1.161, allocations: 139.9 kB / 1.244 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003361/1.165, allocations: 1.511 MB / 1.245 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.616e-05/1.165, allocations: 7.938 kB / 1.245 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/1.165, allocations: 60 kB / 1.245 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.556e-05/1.165, allocations: 54.62 kB / 1.245 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/1.168, allocations: 1.162 MB / 1.247 GB, free: 4.375 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.7197/1.887, allocations: 7.182 MB / 1.254 GB, free: 49.49 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/1.889, allocations: 0.8304 MB / 1.254 GB, free: 49.37 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008913/1.89, allocations: 446.1 kB / 1.255 GB, free: 49.36 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000851/1.891, allocations: 0.7314 MB / 1.256 GB, free: 48.61 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/1.891, allocations: 45.05 kB / 1.256 GB, free: 48.57 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=74): time 4.067e-06/1.891, allocations: 0 / 1.256 GB, free: 48.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=74): time 0.008485/1.899, allocations: 2.153 MB / 1.258 GB, free: 48.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/1.899, allocations: 59.69 kB / 1.258 GB, free: 48.14 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002901/1.902, allocations: 1.313 MB / 1.259 GB, free: 47.97 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001446/1.902, allocations: 42.67 kB / 1.259 GB, free: 47.94 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006482/1.903, allocations: 0.7964 MB / 1.26 GB, free: 47.66 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/1.903, allocations: 257.1 kB / 1.26 GB, free: 47.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/1.903, allocations: 78.5 kB / 1.26 GB, free: 47.48 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.785e-05/1.903, allocations: 337.7 kB / 1.26 GB, free: 47.18 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006765/1.904, allocations: 333.7 kB / 1.261 GB, free: 47.18 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009053/1.905, allocations: 0.5771 MB / 1.261 GB, free: 46.93 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001621/1.907, allocations: 0.8974 MB / 1.262 GB, free: 46.75 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/1.907, allocations: 2 kB / 1.262 GB, free: 46.75 MB / 0.9981 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003358/1.91, allocations: 1.275 MB / 1.263 GB, free: 46.59 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001663/1.91, allocations: 241.3 kB / 1.264 GB, free: 46.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/1.91, allocations: 4.375 kB / 1.264 GB, free: 46.33 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002218/1.913, allocations: 429 kB / 1.264 GB, free: 46.29 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007404/1.913, allocations: 156.8 kB / 1.264 GB, free: 46.29 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/1.915, allocations: 2.056 MB / 1.266 GB, free: 44.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/1.917, allocations: 190.6 kB / 1.266 GB, free: 44.65 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/1.917, allocations: 40.84 kB / 1.266 GB, free: 44.65 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/1.917, allocations: 3.719 kB / 1.266 GB, free: 44.65 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002215/1.919, allocations: 1.071 MB / 1.268 GB, free: 44.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/1.919, allocations: 4.469 kB / 1.268 GB, free: 44.61 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/1.921, allocations: 368.1 kB / 1.268 GB, free: 44.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006819/1.921, allocations: 158.1 kB / 1.268 GB, free: 44.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/1.925, allocations: 3.859 MB / 1.272 GB, free: 41.38 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/1.926, allocations: 179.8 kB / 1.272 GB, free: 41.33 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/1.927, allocations: 34.44 kB / 1.272 GB, free: 41.33 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.001059/1.928, allocations: 489.4 kB / 1.272 GB, free: 41.12 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005307/1.928, allocations: 154 kB / 1.273 GB, free: 41.04 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003377/1.931, allocations: 1.213 MB / 1.274 GB, free: 40.93 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/1.932, allocations: 13.91 kB / 1.274 GB, free: 40.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/1.932, allocations: 0 / 1.274 GB, free: 40.93 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002767/1.934, allocations: 1.307 MB / 1.275 GB, free: 40.43 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006292/1.941, allocations: 2.778 MB / 1.278 GB, free: 39.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/1.941, allocations: 2 kB / 1.278 GB, free: 39.95 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/1.941, allocations: 103.5 kB / 1.278 GB, free: 39.95 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/1.943, allocations: 371.1 kB / 1.278 GB, free: 39.91 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/1.943, allocations: 17.75 kB / 1.278 GB, free: 39.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/1.944, allocations: 2.035 MB / 1.28 GB, free: 38.34 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/1.944, allocations: 5.906 kB / 1.28 GB, free: 38.34 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002488/1.947, allocations: 1.223 MB / 1.281 GB, free: 37.99 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009722/1.948, allocations: 343.6 kB / 1.282 GB, free: 37.81 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004185/1.948, allocations: 28.41 kB / 1.282 GB, free: 37.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001409/1.95, allocations: 120.3 kB / 1.282 GB, free: 37.78 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/1.95, allocations: 49.77 kB / 1.282 GB, free: 37.78 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.393e-05/1.95, allocations: 30.28 kB / 1.282 GB, free: 37.78 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001682/1.952, allocations: 0.8891 MB / 1.283 GB, free: 37.67 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.423e-06/1.952, allocations: 0 / 1.283 GB, free: 37.67 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003687/1.955, allocations: 0.9034 MB / 1.284 GB, free: 37.55 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.001046/1.956, allocations: 375.1 kB / 1.284 GB, free: 37.43 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003544/1.96, allocations: 1.684 MB / 1.286 GB, free: 37.16 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/1.96, allocations: 0 / 1.286 GB, free: 37.16 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001027/1.961, allocations: 477.1 kB / 1.286 GB, free: 37.15 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004835/1.966, allocations: 0.792 MB / 1.287 GB, free: 37.09 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005481/1.971, allocations: 3.431 MB / 1.29 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/1.973, allocations: 1.339 MB / 1.292 GB, free: 34.52 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/1.973, allocations: 105.1 kB / 1.292 GB, free: 34.5 MB / 0.9981 GB Notification: Performance of SimCode: time 6.51e-07/1.973, allocations: 2.906 kB / 1.292 GB, free: 34.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.06083/2.034, allocations: 47.65 MB / 1.338 GB, free: 18.69 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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