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.3.1-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-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.0009642/0.000964, allocations: 174.3 kB / 16.12 MB, free: 5.699 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.299/1.299, allocations: 205.4 MB / 222.3 MB, free: 9.035 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.0007263/0.0007264, allocations: 88.98 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-OM_adaptions/package.mo): time 0.6586/0.6586, allocations: 89.62 MB / 408.5 MB, free: 4.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003593, allocations: 12.22 kB / 485.2 MB, free: 7.617 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2807, allocations: 65.99 MB / 0.5383 GB, free: 34.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.904/1.185, allocations: 441.3 MB / 0.9693 GB, free: 185.7 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/1.185, allocations: 95.94 kB / 0.9694 GB, free: 185.6 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.7229/1.908, allocations: 254.6 MB / 1.218 GB, free: 136 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.324e-06/1.908, allocations: 3.625 kB / 1.218 GB, free: 136 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.3e-05/1.908, allocations: 36.52 kB / 1.218 GB, free: 136 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.003169/1.911, allocations: 1.8 MB / 1.22 GB, free: 135.1 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/1.911, allocations: 10.25 kB / 1.22 GB, free: 135.1 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003703/1.912, allocations: 182.4 kB / 1.22 GB, free: 135 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009977/1.913, allocations: 0.7867 MB / 1.221 GB, free: 134.7 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/1.913, allocations: 82.81 kB / 1.221 GB, free: 134.7 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/1.913, allocations: 108.4 kB / 1.221 GB, free: 134.6 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/1.914, allocations: 1.169 MB / 1.222 GB, free: 134.5 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.585e-05/1.914, allocations: 192 / 1.222 GB, free: 134.5 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.9e-05/1.915, allocations: 47.19 kB / 1.222 GB, free: 134.5 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/1.915, allocations: 31.16 kB / 1.222 GB, free: 134.5 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/1.916, allocations: 1.122 MB / 1.223 GB, free: 134.5 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005478/1.921, allocations: 5.59 MB / 1.229 GB, free: 131.3 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/1.923, allocations: 1.25 MB / 1.23 GB, free: 131.2 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006551/1.924, allocations: 0.5482 MB / 1.23 GB, free: 131.1 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003224/1.927, allocations: 3.023 MB / 1.233 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/1.927, allocations: 46.47 kB / 1.233 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 3.346e-06/1.927, allocations: 2.656 kB / 1.233 GB, free: 128.6 MB / 0.5886 GB Notification: Performance of matching and sorting (n=128): time 0.00307/1.93, allocations: 2.151 MB / 1.236 GB, free: 127.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/1.93, allocations: 118.9 kB / 1.236 GB, free: 127.3 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:25:3-26: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.3.1-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:23:3-24: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.3.1-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:21:3-22: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.3.1-OM_adaptions/Undirected/FlowControl/SpecificValveType.mo:15:3-16: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.3.1-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:26:3-27: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.3.1-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:24:3-25: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.3.1-OM_adaptions/Undirected/FlowControl/BasicControlValve.mo:22:3-23: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.001016/1.931, allocations: 0.9764 MB / 1.237 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/1.931, allocations: 48.83 kB / 1.237 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/1.932, allocations: 499.5 kB / 1.237 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000202/1.932, allocations: 442.4 kB / 1.238 GB, free: 126.2 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-05/1.932, allocations: 23.22 kB / 1.238 GB, free: 126.1 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.525e-05/1.932, allocations: 357.3 kB / 1.238 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/1.933, allocations: 409.4 kB / 1.238 GB, free: 125.6 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006118/1.933, allocations: 0.5555 MB / 1.239 GB, free: 125.4 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/1.934, allocations: 1.034 MB / 1.24 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/1.934, allocations: 0 / 1.24 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002025/1.936, allocations: 1.381 MB / 1.241 GB, free: 124.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/1.937, allocations: 6.031 kB / 1.241 GB, free: 124.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/1.937, allocations: 3.875 kB / 1.241 GB, free: 124.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000456/1.937, allocations: 161.3 kB / 1.241 GB, free: 124.1 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006922/1.938, allocations: 215.7 kB / 1.242 GB, free: 124.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/1.941, allocations: 6.736 MB / 1.248 GB, free: 117.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009209/1.942, allocations: 123 kB / 1.248 GB, free: 117.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/1.942, allocations: 45.8 kB / 1.248 GB, free: 117.4 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 () * 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.0005841/1.943, allocations: 298.7 kB / 1.249 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002909/1.943, allocations: 131.5 kB / 1.249 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/1.946, allocations: 1.55 MB / 1.25 GB, free: 116.4 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/1.946, allocations: 18.25 kB / 1.25 GB, free: 116.4 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/1.946, allocations: 3.75 kB / 1.25 GB, free: 116.4 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/1.946, allocations: 11.3 kB / 1.25 GB, free: 116.4 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/1.949, allocations: 2.054 MB / 1.252 GB, free: 115.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/1.949, allocations: 0 / 1.252 GB, free: 115.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005879/1.949, allocations: 179.3 kB / 1.253 GB, free: 115.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004052/1.95, allocations: 160.7 kB / 1.253 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.512e-05/1.95, allocations: 41.59 kB / 1.253 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00323/1.953, allocations: 6.746 MB / 1.259 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/1.953, allocations: 0 / 1.259 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002932/1.956, allocations: 2.158 MB / 1.261 GB, free: 107.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007013/1.957, allocations: 375.7 kB / 1.262 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/1.957, allocations: 33.62 kB / 1.262 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008181/1.958, allocations: 43.34 kB / 1.262 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/1.958, allocations: 104.7 kB / 1.262 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.07e-05/1.958, allocations: 46.14 kB / 1.262 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0009243/1.959, allocations: 0.6681 MB / 1.263 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/1.959, allocations: 0 / 1.263 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.00182/1.961, allocations: 0.5281 MB / 1.263 GB, free: 106.7 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 () * 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.001704/1.962, allocations: 1.042 MB / 1.264 GB, free: 106.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002295/1.965, allocations: 1.749 MB / 1.266 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/1.965, allocations: 0 / 1.266 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001364/1.966, allocations: 1.245 MB / 1.267 GB, free: 104.5 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/1.968, allocations: 368.6 kB / 1.267 GB, free: 104.4 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003838/1.972, allocations: 3 MB / 1.27 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006476/1.973, allocations: 1.138 MB / 1.271 GB, free: 102 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0009408/1.974, allocations: 236.5 kB / 1.272 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/1.974, allocations: 113.6 kB / 1.272 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of SimCode: time 4.31e-07/1.974, allocations: 0 / 1.272 GB, free: 101.9 MB / 0.5886 GB Notification: Performance of Templates: time 0.03577/2.01, allocations: 26.02 MB / 1.297 GB, free: 80.39 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