Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [: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.003861/0.003861, allocations: 185.3 kB / 7.459 MB, free: 2.52 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.559/1.559, allocations: 221.4 MB / 229.3 MB, free: 3.059 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.001009/0.001009, allocations: 98.39 kB / 280.1 MB, free: 1.266 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.01242/0.01242, allocations: 1.574 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.7613/0.7613, allocations: 90.05 MB / 473.7 MB, free: 7.27 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 6.262e-06/6.292e-06, allocations: 0 / 0.5369 GB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1881, allocations: 69.35 MB / 0.6046 GB, free: 8.895 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.524/1.713, allocations: 441.3 MB / 1.036 GB, free: 6.805 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.713, allocations: 87.25 kB / 1.036 GB, free: 6.758 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.042/2.755, allocations: 252.9 MB / 1.283 GB, free: 11.01 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0001815/2.755, allocations: 44.08 kB / 1.283 GB, free: 10.97 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.006326/2.762, allocations: 1.681 MB / 1.284 GB, free: 9.238 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.688e-05/2.762, allocations: 8.031 kB / 1.284 GB, free: 9.23 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009446/2.763, allocations: 154.2 kB / 1.284 GB, free: 9.078 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/2.765, allocations: 0.74 MB / 1.285 GB, free: 8.312 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.416e-05/2.765, allocations: 39.91 kB / 1.285 GB, free: 8.273 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005396/2.766, allocations: 75.94 kB / 1.285 GB, free: 8.199 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003462/2.769, allocations: 1.567 MB / 1.287 GB, free: 6.629 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002895/2.772, allocations: 1.21 MB / 1.288 GB, free: 5.395 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.774e-05/2.772, allocations: 0 / 1.288 GB, free: 5.395 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/2.772, allocations: 0 / 1.288 GB, free: 5.395 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.032e-05/2.772, allocations: 36.86 kB / 1.288 GB, free: 5.359 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.391/3.163, allocations: 6.226 MB / 1.294 GB, free: 174.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/3.165, allocations: 0.803 MB / 1.295 GB, free: 174.1 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009343/3.166, allocations: 0.6965 MB / 1.296 GB, free: 174.1 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005366/3.171, allocations: 3.621 MB / 1.299 GB, free: 172.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/3.172, allocations: 0.7259 MB / 1.3 GB, free: 172.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=136): time 8.215e-06/3.172, allocations: 3.172 kB / 1.3 GB, free: 172.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=137): time 0.01485/3.187, allocations: 4.324 MB / 1.304 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/3.187, allocations: 67.38 kB / 1.304 GB, free: 171.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000592/3.188, allocations: 426.4 kB / 1.305 GB, free: 171.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.092e-05/3.188, allocations: 25.7 kB / 1.305 GB, free: 171.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003642/3.188, allocations: 358 kB / 1.305 GB, free: 171.5 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/3.189, allocations: 446.8 kB / 1.305 GB, free: 171.3 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.035e-05/3.189, allocations: 0 / 1.305 GB, free: 171.3 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001841/3.189, allocations: 404.1 kB / 1.306 GB, free: 171 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007923/3.19, allocations: 0.5327 MB / 1.306 GB, free: 171 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008526/3.191, allocations: 0.6152 MB / 1.307 GB, free: 170.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003659/3.194, allocations: 0.9949 MB / 1.308 GB, free: 170.9 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/3.194, allocations: 0 / 1.308 GB, free: 170.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.005366/3.2, allocations: 1.951 MB / 1.31 GB, free: 170.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/3.2, allocations: 7.719 kB / 1.31 GB, free: 170.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/3.2, allocations: 5.438 kB / 1.31 GB, free: 170.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005776/3.2, allocations: 159.7 kB / 1.31 GB, free: 170.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009645/3.201, allocations: 246.1 kB / 1.31 GB, free: 170.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003927/3.205, allocations: 2.585 MB / 1.313 GB, free: 169.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/3.207, allocations: 72.41 kB / 1.313 GB, free: 169.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/3.207, allocations: 51.75 kB / 1.313 GB, free: 169.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002481/3.207, allocations: 122.4 kB / 1.313 GB, free: 169.4 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/3.207, allocations: 97.47 kB / 1.313 GB, free: 169.3 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006094/3.213, allocations: 2.496 MB / 1.315 GB, free: 169.2 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/3.213, allocations: 17.88 kB / 1.315 GB, free: 169.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/3.213, allocations: 7.562 kB / 1.315 GB, free: 169.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.988e-05/3.213, allocations: 9.516 kB / 1.315 GB, free: 169.2 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007682/3.221, allocations: 3.701 MB / 1.319 GB, free: 168.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/3.221, allocations: 3.062 kB / 1.319 GB, free: 168.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/3.222, allocations: 284.3 kB / 1.319 GB, free: 168.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005234/3.223, allocations: 140.1 kB / 1.319 GB, free: 168.9 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/3.223, allocations: 39.27 kB / 1.319 GB, free: 168.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/3.226, allocations: 2.216 MB / 1.322 GB, free: 167.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/3.226, allocations: 3.938 kB / 1.322 GB, free: 167.6 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00679/3.233, allocations: 2.968 MB / 1.325 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005077/3.233, allocations: 163.1 kB / 1.325 GB, free: 167.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/3.234, allocations: 14.86 kB / 1.325 GB, free: 167.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007951/3.234, allocations: 73.3 kB / 1.325 GB, free: 167.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/3.235, allocations: 102.5 kB / 1.325 GB, free: 167.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/3.235, allocations: 61.64 kB / 1.325 GB, free: 167.1 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004444/3.235, allocations: 328.1 kB / 1.325 GB, free: 167 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002362/3.238, allocations: 0.5295 MB / 1.326 GB, free: 167 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (junctionRFF2_1.junctionMN.rears[1].m_flow,junctionRFF2_1.junctionMN.fores[1].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 (154): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001779/3.239, allocations: 0.9108 MB / 1.327 GB, free: 166.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003/3.242, allocations: 1.623 MB / 1.328 GB, free: 166.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/3.242, allocations: 2.969 kB / 1.328 GB, free: 166.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001566/3.244, allocations: 0.9917 MB / 1.329 GB, free: 166.6 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/3.246, allocations: 270.9 kB / 1.329 GB, free: 166.6 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004581/3.25, allocations: 1.884 MB / 1.331 GB, free: 166.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/3.252, allocations: 1.314 MB / 1.333 GB, free: 165.4 MB / 0.6042 GB Notification: Performance of SimCode: time 1.623e-06/3.252, allocations: 0 / 1.333 GB, free: 165.4 MB / 0.6042 GB Notification: Performance of Templates: time 0.04845/3.3, allocations: 26.84 MB / 1.359 GB, free: 164.8 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches