Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.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.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") [: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.00368/0.00368, allocations: 179.9 kB / 7.458 MB, free: 2.504 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.572/1.572, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.0009368/0.0009368, allocations: 97.86 kB / 280.1 MB, free: 1.234 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.0123/0.0123, allocations: 1.571 MB / 332.5 MB, free: 12.86 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7495/0.7495, allocations: 90.05 MB / 473.7 MB, free: 7.254 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.616e-06/8.656e-06, allocations: 0 / 0.5369 GB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1923, allocations: 69.36 MB / 0.6046 GB, free: 8.859 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.501/1.694, allocations: 441.2 MB / 1.035 GB, free: 7.195 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/1.694, allocations: 92.44 kB / 1.036 GB, free: 7.148 MB / 0.5886 GB Notification: Performance of FrontEnd: time 0.9797/2.674, allocations: 261.4 MB / 1.291 GB, free: 19.1 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002207/2.674, allocations: 35.98 kB / 1.291 GB, free: 19.07 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.006068/2.68, allocations: 1.683 MB / 1.292 GB, free: 17.33 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/2.68, allocations: 12.03 kB / 1.292 GB, free: 17.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007327/2.681, allocations: 158 kB / 1.293 GB, free: 17.16 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/2.683, allocations: 0.7501 MB / 1.293 GB, free: 16.37 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.157e-05/2.683, allocations: 35.98 kB / 1.293 GB, free: 16.34 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003484/2.684, allocations: 67.91 kB / 1.293 GB, free: 16.27 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002262/2.686, allocations: 1.047 MB / 1.294 GB, free: 15.22 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/2.688, allocations: 1.015 MB / 1.295 GB, free: 14.16 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/2.688, allocations: 0 / 1.295 GB, free: 14.16 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-05/2.688, allocations: 0 / 1.295 GB, free: 14.16 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.611e-05/2.688, allocations: 35.98 kB / 1.295 GB, free: 14.13 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007592/2.696, allocations: 5.464 MB / 1.301 GB, free: 8.09 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/2.697, allocations: 0.9978 MB / 1.302 GB, free: 7.066 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007454/2.698, allocations: 0.515 MB / 1.302 GB, free: 6.547 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004246/2.702, allocations: 3.245 MB / 1.305 GB, free: 2.938 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/2.702, allocations: 59.16 kB / 1.306 GB, free: 2.871 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=128): time 3.847e-06/2.702, allocations: 0 / 1.306 GB, free: 2.871 MB / 0.6042 GB Notification: Performance of matching and sorting (n=128): time 0.00419/2.707, allocations: 1.455 MB / 1.307 GB, free: 1.391 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/2.707, allocations: 119.3 kB / 1.307 GB, free: 1.25 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/FlowControl/SpecificValveType.mo:27:3-28:92:writable] Warning: Parameter specificValveType.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/FlowControl/SpecificValveType.mo:25:3-26:88:writable] Warning: Parameter specificValveType.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/FlowControl/SpecificValveType.mo:23:3-24:88:writable] Warning: Parameter specificValveType.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/FlowControl/SpecificValveType.mo:16:3-18:44:writable] Warning: Parameter specificValveType.d_valve has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter basicControlValve.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter basicControlValve.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/Undirected/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter basicControlValve.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/2.708, allocations: 0.7313 MB / 1.308 GB, free: 0.4961 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.181e-05/2.708, allocations: 25.7 kB / 1.308 GB, free: 476 kB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/2.708, allocations: 368.5 kB / 1.308 GB, free: 100 kB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.391/3.099, allocations: 430.2 kB / 1.309 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/3.1, allocations: 0 / 1.309 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001382/3.1, allocations: 342.8 kB / 1.309 GB, free: 167.6 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007017/3.101, allocations: 386.5 kB / 1.309 GB, free: 167.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007026/3.101, allocations: 0.5138 MB / 1.31 GB, free: 167.5 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/3.104, allocations: 0.7337 MB / 1.31 GB, free: 167.5 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/3.104, allocations: 0 / 1.31 GB, free: 167.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.004104/3.108, allocations: 1.551 MB / 1.312 GB, free: 167.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/3.108, allocations: 7.594 kB / 1.312 GB, free: 167.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/3.108, allocations: 3.125 kB / 1.312 GB, free: 167.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006036/3.109, allocations: 159.4 kB / 1.312 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00084/3.11, allocations: 213.2 kB / 1.312 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003946/3.114, allocations: 6.428 MB / 1.319 GB, free: 161.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/3.115, allocations: 75.16 kB / 1.319 GB, free: 161.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/3.115, allocations: 56.3 kB / 1.319 GB, free: 161.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002448/3.115, allocations: 128.4 kB / 1.319 GB, free: 161.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/3.116, allocations: 110.9 kB / 1.319 GB, free: 161.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004725/3.12, allocations: 1.857 MB / 1.321 GB, free: 161 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.621e-05/3.12, allocations: 20.64 kB / 1.321 GB, free: 161 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/3.12, allocations: 3.25 kB / 1.321 GB, free: 161 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/3.121, allocations: 9.641 kB / 1.321 GB, free: 161 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006081/3.127, allocations: 3.077 MB / 1.324 GB, free: 160.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/3.127, allocations: 3.844 kB / 1.324 GB, free: 160.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006973/3.127, allocations: 182 kB / 1.324 GB, free: 160.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004704/3.128, allocations: 162.7 kB / 1.324 GB, free: 160.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.44e-05/3.128, allocations: 32.53 kB / 1.324 GB, free: 160.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/3.132, allocations: 6.428 MB / 1.33 GB, free: 154.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/3.132, allocations: 0 / 1.33 GB, free: 154.5 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005036/3.137, allocations: 2.393 MB / 1.333 GB, free: 154 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008952/3.138, allocations: 396.1 kB / 1.333 GB, free: 153.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/3.138, allocations: 6.156 kB / 1.333 GB, free: 153.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009887/3.139, allocations: 22.33 kB / 1.333 GB, free: 153.9 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/3.139, allocations: 81.94 kB / 1.333 GB, free: 153.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/3.139, allocations: 47.42 kB / 1.333 GB, free: 153.9 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0008911/3.14, allocations: 0.5527 MB / 1.334 GB, free: 153.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002301/3.143, allocations: 0.5179 MB / 1.334 GB, free: 153.7 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow,flowResistance.m_flow,flowResistance1.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/3.145, allocations: 0.9757 MB / 1.335 GB, free: 153.6 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0027/3.147, allocations: 1.621 MB / 1.337 GB, free: 153 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/3.147, allocations: 0 / 1.337 GB, free: 153 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001587/3.149, allocations: 1.164 MB / 1.338 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/3.151, allocations: 303.9 kB / 1.338 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005945/3.157, allocations: 1.929 MB / 1.34 GB, free: 151.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/3.159, allocations: 1.297 MB / 1.342 GB, free: 151.2 MB / 0.6042 GB Notification: Performance of SimCode: time 1.423e-06/3.159, allocations: 0 / 1.342 GB, free: 151.2 MB / 0.6042 GB Notification: Performance of Templates: time 0.04831/3.207, allocations: 24.81 MB / 1.366 GB, free: 150.5 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches