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.01082/0.01082, allocations: 174.5 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.599/1.599, allocations: 223.2 MB / 239 MB, free: 1.781 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.0009844/0.0009845, allocations: 98.12 kB / 290.2 MB, free: 13.93 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.01448/0.01448, allocations: 1.565 MB / 342.9 MB, free: 9.258 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.9993/0.9993, allocations: 90.3 MB / 484.7 MB, free: 21.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004542, allocations: 14.75 kB / 0.5526 GB, free: 30.38 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1603, allocations: 69.37 MB / 0.6203 GB, free: 5.605 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.334/1.495, allocations: 442 MB / 1.052 GB, free: 99.55 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/1.495, allocations: 93.27 kB / 1.052 GB, free: 99.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 1.001/2.496, allocations: 262.2 MB / 1.308 GB, free: 87.91 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.312e-06/2.496, allocations: 4 kB / 1.308 GB, free: 87.91 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.538e-05/2.496, allocations: 35.98 kB / 1.308 GB, free: 87.88 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.004189/2.501, allocations: 1.823 MB / 1.31 GB, free: 86 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/2.501, allocations: 11.98 kB / 1.31 GB, free: 85.98 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00048/2.501, allocations: 182.1 kB / 1.31 GB, free: 85.8 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/2.502, allocations: 0.7461 MB / 1.311 GB, free: 85.01 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.137e-05/2.503, allocations: 86.05 kB / 1.311 GB, free: 84.93 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/2.503, allocations: 103.9 kB / 1.311 GB, free: 84.82 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/2.504, allocations: 1.16 MB / 1.312 GB, free: 83.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/2.505, allocations: 0 / 1.312 GB, free: 83.62 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/2.505, allocations: 45.03 kB / 1.312 GB, free: 83.58 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/2.505, allocations: 31.98 kB / 1.312 GB, free: 83.55 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/2.506, allocations: 1.122 MB / 1.313 GB, free: 82.43 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006599/2.513, allocations: 5.643 MB / 1.319 GB, free: 76.21 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/2.515, allocations: 1.25 MB / 1.32 GB, free: 74.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00321/2.518, allocations: 3.049 MB / 1.323 GB, free: 71.53 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/2.518, allocations: 51.06 kB / 1.323 GB, free: 71.47 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=128): time 3.387e-06/2.518, allocations: 0 / 1.323 GB, free: 71.47 MB / 0.6042 GB Notification: Performance of matching and sorting (n=128): time 0.003575/2.521, allocations: 2.93 MB / 1.326 GB, free: 68.25 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/2.522, allocations: 115.4 kB / 1.326 GB, free: 68.11 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.001108/2.523, allocations: 0.869 MB / 1.327 GB, free: 67.23 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.2e-05/2.523, allocations: 49.7 kB / 1.327 GB, free: 67.17 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/2.523, allocations: 0.489 MB / 1.327 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/2.523, allocations: 437.5 kB / 1.328 GB, free: 66.24 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/2.523, allocations: 20 kB / 1.328 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.508e-05/2.523, allocations: 349.9 kB / 1.328 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005669/2.524, allocations: 418.4 kB / 1.329 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006493/2.525, allocations: 0.551 MB / 1.329 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006572/2.525, allocations: 476 kB / 1.33 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/2.525, allocations: 4 kB / 1.33 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.00205/2.527, allocations: 1.395 MB / 1.331 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/2.527, allocations: 7.938 kB / 1.331 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/2.527, allocations: 7.938 kB / 1.331 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/2.528, allocations: 152.3 kB / 1.331 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007692/2.529, allocations: 211.7 kB / 1.331 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003516/2.532, allocations: 6.787 MB / 1.338 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/2.533, allocations: 110.9 kB / 1.338 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/2.533, allocations: 55.95 kB / 1.338 GB, free: 54.99 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 () * Number of clocked 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.0005988/2.534, allocations: 289.6 kB / 1.338 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/2.534, allocations: 130.4 kB / 1.338 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002651/2.537, allocations: 1.572 MB / 1.34 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/2.537, allocations: 16 kB / 1.34 GB, free: 52.97 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/2.537, allocations: 4 kB / 1.34 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/2.537, allocations: 11.91 kB / 1.34 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/2.54, allocations: 2.053 MB / 1.342 GB, free: 50.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/2.54, allocations: 4 kB / 1.342 GB, free: 50.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006545/2.541, allocations: 175.8 kB / 1.342 GB, free: 50.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004537/2.541, allocations: 168.3 kB / 1.342 GB, free: 50.47 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-05/2.541, allocations: 39.95 kB / 1.342 GB, free: 50.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003576/2.545, allocations: 6.779 MB / 1.349 GB, free: 43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/2.545, allocations: 0 / 1.349 GB, free: 43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003066/2.548, allocations: 2.19 MB / 1.351 GB, free: 40.76 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007091/2.548, allocations: 410.9 kB / 1.352 GB, free: 40.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/2.549, allocations: 20 kB / 1.352 GB, free: 40.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006839/2.549, allocations: 43.84 kB / 1.352 GB, free: 40.27 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/2.55, allocations: 92.41 kB / 1.352 GB, free: 40.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.917e-05/2.55, allocations: 47.95 kB / 1.352 GB, free: 40.14 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000821/2.55, allocations: 0.6665 MB / 1.352 GB, free: 39.46 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.3e-07/2.55, allocations: 0 / 1.352 GB, free: 39.46 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001805/2.552, allocations: 0.5227 MB / 1.353 GB, free: 38.94 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 () * Number of clocked 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.001945/2.554, allocations: 1.053 MB / 1.354 GB, free: 38.02 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002555/2.557, allocations: 1.748 MB / 1.356 GB, free: 36.21 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/2.557, allocations: 0 / 1.356 GB, free: 36.21 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001401/2.558, allocations: 1.238 MB / 1.357 GB, free: 34.89 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/2.56, allocations: 357.2 kB / 1.357 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004096/2.564, allocations: 2.987 MB / 1.36 GB, free: 31.51 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005904/2.565, allocations: 1.163 MB / 1.361 GB, free: 30.32 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0009908/2.566, allocations: 250.7 kB / 1.362 GB, free: 30.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/2.566, allocations: 111.4 kB / 1.362 GB, free: 29.98 MB / 0.6042 GB Notification: Performance of SimCode: time 8.82e-07/2.566, allocations: 0 / 1.362 GB, free: 29.98 MB / 0.6042 GB Notification: Performance of Templates: time 0.03826/2.604, allocations: 25.7 MB / 1.387 GB, free: 4.418 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