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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.196/2.196, allocations: 387.2 MB / 394.5 MB, free: 13.66 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 196.6 kB / 487 MB, free: 5.352 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 221.3 MB / 0.7819 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 88.73 kB / 0.9213 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.358e-06/9.398e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2968, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.743/5.04, allocations: 2.182 GB / 3.387 GB, free: 118.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/5.04, allocations: 95.84 kB / 3.388 GB, free: 118.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 4.011/9.052, allocations: 1.13 GB / 4.517 GB, free: 188.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001533/9.052, allocations: 54.83 kB / 4.517 GB, free: 188.2 MB / 1.151 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.004361/9.056, allocations: 2.119 MB / 4.519 GB, free: 187.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/9.056, allocations: 10.22 kB / 4.519 GB, free: 187.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001809/9.058, allocations: 382.1 kB / 4.52 GB, free: 187.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003143/9.061, allocations: 1.677 MB / 4.521 GB, free: 186.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.453e-05/9.061, allocations: 42.03 kB / 4.521 GB, free: 186.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/9.061, allocations: 85.19 kB / 4.521 GB, free: 186.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001609/9.063, allocations: 0.9457 MB / 4.522 GB, free: 186.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/9.065, allocations: 1.232 MB / 4.524 GB, free: 186.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.123e-05/9.065, allocations: 7.062 kB / 4.524 GB, free: 186.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-05/9.065, allocations: 0 / 4.524 GB, free: 186.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.103e-05/9.065, allocations: 60.36 kB / 4.524 GB, free: 186.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007291/9.072, allocations: 7.328 MB / 4.531 GB, free: 182.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/9.073, allocations: 0.7806 MB / 4.532 GB, free: 182.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004578/9.074, allocations: 396.3 kB / 4.532 GB, free: 182.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007277/9.075, allocations: 0.7185 MB / 4.533 GB, free: 181.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/9.075, allocations: 46.75 kB / 4.533 GB, free: 181.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=75): time 3.266e-06/9.075, allocations: 0 / 4.533 GB, free: 181.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=75): time 0.003133/9.078, allocations: 1.189 MB / 4.534 GB, free: 181.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.192e-05/9.078, allocations: 58.25 kB / 4.534 GB, free: 181.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/9.079, allocations: 0.9423 MB / 4.535 GB, free: 181.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/9.079, allocations: 25.7 kB / 4.535 GB, free: 181.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/9.079, allocations: 0.5685 MB / 4.535 GB, free: 181 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000202/9.08, allocations: 255.3 kB / 4.536 GB, free: 180.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/9.08, allocations: 0 / 4.536 GB, free: 180.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.867e-05/9.08, allocations: 339.1 kB / 4.536 GB, free: 180.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/9.08, allocations: 278.7 kB / 4.536 GB, free: 180.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004887/9.081, allocations: 0.5352 MB / 4.537 GB, free: 180.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007635/9.081, allocations: 458.3 kB / 4.537 GB, free: 180.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/9.081, allocations: 0 / 4.537 GB, free: 180.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002765/9.084, allocations: 1.258 MB / 4.538 GB, free: 180 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003748/9.084, allocations: 1.96 MB / 4.54 GB, free: 178 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/9.084, allocations: 9.688 kB / 4.54 GB, free: 178 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/9.086, allocations: 372.5 kB / 4.541 GB, free: 178 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005911/9.087, allocations: 151.2 kB / 4.541 GB, free: 178 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/9.088, allocations: 2.141 MB / 4.543 GB, free: 176.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/9.09, allocations: 146.7 kB / 4.543 GB, free: 176.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.186e-05/9.09, allocations: 44.7 kB / 4.543 GB, free: 176.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.967e-06/9.09, allocations: 7.688 kB / 4.543 GB, free: 176.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002458/9.092, allocations: 1.05 MB / 4.544 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/9.092, allocations: 11.78 kB / 4.544 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001486/9.094, allocations: 379 kB / 4.544 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/9.094, allocations: 149.9 kB / 4.545 GB, free: 176.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/9.097, allocations: 3.785 MB / 4.548 GB, free: 173.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001299/9.098, allocations: 138.3 kB / 4.548 GB, free: 173.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-05/9.099, allocations: 36.78 kB / 4.549 GB, free: 173.2 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * Array equations: 0 * 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 {3 21,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002249/9.099, allocations: 123.9 kB / 4.549 GB, free: 173.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/9.099, allocations: 146.4 kB / 4.549 GB, free: 173 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/9.102, allocations: 1.235 MB / 4.55 GB, free: 172.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/9.102, allocations: 9.062 kB / 4.55 GB, free: 172.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/9.102, allocations: 3.906 kB / 4.55 GB, free: 172.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002302/9.104, allocations: 1.348 MB / 4.551 GB, free: 172.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004172/9.108, allocations: 2.546 MB / 4.554 GB, free: 171.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/9.108, allocations: 0 / 4.554 GB, free: 171.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/9.109, allocations: 111.1 kB / 4.554 GB, free: 171.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001424/9.11, allocations: 366.6 kB / 4.554 GB, free: 171.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/9.11, allocations: 6.469 kB / 4.554 GB, free: 171.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001294/9.112, allocations: 2.132 MB / 4.556 GB, free: 170.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/9.112, allocations: 3.062 kB / 4.556 GB, free: 170.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001746/9.113, allocations: 1.343 MB / 4.558 GB, free: 169.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006571/9.114, allocations: 328.8 kB / 4.558 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/9.114, allocations: 10.47 kB / 4.558 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/9.115, allocations: 110.2 kB / 4.558 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/9.115, allocations: 42.22 kB / 4.558 GB, free: 169.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.129e-05/9.116, allocations: 32.72 kB / 4.558 GB, free: 169.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.000886/9.116, allocations: 0.7106 MB / 4.559 GB, free: 169.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003069/9.12, allocations: 1.05 MB / 4.56 GB, free: 169.4 MB / 1.151 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 () * 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 {3 21,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003083/9.123, allocations: 2.537 MB / 4.562 GB, free: 168.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002785/9.125, allocations: 1.469 MB / 4.564 GB, free: 168.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/9.125, allocations: 3.812 kB / 4.564 GB, free: 168.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007331/9.126, allocations: 431.3 kB / 4.564 GB, free: 168.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003554/9.13, allocations: 0.6918 MB / 4.565 GB, free: 168.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/9.134, allocations: 1.997 MB / 4.567 GB, free: 167.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/9.135, allocations: 1.484 MB / 4.568 GB, free: 167 MB / 1.151 GB Notification: Performance of SimCode: time 1.072e-06/9.135, allocations: 0 / 4.568 GB, free: 167 MB / 1.151 GB Notification: Performance of Templates: time 0.08788/9.223, allocations: 44.4 MB / 4.612 GB, free: 164.4 MB / 1.151 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","../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches