Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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) 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) Running command: translateModel(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") [: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/Complex 4.0.0+maint.om/package.mo): time 0.003853/0.003853, allocations: 172.3 kB / 7.457 MB, free: 2.176 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 221.4 MB / 229.3 MB, free: 3.082 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 102.7 kB / 280.1 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01098/0.01097, allocations: 1.571 MB / 332.5 MB, free: 12.89 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.715/0.715, allocations: 90.04 MB / 473.6 MB, free: 7.258 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.008e-05/1.012e-05, allocations: 0 / 0.5369 GB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1989, allocations: 69.36 MB / 0.6046 GB, free: 8.859 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.414/1.613, allocations: 444.7 MB / 1.039 GB, free: 0.9023 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003557/1.614, allocations: 88.39 kB / 1.039 GB, free: 0.8594 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.68/4.294, allocations: 0.5995 GB / 1.639 GB, free: 47.12 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002812/4.294, allocations: 57.28 kB / 1.639 GB, free: 47.11 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01053/4.305, allocations: 2.835 MB / 1.641 GB, free: 45.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/4.305, allocations: 10.33 kB / 1.641 GB, free: 45.79 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00145/4.306, allocations: 263.5 kB / 1.642 GB, free: 45.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004241/4.311, allocations: 1.165 MB / 1.643 GB, free: 45.28 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/4.311, allocations: 71.56 kB / 1.643 GB, free: 45.28 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00098/4.312, allocations: 139.2 kB / 1.643 GB, free: 45.27 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00544/4.317, allocations: 2.092 MB / 1.645 GB, free: 45.25 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005125/4.322, allocations: 2.116 MB / 1.647 GB, free: 45.11 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.313e-05/4.323, allocations: 4.719 kB / 1.647 GB, free: 45.11 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001513/4.323, allocations: 0 / 1.647 GB, free: 45.11 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/4.323, allocations: 64.77 kB / 1.647 GB, free: 45.11 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01574/4.339, allocations: 11.75 MB / 1.659 GB, free: 38.18 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/4.34, allocations: 1.082 MB / 1.66 GB, free: 38.13 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/4.342, allocations: 0.9888 MB / 1.661 GB, free: 38.11 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007923/4.35, allocations: 6.011 MB / 1.667 GB, free: 34.85 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001505/4.351, allocations: 1.137 MB / 1.668 GB, free: 34.76 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=216): time 5.239e-06/4.351, allocations: 3.594 kB / 1.668 GB, free: 34.76 MB / 0.6042 GB Notification: Performance of matching and sorting (n=217): time 0.01351/4.365, allocations: 4.87 MB / 1.672 GB, free: 33.82 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/4.365, allocations: 99.39 kB / 1.672 GB, free: 33.72 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008629/4.366, allocations: 0.671 MB / 1.673 GB, free: 33.58 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001971/4.366, allocations: 25.7 kB / 1.673 GB, free: 33.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004429/4.366, allocations: 0.5795 MB / 1.674 GB, free: 33.21 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005559/4.367, allocations: 0.7037 MB / 1.674 GB, free: 32.73 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/4.367, allocations: 3.938 kB / 1.674 GB, free: 32.73 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001122/4.367, allocations: 376 kB / 1.675 GB, free: 32.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/4.368, allocations: 0.7538 MB / 1.676 GB, free: 32.42 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/4.37, allocations: 0.9255 MB / 1.676 GB, free: 32.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004362/4.374, allocations: 1.38 MB / 1.678 GB, free: 32.27 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/4.374, allocations: 0 / 1.678 GB, free: 32.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=240) (initialization): time 0.007576/4.382, allocations: 3.01 MB / 1.681 GB, free: 32.02 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/4.382, allocations: 7.875 kB / 1.681 GB, free: 32.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/4.382, allocations: 3.891 kB / 1.681 GB, free: 32.02 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001984/4.384, allocations: 0.5944 MB / 1.681 GB, free: 31.94 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/4.385, allocations: 300.2 kB / 1.682 GB, free: 31.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009656/4.394, allocations: 11.31 MB / 1.693 GB, free: 22.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/4.397, allocations: 155.2 kB / 1.693 GB, free: 22.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/4.397, allocations: 83.95 kB / 1.693 GB, free: 22.39 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: connectRearOutlet1.r_rear:VARIABLE(unit = "Pa" protected = true ) type: Real $DER.connectRearOutlet1.outlet.m_flow:VARIABLE(flow=true unit = "kg/s" ) "Mass flow rate" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.connectorInletOutletFore.junctionRFF2_1.junctionMN.rears[1].m_flow:DUMMY_DER(flow=true fixed = false ) "mass flow rate" type: Real [1] $DER.sink3.inlet.m_flow:VARIABLE(flow=true unit = "kg/s" ) "mass flow rate" type: Real connectorInletOutletFore.junctionRFF2_1.junctionMN.r_mix:VARIABLE(unit = "Pa" protected = true ) "mixed r assuming positive massflow" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 2 {3 18,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004742/4.398, allocations: 143.8 kB / 1.693 GB, free: 22.26 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002963/4.398, allocations: 164.6 kB / 1.693 GB, free: 22.18 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009854/4.408, allocations: 3.672 MB / 1.697 GB, free: 21.24 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.334e-05/4.408, allocations: 34.09 kB / 1.697 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-05/4.408, allocations: 11.09 kB / 1.697 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.799e-05/4.408, allocations: 11.98 kB / 1.697 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01353/4.421, allocations: 5.766 MB / 1.702 GB, free: 18.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/4.421, allocations: 0.6562 kB / 1.702 GB, free: 18.83 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/4.423, allocations: 322.1 kB / 1.703 GB, free: 18.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/4.425, allocations: 0.522 MB / 1.703 GB, free: 18.64 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002447/4.425, allocations: 58.47 kB / 1.703 GB, free: 18.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01156/4.437, allocations: 13.38 MB / 1.716 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/4.437, allocations: 1.312 kB / 1.716 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01146/4.448, allocations: 4.453 MB / 1.721 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/4.449, allocations: 246.1 kB / 1.721 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/4.449, allocations: 14.53 kB / 1.721 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/4.451, allocations: 106.2 kB / 1.721 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/4.451, allocations: 159.4 kB / 1.721 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/4.451, allocations: 91.59 kB / 1.721 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0007798/4.452, allocations: 0.5081 MB / 1.722 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.004612/4.457, allocations: 0.9304 MB / 1.723 GB, free: 19.66 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (connectRearRear.rear_a.m_flow,connectForeFore.fore_a.m_flow,connectInletFore.fore.m_flow,connectRearOutlet.outlet.m_flow,source1.outlet.m_flow,boundary_rear3.fore.m_flow,connectRearOutlet1.outlet.m_flow,flowResistance2.rear.m_flow,boundary_fore5.rear.m_flow,sink3.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 8,(3,77.8%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003639/4.46, allocations: 2.049 MB / 1.725 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.005977/4.466, allocations: 3.097 MB / 1.728 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/4.466, allocations: 3.281 kB / 1.728 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.004342/4.471, allocations: 2.459 MB / 1.73 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003364/4.474, allocations: 430.2 kB / 1.731 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009711/4.484, allocations: 3.529 MB / 1.734 GB, free: 13.64 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002103/4.486, allocations: 1.718 MB / 1.736 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of SimCode: time 1.483e-06/4.486, allocations: 0 / 1.736 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of Templates: time 0.4684/4.955, allocations: 47.42 MB / 1.782 GB, free: 130.3 MB / 0.6355 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestConnectors_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches