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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002276/0.002279, allocations: 182.3 kB / 7.458 MB, free: 2.516 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.006/1.006, allocations: 205.2 MB / 213.1 MB, free: 13.91 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.0007664/0.0007664, allocations: 93.95 kB / 261.1 MB, free: 13.54 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.4942/0.4942, allocations: 90.34 MB / 399.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.13e-06/5.14e-06, allocations: 0 / 471.7 MB, free: 3.82 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2268, allocations: 66.25 MB / 0.5253 GB, free: 28.88 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6877/0.9146, allocations: 440.6 MB / 0.9556 GB, free: 161 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.9149, allocations: 87.22 kB / 0.9557 GB, free: 161 MB / 0.5886 GB Notification: Performance of FrontEnd: time 0.6319/1.547, allocations: 256.1 MB / 1.206 GB, free: 128 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.973e-05/1.547, allocations: 43.92 kB / 1.206 GB, free: 128 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.003278/1.55, allocations: 1.673 MB / 1.207 GB, free: 127.3 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/1.55, allocations: 5.688 kB / 1.207 GB, free: 127.3 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/1.55, allocations: 165.8 kB / 1.208 GB, free: 127.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/1.551, allocations: 0.7551 MB / 1.208 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/1.552, allocations: 33.81 kB / 1.208 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/1.552, allocations: 69.28 kB / 1.208 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001368/1.553, allocations: 1.042 MB / 1.209 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/1.554, allocations: 1.02 MB / 1.21 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/1.554, allocations: 0 / 1.21 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.389e-05/1.554, allocations: 3.906 kB / 1.21 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/1.555, allocations: 31.81 kB / 1.21 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/1.559, allocations: 5.45 MB / 1.216 GB, free: 123.6 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/1.56, allocations: 1.011 MB / 1.217 GB, free: 123.5 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005693/1.561, allocations: 0.5189 MB / 1.217 GB, free: 123.5 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002848/1.564, allocations: 3.235 MB / 1.22 GB, free: 121.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/1.564, allocations: 52.25 kB / 1.22 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 2.615e-06/1.564, allocations: 0 / 1.22 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=128): time 0.003208/1.567, allocations: 1.448 MB / 1.222 GB, free: 121 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/1.567, allocations: 122.4 kB / 1.222 GB, free: 120.8 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.0007954/1.568, allocations: 0.7259 MB / 1.223 GB, free: 120.7 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.51e-05/1.568, allocations: 25.7 kB / 1.223 GB, free: 120.7 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/1.568, allocations: 367.4 kB / 1.223 GB, free: 120.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/1.568, allocations: 429.6 kB / 1.223 GB, free: 120.2 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/1.568, allocations: 0 / 1.223 GB, free: 120.2 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.347e-05/1.569, allocations: 354.7 kB / 1.224 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005137/1.569, allocations: 385.3 kB / 1.224 GB, free: 119.8 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005668/1.57, allocations: 0.5129 MB / 1.225 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/1.572, allocations: 0.7296 MB / 1.225 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/1.572, allocations: 3.062 kB / 1.225 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003174/1.575, allocations: 1.558 MB / 1.227 GB, free: 119.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/1.575, allocations: 6.906 kB / 1.227 GB, free: 119.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/1.575, allocations: 3.125 kB / 1.227 GB, free: 119.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004503/1.575, allocations: 154.8 kB / 1.227 GB, free: 119.5 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007444/1.576, allocations: 211.3 kB / 1.227 GB, free: 119.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003166/1.579, allocations: 6.436 MB / 1.234 GB, free: 113.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000705/1.58, allocations: 79.03 kB / 1.234 GB, free: 113.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.472e-05/1.58, allocations: 49.33 kB / 1.234 GB, free: 113.5 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.0001647/1.58, allocations: 134 kB / 1.234 GB, free: 113.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001866/1.58, allocations: 120 kB / 1.234 GB, free: 113.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003978/1.584, allocations: 1.855 MB / 1.236 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/1.584, allocations: 16.53 kB / 1.236 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/1.584, allocations: 0 / 1.236 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/1.584, allocations: 15.3 kB / 1.236 GB, free: 113.1 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004989/1.589, allocations: 3.08 MB / 1.239 GB, free: 112.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/1.589, allocations: 0 / 1.239 GB, free: 112.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006313/1.59, allocations: 182.3 kB / 1.239 GB, free: 112.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/1.591, allocations: 164.6 kB / 1.239 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.868e-05/1.591, allocations: 34.53 kB / 1.239 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003276/1.594, allocations: 6.417 MB / 1.245 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/1.594, allocations: 2.719 kB / 1.245 GB, free: 106.5 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003968/1.598, allocations: 2.388 MB / 1.248 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005004/1.598, allocations: 403.3 kB / 1.248 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/1.599, allocations: 0 / 1.248 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006108/1.599, allocations: 26.88 kB / 1.248 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/1.599, allocations: 75.42 kB / 1.248 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.842e-05/1.599, allocations: 48.52 kB / 1.248 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.0005825/1.6, allocations: 0.5567 MB / 1.249 GB, free: 105.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001475/1.601, allocations: 0.5182 MB / 1.249 GB, free: 105.6 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 (116): * Single equations (assignments): 101 * 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.001587/1.603, allocations: 0.972 MB / 1.25 GB, free: 105.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002397/1.605, allocations: 1.636 MB / 1.252 GB, free: 104.3 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/1.605, allocations: 0 / 1.252 GB, free: 104.3 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001257/1.607, allocations: 1.167 MB / 1.253 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/1.608, allocations: 298.8 kB / 1.253 GB, free: 103.5 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/1.611, allocations: 1.916 MB / 1.255 GB, free: 102.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00086/1.612, allocations: 1.305 MB / 1.256 GB, free: 102 MB / 0.5886 GB Notification: Performance of SimCode: time 2.9e-07/1.612, allocations: 3.031 kB / 1.256 GB, free: 102 MB / 0.5886 GB Notification: Performance of Templates: time 0.03425/1.647, allocations: 24.81 MB / 1.281 GB, free: 97.14 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