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.01139/0.01139, allocations: 171 kB / 15.11 MB, free: 5.969 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.947/1.947, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.001447/0.001447, allocations: 82.88 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8756/0.8756, allocations: 90.6 MB / 408.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000448/0.0004478, allocations: 8 kB / 485.2 MB, free: 2.082 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5415/0.542, allocations: 66.28 MB / 0.5386 GB, free: 45.54 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9345/1.477, allocations: 441.4 MB / 0.9697 GB, free: 3.422 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/1.477, allocations: 94.27 kB / 0.9697 GB, free: 3.371 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.334/2.811, allocations: 256.9 MB / 1.221 GB, free: 103.3 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.894e-06/2.811, allocations: 0 / 1.221 GB, free: 103.3 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 9.973e-05/2.812, allocations: 42.44 kB / 1.221 GB, free: 103.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.00526/2.817, allocations: 1.808 MB / 1.222 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/2.817, allocations: 8.281 kB / 1.222 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007006/2.818, allocations: 185.1 kB / 1.223 GB, free: 102.6 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/2.819, allocations: 0.7516 MB / 1.223 GB, free: 102.3 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.653e-05/2.819, allocations: 83.28 kB / 1.223 GB, free: 102.3 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/2.819, allocations: 106.6 kB / 1.223 GB, free: 102.3 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/2.821, allocations: 1.163 MB / 1.225 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/2.821, allocations: 3.062 kB / 1.225 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.52e-05/2.821, allocations: 41.72 kB / 1.225 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/2.821, allocations: 36.19 kB / 1.225 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001629/2.823, allocations: 1.119 MB / 1.226 GB, free: 102.2 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006841/2.83, allocations: 5.649 MB / 1.231 GB, free: 98.97 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/2.832, allocations: 1.247 MB / 1.233 GB, free: 98.89 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003623/2.836, allocations: 3.051 MB / 1.236 GB, free: 96.69 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/2.836, allocations: 47.66 kB / 1.236 GB, free: 96.65 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 4.359e-06/2.836, allocations: 1.734 kB / 1.236 GB, free: 96.65 MB / 0.5886 GB Notification: Performance of matching and sorting (n=128): time 0.004067/2.84, allocations: 2.929 MB / 1.238 GB, free: 95.08 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/2.84, allocations: 119.4 kB / 1.239 GB, free: 94.96 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.001286/2.841, allocations: 0.8651 MB / 1.239 GB, free: 94.81 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.455e-05/2.841, allocations: 46.64 kB / 1.239 GB, free: 94.78 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003622/2.842, allocations: 0.4897 MB / 1.24 GB, free: 94.62 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003338/2.842, allocations: 441 kB / 1.24 GB, free: 94.38 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.913e-05/2.842, allocations: 25.03 kB / 1.24 GB, free: 94.38 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001159/2.842, allocations: 353.9 kB / 1.241 GB, free: 94.07 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006602/2.843, allocations: 414.5 kB / 1.241 GB, free: 94.07 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006984/2.843, allocations: 0.5496 MB / 1.242 GB, free: 93.96 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007368/2.844, allocations: 482.3 kB / 1.242 GB, free: 93.94 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/2.844, allocations: 3.469 kB / 1.242 GB, free: 93.94 MB / 0.5886 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002466/2.847, allocations: 1.379 MB / 1.243 GB, free: 93.79 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/2.847, allocations: 10.14 kB / 1.243 GB, free: 93.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/2.847, allocations: 3.812 kB / 1.243 GB, free: 93.79 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005967/2.847, allocations: 163.2 kB / 1.244 GB, free: 93.74 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008397/2.848, allocations: 214.5 kB / 1.244 GB, free: 93.74 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004538/2.853, allocations: 6.781 MB / 1.25 GB, free: 87.46 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/2.854, allocations: 111.5 kB / 1.251 GB, free: 87.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002281/2.854, allocations: 49.27 kB / 1.251 GB, free: 87.41 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.0009169/2.855, allocations: 296.6 kB / 1.251 GB, free: 87.29 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004987/2.856, allocations: 131.1 kB / 1.251 GB, free: 87.22 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003756/2.859, allocations: 1.56 MB / 1.253 GB, free: 87.08 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.709e-05/2.86, allocations: 20.69 kB / 1.253 GB, free: 87.08 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.159e-05/2.86, allocations: 6.703 kB / 1.253 GB, free: 87.07 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/2.86, allocations: 7.844 kB / 1.253 GB, free: 87.07 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004674/2.864, allocations: 2.05 MB / 1.255 GB, free: 86.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/2.864, allocations: 1.625 kB / 1.255 GB, free: 86.68 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007641/2.865, allocations: 182 kB / 1.255 GB, free: 86.68 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005599/2.866, allocations: 163.1 kB / 1.255 GB, free: 86.64 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/2.866, allocations: 40.8 kB / 1.255 GB, free: 86.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00475/2.871, allocations: 6.789 MB / 1.262 GB, free: 80.37 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/2.871, allocations: 1.25 kB / 1.262 GB, free: 80.37 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005092/2.876, allocations: 2.189 MB / 1.264 GB, free: 79.87 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/2.877, allocations: 400.1 kB / 1.264 GB, free: 79.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004293/2.877, allocations: 28.56 kB / 1.264 GB, free: 79.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/2.879, allocations: 41.03 kB / 1.264 GB, free: 79.68 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002848/2.879, allocations: 97.2 kB / 1.264 GB, free: 79.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/2.879, allocations: 49.41 kB / 1.264 GB, free: 79.68 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001648/2.881, allocations: 0.6692 MB / 1.265 GB, free: 79.57 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.4e-07/2.881, allocations: 0 / 1.265 GB, free: 79.57 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003436/2.884, allocations: 0.5273 MB / 1.265 GB, free: 79.52 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.002755/2.887, allocations: 1.051 MB / 1.266 GB, free: 79.27 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003604/2.891, allocations: 1.748 MB / 1.268 GB, free: 78.64 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/2.891, allocations: 1.25 kB / 1.268 GB, free: 78.64 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00193/2.893, allocations: 1.229 MB / 1.269 GB, free: 78.02 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/2.895, allocations: 365.2 kB / 1.27 GB, free: 78.01 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006668/2.902, allocations: 2.993 MB / 1.273 GB, free: 76.74 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/2.903, allocations: 1.162 MB / 1.274 GB, free: 76.03 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001577/2.905, allocations: 250.7 kB / 1.274 GB, free: 76.01 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004771/2.905, allocations: 117.8 kB / 1.274 GB, free: 76 MB / 0.5886 GB Notification: Performance of SimCode: time 1.964e-06/2.905, allocations: 0 / 1.274 GB, free: 76 MB / 0.5886 GB Notification: Performance of Templates: time 0.06139/2.967, allocations: 25.69 MB / 1.299 GB, free: 74.76 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