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.0009583/0.0009583, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.3 MB / 213.4 MB, free: 13.77 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.001046/0.001045, allocations: 89.83 kB / 261.4 MB, free: 13.46 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.7423/0.7423, allocations: 90.36 MB / 399.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.402e-05/1.404e-05, allocations: 0 / 472.2 MB, free: 3.484 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3364, allocations: 66.26 MB / 0.5258 GB, free: 28.97 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.978/1.314, allocations: 440.7 MB / 0.9562 GB, free: 214.8 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/1.315, allocations: 87.95 kB / 0.9563 GB, free: 214.7 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.7799/2.095, allocations: 254.6 MB / 1.205 GB, free: 117.3 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.202e-06/2.095, allocations: 0 / 1.205 GB, free: 117.3 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001503/2.095, allocations: 39.56 kB / 1.205 GB, free: 117.3 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.004848/2.1, allocations: 1.658 MB / 1.207 GB, free: 116.6 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/2.1, allocations: 13.27 kB / 1.207 GB, free: 116.6 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008304/2.1, allocations: 187.4 kB / 1.207 GB, free: 116.5 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/2.102, allocations: 0.7405 MB / 1.207 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.038e-05/2.102, allocations: 33.69 kB / 1.208 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/2.103, allocations: 68.59 kB / 1.208 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002011/2.105, allocations: 1.039 MB / 1.209 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/2.107, allocations: 1.015 MB / 1.21 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.576e-05/2.107, allocations: 0 / 1.21 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.249e-05/2.107, allocations: 11.05 kB / 1.21 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.73e-05/2.107, allocations: 26.16 kB / 1.21 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006059/2.113, allocations: 5.451 MB / 1.215 GB, free: 113 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/2.114, allocations: 1.177 MB / 1.216 GB, free: 112.9 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005956/2.115, allocations: 0.5119 MB / 1.217 GB, free: 112.9 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003013/2.118, allocations: 3.027 MB / 1.22 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/2.118, allocations: 49.75 kB / 1.22 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 3.336e-06/2.118, allocations: 0 / 1.22 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=128): time 0.003222/2.121, allocations: 1.388 MB / 1.221 GB, free: 110.4 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/2.121, allocations: 120.2 kB / 1.221 GB, free: 110.3 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.0009625/2.122, allocations: 0.7306 MB / 1.222 GB, free: 110.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/2.122, allocations: 28.77 kB / 1.222 GB, free: 110.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002614/2.123, allocations: 0.4971 MB / 1.222 GB, free: 109.9 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002541/2.123, allocations: 422.3 kB / 1.223 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/2.123, allocations: 0 / 1.223 GB, free: 109.6 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.523e-05/2.123, allocations: 347.5 kB / 1.223 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005422/2.124, allocations: 387.5 kB / 1.223 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000612/2.124, allocations: 0.5128 MB / 1.224 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/2.126, allocations: 0.6638 MB / 1.225 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/2.126, allocations: 7.234 kB / 1.225 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003805/2.13, allocations: 1.485 MB / 1.226 GB, free: 109 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/2.13, allocations: 5.969 kB / 1.226 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/2.13, allocations: 3.719 kB / 1.226 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005623/2.131, allocations: 155.8 kB / 1.226 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007472/2.132, allocations: 214.5 kB / 1.226 GB, free: 109 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/2.135, allocations: 6.483 MB / 1.233 GB, free: 103 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009674/2.136, allocations: 82.94 kB / 1.233 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/2.136, allocations: 47.36 kB / 1.233 GB, free: 102.9 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.0002014/2.136, allocations: 137.9 kB / 1.233 GB, free: 102.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003212/2.137, allocations: 120.6 kB / 1.233 GB, free: 102.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004108/2.141, allocations: 1.676 MB / 1.235 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/2.141, allocations: 14.69 kB / 1.235 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/2.141, allocations: 3.875 kB / 1.235 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/2.141, allocations: 7.875 kB / 1.235 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003647/2.144, allocations: 2.002 MB / 1.237 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/2.144, allocations: 9.531 kB / 1.237 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006243/2.145, allocations: 177.4 kB / 1.237 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004347/2.146, allocations: 151.9 kB / 1.237 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.843e-05/2.146, allocations: 32.06 kB / 1.237 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003326/2.149, allocations: 6.489 MB / 1.243 GB, free: 96.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/2.149, allocations: 3.562 kB / 1.243 GB, free: 96.2 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/2.153, allocations: 2.293 MB / 1.246 GB, free: 95.7 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00073/2.154, allocations: 388.7 kB / 1.246 GB, free: 95.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002311/2.154, allocations: 0 / 1.246 GB, free: 95.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007779/2.155, allocations: 33.7 kB / 1.246 GB, free: 95.52 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/2.155, allocations: 100.5 kB / 1.246 GB, free: 95.52 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.36e-05/2.155, allocations: 46.47 kB / 1.246 GB, free: 95.52 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0006945/2.156, allocations: 0.5531 MB / 1.247 GB, free: 95.41 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.6e-07/2.156, allocations: 0 / 1.247 GB, free: 95.41 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001849/2.158, allocations: 0.4981 MB / 1.247 GB, free: 95.34 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.001595/2.159, allocations: 0.9836 MB / 1.248 GB, free: 95.07 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002176/2.162, allocations: 1.633 MB / 1.25 GB, free: 94.48 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/2.162, allocations: 0 / 1.25 GB, free: 94.48 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001202/2.163, allocations: 1.176 MB / 1.251 GB, free: 93.89 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/2.165, allocations: 320 kB / 1.251 GB, free: 93.88 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/2.168, allocations: 1.901 MB / 1.253 GB, free: 93.37 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006341/2.168, allocations: 1.163 MB / 1.254 GB, free: 92.66 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0009239/2.169, allocations: 233 kB / 1.254 GB, free: 92.61 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002764/2.17, allocations: 107.3 kB / 1.255 GB, free: 92.61 MB / 0.5886 GB Notification: Performance of SimCode: time 6.81e-07/2.17, allocations: 3.906 kB / 1.255 GB, free: 92.61 MB / 0.5886 GB Notification: Performance of Templates: time 0.03206/2.202, allocations: 21.74 MB / 1.276 GB, free: 90.96 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