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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 177 kB / 7.649 MB, free: 1.422 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.412/1.412, allocations: 221.5 MB / 229.6 MB, free: 7.57 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.001019/0.00102, allocations: 102.6 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01165/0.01165, allocations: 1.565 MB / 332.8 MB, free: 13.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7382/0.7382, allocations: 90.03 MB / 474 MB, free: 13.04 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.345e-05/1.348e-05, allocations: 3.031 kB / 0.5375 GB, free: 33.15 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1712, allocations: 69.36 MB / 0.6052 GB, free: 124 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.394/1.565, allocations: 441.3 MB / 1.036 GB, free: 116.6 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/1.565, allocations: 86.02 kB / 1.036 GB, free: 116.6 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.9145/2.48, allocations: 259.9 MB / 1.29 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.653e-06/2.48, allocations: 3.938 kB / 1.29 GB, free: 111.9 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.372e-05/2.48, allocations: 43.77 kB / 1.29 GB, free: 111.8 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.003718/2.484, allocations: 1.673 MB / 1.292 GB, free: 110.1 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/2.484, allocations: 8.031 kB / 1.292 GB, free: 110.1 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004107/2.484, allocations: 185.3 kB / 1.292 GB, free: 109.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/2.485, allocations: 0.7363 MB / 1.293 GB, free: 109.2 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.168e-05/2.485, allocations: 36 kB / 1.293 GB, free: 109.2 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/2.486, allocations: 71.89 kB / 1.293 GB, free: 109.1 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001345/2.487, allocations: 1.04 MB / 1.294 GB, free: 108 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/2.488, allocations: 1.016 MB / 1.295 GB, free: 107 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/2.488, allocations: 0 / 1.295 GB, free: 107 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.557e-05/2.488, allocations: 0 / 1.295 GB, free: 107 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.287e-05/2.489, allocations: 35.98 kB / 1.295 GB, free: 107 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005299/2.494, allocations: 5.443 MB / 1.3 GB, free: 101 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/2.495, allocations: 1.183 MB / 1.301 GB, free: 99.79 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005583/2.496, allocations: 0.5207 MB / 1.302 GB, free: 99.26 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003047/2.499, allocations: 3.029 MB / 1.305 GB, free: 95.91 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/2.499, allocations: 47.12 kB / 1.305 GB, free: 95.86 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=128): time 3.667e-06/2.499, allocations: 3.938 kB / 1.305 GB, free: 95.85 MB / 0.6042 GB Notification: Performance of matching and sorting (n=128): time 0.003145/2.502, allocations: 1.384 MB / 1.306 GB, free: 94.44 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/2.502, allocations: 115.4 kB / 1.306 GB, free: 94.3 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.0009218/2.503, allocations: 0.7328 MB / 1.307 GB, free: 93.55 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.909e-05/2.503, allocations: 25.7 kB / 1.307 GB, free: 93.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/2.503, allocations: 0.4966 MB / 1.307 GB, free: 93.02 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/2.504, allocations: 429.6 kB / 1.308 GB, free: 92.59 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.021e-05/2.504, allocations: 0 / 1.308 GB, free: 92.59 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.525e-05/2.504, allocations: 349.9 kB / 1.308 GB, free: 92.24 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004776/2.504, allocations: 382.6 kB / 1.309 GB, free: 91.87 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005496/2.505, allocations: 0.5134 MB / 1.309 GB, free: 91.32 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/2.507, allocations: 0.6685 MB / 1.31 GB, free: 90.65 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/2.507, allocations: 3.938 kB / 1.31 GB, free: 90.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003058/2.51, allocations: 1.487 MB / 1.311 GB, free: 89.14 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/2.51, allocations: 12 kB / 1.311 GB, free: 89.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/2.51, allocations: 4 kB / 1.311 GB, free: 89.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004874/2.51, allocations: 148.2 kB / 1.311 GB, free: 88.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007527/2.511, allocations: 211.7 kB / 1.311 GB, free: 88.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003502/2.515, allocations: 6.486 MB / 1.318 GB, free: 81.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000963/2.516, allocations: 83.06 kB / 1.318 GB, free: 81.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/2.516, allocations: 55.91 kB / 1.318 GB, free: 81.56 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.0001813/2.516, allocations: 132.8 kB / 1.318 GB, free: 81.42 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/2.516, allocations: 122.4 kB / 1.318 GB, free: 81.3 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003778/2.52, allocations: 1.685 MB / 1.32 GB, free: 79.59 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/2.52, allocations: 16 kB / 1.32 GB, free: 79.57 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/2.52, allocations: 4 kB / 1.32 GB, free: 79.57 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/2.52, allocations: 11.97 kB / 1.32 GB, free: 79.55 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/2.523, allocations: 1.977 MB / 1.322 GB, free: 77.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/2.523, allocations: 3.984 kB / 1.322 GB, free: 77.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006123/2.524, allocations: 179.7 kB / 1.322 GB, free: 77.37 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004127/2.524, allocations: 168.1 kB / 1.322 GB, free: 77.19 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-05/2.524, allocations: 27.97 kB / 1.322 GB, free: 77.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003264/2.528, allocations: 6.493 MB / 1.329 GB, free: 70.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.528, allocations: 4.031 kB / 1.329 GB, free: 70.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003865/2.532, allocations: 2.288 MB / 1.331 GB, free: 67.76 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005948/2.532, allocations: 383.1 kB / 1.331 GB, free: 67.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/2.532, allocations: 11.95 kB / 1.331 GB, free: 67.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/2.533, allocations: 31.67 kB / 1.331 GB, free: 67.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/2.533, allocations: 100.4 kB / 1.331 GB, free: 67.22 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.67e-05/2.533, allocations: 47.95 kB / 1.331 GB, free: 67.18 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0006831/2.534, allocations: 0.5506 MB / 1.332 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.3e-07/2.534, allocations: 0 / 1.332 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001823/2.536, allocations: 0.4913 MB / 1.332 GB, free: 66.12 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 (112): * Single equations (assignments): 97 * 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.001773/2.538, allocations: 0.9932 MB / 1.333 GB, free: 65.21 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002188/2.54, allocations: 1.622 MB / 1.335 GB, free: 63.53 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/2.54, allocations: 4.5 kB / 1.335 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001135/2.541, allocations: 1.178 MB / 1.336 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/2.543, allocations: 312.3 kB / 1.336 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00307/2.546, allocations: 1.894 MB / 1.338 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005688/2.546, allocations: 1.166 MB / 1.339 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0009016/2.547, allocations: 235.5 kB / 1.34 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/2.548, allocations: 115.4 kB / 1.34 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of SimCode: time 8.91e-07/2.548, allocations: 0 / 1.34 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of Templates: time 0.0313/2.579, allocations: 21.73 MB / 1.361 GB, free: 36.9 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