Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.2 MB / 218.5 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000821/0.000821, allocations: 90.64 kB / 266.6 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7073/0.7073, allocations: 90.35 MB / 405 MB, free: 8.621 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.346e-05/2.368e-05, allocations: 0 / 479.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3203, allocations: 66.26 MB / 0.5326 GB, free: 28.61 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9097/1.23, allocations: 441.3 MB / 0.9636 GB, free: 202.5 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/1.23, allocations: 87.95 kB / 0.9637 GB, free: 202.4 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.7692/2, allocations: 256 MB / 1.214 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.193e-06/2, allocations: 0 / 1.214 GB, free: 122.1 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001091/2, allocations: 37.08 kB / 1.214 GB, free: 122.1 MB / 0.5886 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.003908/2.004, allocations: 1.665 MB / 1.215 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/2.004, allocations: 9.875 kB / 1.215 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006195/2.004, allocations: 185.2 kB / 1.216 GB, free: 121.3 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/2.006, allocations: 0.7407 MB / 1.216 GB, free: 121 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.303e-05/2.006, allocations: 82.88 kB / 1.216 GB, free: 121 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001992/2.006, allocations: 109.7 kB / 1.216 GB, free: 121 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/2.008, allocations: 1.147 MB / 1.218 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/2.008, allocations: 0 / 1.218 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.754e-05/2.008, allocations: 40.94 kB / 1.218 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/2.008, allocations: 42.25 kB / 1.218 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/2.009, allocations: 1.088 MB / 1.219 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0058/2.015, allocations: 5.649 MB / 1.224 GB, free: 117.6 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/2.017, allocations: 1.239 MB / 1.225 GB, free: 117.5 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006711/2.018, allocations: 0.5396 MB / 1.226 GB, free: 117.5 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003012/2.021, allocations: 3.095 MB / 1.229 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/2.021, allocations: 52.41 kB / 1.229 GB, free: 115.2 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 3.146e-06/2.021, allocations: 0 / 1.229 GB, free: 115.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=128): time 0.0021/2.023, allocations: 1.236 MB / 1.23 GB, free: 115.1 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/2.023, allocations: 123.3 kB / 1.23 GB, free: 114.9 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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 0.4.0-OM_adaptions/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 0.4.0-OM_adaptions/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 0.4.0-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:17:3-18:61: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 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:28:3-29: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 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:26:3-27: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 0.4.0-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:24:3-25: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.001139/2.024, allocations: 0.8527 MB / 1.231 GB, free: 114.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/2.024, allocations: 46.7 kB / 1.231 GB, free: 114.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/2.024, allocations: 0.4946 MB / 1.232 GB, free: 114.6 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/2.025, allocations: 437.1 kB / 1.232 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-05/2.025, allocations: 20 kB / 1.232 GB, free: 114.3 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.448e-05/2.025, allocations: 362.2 kB / 1.232 GB, free: 114 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005968/2.025, allocations: 400.5 kB / 1.233 GB, free: 114 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006523/2.026, allocations: 0.541 MB / 1.233 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006854/2.027, allocations: 474.2 kB / 1.234 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/2.027, allocations: 0 / 1.234 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002119/2.029, allocations: 1.365 MB / 1.235 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/2.029, allocations: 7.906 kB / 1.235 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/2.029, allocations: 3.938 kB / 1.235 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004737/2.029, allocations: 160.4 kB / 1.235 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007488/2.03, allocations: 209.4 kB / 1.236 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003386/2.034, allocations: 6.726 MB / 1.242 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000951/2.035, allocations: 112.1 kB / 1.242 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/2.035, allocations: 51.77 kB / 1.242 GB, free: 107.3 MB / 0.5886 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.0002047/2.035, allocations: 163.7 kB / 1.242 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002706/2.035, allocations: 131.8 kB / 1.243 GB, free: 107.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002896/2.038, allocations: 1.564 MB / 1.244 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/2.038, allocations: 19.03 kB / 1.244 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/2.038, allocations: 7.578 kB / 1.244 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/2.038, allocations: 7.406 kB / 1.244 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/2.041, allocations: 2.036 MB / 1.246 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/2.041, allocations: 3.938 kB / 1.246 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006219/2.042, allocations: 174.6 kB / 1.246 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000439/2.042, allocations: 167.8 kB / 1.246 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.353e-05/2.042, allocations: 33.12 kB / 1.246 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003387/2.046, allocations: 6.74 MB / 1.253 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/2.046, allocations: 0 / 1.253 GB, free: 100.2 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003018/2.049, allocations: 2.161 MB / 1.255 GB, free: 99.59 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006918/2.049, allocations: 396.6 kB / 1.256 GB, free: 99.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002618/2.05, allocations: 23.38 kB / 1.256 GB, free: 99.31 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008468/2.05, allocations: 49.84 kB / 1.256 GB, free: 99.28 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/2.051, allocations: 98.92 kB / 1.256 GB, free: 99.27 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.951e-05/2.051, allocations: 44 kB / 1.256 GB, free: 99.26 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0009769/2.052, allocations: 0.6575 MB / 1.256 GB, free: 98.97 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.81e-07/2.052, allocations: 3.531 kB / 1.256 GB, free: 98.97 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001841/2.054, allocations: 0.5228 MB / 1.257 GB, free: 98.83 MB / 0.5886 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.001716/2.055, allocations: 1.005 MB / 1.258 GB, free: 98.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002277/2.058, allocations: 1.726 MB / 1.26 GB, free: 97.48 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/2.058, allocations: 0 / 1.26 GB, free: 97.48 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001314/2.059, allocations: 1.221 MB / 1.261 GB, free: 96.65 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/2.061, allocations: 368.9 kB / 1.261 GB, free: 96.55 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003143/2.064, allocations: 1.962 MB / 1.263 GB, free: 95.77 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005852/2.065, allocations: 1.163 MB / 1.264 GB, free: 95.05 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.000895/2.065, allocations: 248.2 kB / 1.264 GB, free: 94.98 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002713/2.066, allocations: 110.2 kB / 1.264 GB, free: 94.97 MB / 0.5886 GB Notification: Performance of SimCode: time 5.11e-07/2.066, allocations: 3.062 kB / 1.265 GB, free: 94.97 MB / 0.5886 GB Notification: Performance of Templates: time 0.03622/2.102, allocations: 26.47 MB / 1.29 GB, free: 90.63 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches