Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0008627/0.0008626, allocations: 98.72 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.001008/0.001008, allocations: 185.4 kB / 16.92 MB, free: 6.895 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.448/1.448, allocations: 223.3 MB / 241 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.691/2.691, allocations: 437.8 MB / 0.7128 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004015, allocations: 12 kB / 0.8735 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7658/0.7662, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent): time 0.9729/1.739, allocations: 248.1 MB / 1.266 GB, free: 25.48 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02645/1.766, allocations: 17.96 MB / 1.284 GB, free: 25.15 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00398/1.77, allocations: 74.78 kB / 1.284 GB, free: 25.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.003466/1.773, allocations: 0.907 MB / 1.285 GB, free: 25.13 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.01205/1.785, allocations: 3.583 MB / 1.288 GB, free: 24.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005522/1.791, allocations: 1.628 MB / 1.29 GB, free: 24.91 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.009783/1.801, allocations: 6.794 MB / 1.296 GB, free: 24.9 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003068/1.804, allocations: 1.506 MB / 1.298 GB, free: 24.64 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005231/1.809, allocations: 1.827 MB / 1.3 GB, free: 24.62 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004004/1.813, allocations: 1.486 MB / 1.301 GB, free: 24.61 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004955/1.814, allocations: 70.72 kB / 1.301 GB, free: 24.61 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00648/1.82, allocations: 2.706 MB / 1.304 GB, free: 24.57 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001103/1.821, allocations: 469.4 kB / 1.304 GB, free: 24.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002359/1.824, allocations: 0.9973 MB / 1.305 GB, free: 24.54 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004129/1.828, allocations: 2.716 MB / 1.308 GB, free: 24.33 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/1.828, allocations: 0 / 1.308 GB, free: 24.33 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.534e-06/1.828, allocations: 0 / 1.308 GB, free: 24.33 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.606e-05/1.828, allocations: 0 / 1.308 GB, free: 24.33 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.004327/1.832, allocations: 2.105 MB / 1.31 GB, free: 23.2 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/1.832, allocations: 12.58 kB / 1.31 GB, free: 23.19 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001834/1.834, allocations: 380.3 kB / 1.31 GB, free: 23.07 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002494/1.837, allocations: 1.423 MB / 1.312 GB, free: 22.63 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.229e-05/1.837, allocations: 103 kB / 1.312 GB, free: 22.63 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/1.837, allocations: 143.2 kB / 1.312 GB, free: 22.62 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002676/1.84, allocations: 1.518 MB / 1.313 GB, free: 22.42 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/1.84, allocations: 2.531 kB / 1.313 GB, free: 22.42 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/1.84, allocations: 54.12 kB / 1.313 GB, free: 22.42 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.966e-05/1.84, allocations: 60.5 kB / 1.313 GB, free: 22.41 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/1.842, allocations: 1.163 MB / 1.315 GB, free: 22.39 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.007832/1.85, allocations: 7.193 MB / 1.322 GB, free: 18.39 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/1.851, allocations: 0.8436 MB / 1.322 GB, free: 18.25 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006676/1.852, allocations: 452.4 kB / 1.323 GB, free: 18.24 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007141/1.852, allocations: 0.7294 MB / 1.324 GB, free: 17.48 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/1.852, allocations: 42.28 kB / 1.324 GB, free: 17.45 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=74): time 2.625e-06/1.852, allocations: 0 / 1.324 GB, free: 17.45 MB / 0.9825 GB Notification: Performance of matching and sorting (n=74): time 0.00649/1.859, allocations: 2.158 MB / 1.326 GB, free: 16.95 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/1.859, allocations: 62.75 kB / 1.326 GB, free: 16.88 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/1.861, allocations: 1.313 MB / 1.327 GB, free: 16.71 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001422/1.861, allocations: 42.89 kB / 1.327 GB, free: 16.68 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005642/1.862, allocations: 0.7974 MB / 1.328 GB, free: 16.38 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/1.862, allocations: 257 kB / 1.328 GB, free: 16.22 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/1.862, allocations: 74.53 kB / 1.328 GB, free: 16.2 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.473e-05/1.862, allocations: 343.4 kB / 1.328 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006183/1.863, allocations: 336.9 kB / 1.329 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007265/1.863, allocations: 0.5781 MB / 1.329 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/1.865, allocations: 0.8906 MB / 1.33 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/1.865, allocations: 3.312 kB / 1.33 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002653/1.867, allocations: 1.277 MB / 1.331 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/1.867, allocations: 235.2 kB / 1.332 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/1.867, allocations: 2.562 kB / 1.332 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/1.869, allocations: 415.5 kB / 1.332 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005879/1.87, allocations: 159.8 kB / 1.332 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/1.871, allocations: 2.06 MB / 1.334 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/1.873, allocations: 191.5 kB / 1.334 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.308e-05/1.873, allocations: 39.78 kB / 1.334 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/1.873, allocations: 2.688 kB / 1.334 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00183/1.875, allocations: 1.077 MB / 1.336 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/1.875, allocations: 5.812 kB / 1.336 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/1.876, allocations: 365.8 kB / 1.336 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005971/1.877, allocations: 157.4 kB / 1.336 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/1.88, allocations: 3.86 MB / 1.34 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/1.881, allocations: 182.2 kB / 1.34 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.243e-05/1.881, allocations: 33.81 kB / 1.34 GB, free: 9.492 MB / 0.9825 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.0008762/1.882, allocations: 471.3 kB / 1.34 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002651/1.882, allocations: 157.6 kB / 1.341 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002615/1.885, allocations: 1.216 MB / 1.342 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/1.885, allocations: 7.844 kB / 1.342 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/1.885, allocations: 4 kB / 1.342 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002122/1.887, allocations: 1.306 MB / 1.343 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004617/1.892, allocations: 2.775 MB / 1.346 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/1.892, allocations: 6.844 kB / 1.346 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/1.892, allocations: 107.5 kB / 1.346 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/1.894, allocations: 377.4 kB / 1.346 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/1.894, allocations: 18.03 kB / 1.346 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/1.895, allocations: 2.03 MB / 1.348 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/1.895, allocations: 2.781 kB / 1.348 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/1.897, allocations: 1.23 MB / 1.349 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006884/1.898, allocations: 339.7 kB / 1.35 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/1.898, allocations: 17.89 kB / 1.35 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.899, allocations: 119.5 kB / 1.35 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/1.899, allocations: 58.97 kB / 1.35 GB, free: 2.488 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-05/1.899, allocations: 29.33 kB / 1.35 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001109/1.9, allocations: 0.8923 MB / 1.351 GB, free: 1.992 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.71e-07/1.9, allocations: 0 / 1.351 GB, free: 1.992 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002506/1.903, allocations: 0.9022 MB / 1.352 GB, free: 1.801 MB / 0.9825 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.0007893/1.903, allocations: 369.4 kB / 1.352 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.003101/1.907, allocations: 1.675 MB / 1.354 GB, free: 0.7773 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.907, allocations: 448 / 1.354 GB, free: 0.7773 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0009133/1.908, allocations: 480.9 kB / 1.354 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004184/1.912, allocations: 0.7862 MB / 1.355 GB, free: 196 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00495/1.917, allocations: 3.44 MB / 1.358 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000935/1.918, allocations: 1.34 MB / 1.36 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/1.918, allocations: 99.08 kB / 1.36 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of SimCode: time 6.31e-07/1.918, allocations: 0 / 1.36 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of Templates: time 0.06273/1.981, allocations: 47.67 MB / 1.406 GB, free: 15.47 MB / 1.045 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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