Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_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-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/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_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_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.001395/0.001395, allocations: 171 kB / 16.11 MB, free: 5.582 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.77/1.77, allocations: 205.4 MB / 222.3 MB, free: 13.66 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.0009375/0.0009374, allocations: 98.28 kB / 270.6 MB, free: 13.17 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.9072/0.9072, allocations: 89.59 MB / 408.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004331/0.0004334, allocations: 12 kB / 485.2 MB, free: 3.008 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1624, allocations: 66.01 MB / 0.5383 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.161/1.324, allocations: 441.3 MB / 0.9693 GB, free: 6.715 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003977/1.324, allocations: 97.94 kB / 0.9693 GB, free: 6.664 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.9439/2.268, allocations: 254.6 MB / 1.218 GB, free: 3.344 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.196e-06/2.268, allocations: 0 / 1.218 GB, free: 3.344 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001788/2.268, allocations: 43.92 kB / 1.218 GB, free: 3.301 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.005921/2.274, allocations: 1.788 MB / 1.22 GB, free: 1.453 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/2.274, allocations: 12.03 kB / 1.22 GB, free: 1.441 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/2.276, allocations: 190.9 kB / 1.22 GB, free: 1.254 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002085/2.278, allocations: 0.7895 MB / 1.221 GB, free: 428 kB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/2.278, allocations: 78.44 kB / 1.221 GB, free: 348 kB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003608/2.278, allocations: 108.3 kB / 1.221 GB, free: 240 kB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.441/2.719, allocations: 1.171 MB / 1.222 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.918e-05/2.719, allocations: 3.609 kB / 1.222 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/2.719, allocations: 41.44 kB / 1.222 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-05/2.72, allocations: 30.06 kB / 1.222 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002318/2.722, allocations: 1.118 MB / 1.223 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00901/2.731, allocations: 5.594 MB / 1.229 GB, free: 98.71 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/2.733, allocations: 1.248 MB / 1.23 GB, free: 98.62 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008345/2.734, allocations: 0.5536 MB / 1.23 GB, free: 98.6 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004339/2.739, allocations: 3.025 MB / 1.233 GB, free: 96.39 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.895e-05/2.739, allocations: 44 kB / 1.233 GB, free: 96.36 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 3.597e-06/2.739, allocations: 2.953 kB / 1.233 GB, free: 96.36 MB / 0.5886 GB Notification: Performance of matching and sorting (n=128): time 0.004206/2.743, allocations: 2.143 MB / 1.236 GB, free: 95.73 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.613e-05/2.743, allocations: 124.7 kB / 1.236 GB, free: 95.61 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/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-main/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-main/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-main/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-main/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-main/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-main/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.001821/2.745, allocations: 0.9796 MB / 1.237 GB, free: 95.45 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.447e-05/2.745, allocations: 46.61 kB / 1.237 GB, free: 95.42 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.000385/2.745, allocations: 0.4909 MB / 1.237 GB, free: 95.26 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004246/2.746, allocations: 439.7 kB / 1.238 GB, free: 95.04 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/2.746, allocations: 22.44 kB / 1.238 GB, free: 95.04 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001665/2.746, allocations: 351.4 kB / 1.238 GB, free: 94.73 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007342/2.747, allocations: 420.6 kB / 1.238 GB, free: 94.73 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000788/2.748, allocations: 0.5472 MB / 1.239 GB, free: 94.61 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/2.749, allocations: 1.028 MB / 1.24 GB, free: 94.49 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/2.749, allocations: 3.031 kB / 1.24 GB, free: 94.49 MB / 0.5886 GB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002564/2.752, allocations: 1.382 MB / 1.241 GB, free: 94.33 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/2.752, allocations: 3.688 kB / 1.241 GB, free: 94.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/2.752, allocations: 5.766 kB / 1.241 GB, free: 94.33 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005971/2.752, allocations: 163 kB / 1.241 GB, free: 94.29 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007864/2.753, allocations: 208.9 kB / 1.242 GB, free: 94.29 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0045/2.758, allocations: 6.739 MB / 1.248 GB, free: 88.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/2.759, allocations: 116.8 kB / 1.248 GB, free: 87.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002468/2.759, allocations: 48.28 kB / 1.248 GB, free: 87.98 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.001011/2.76, allocations: 300.1 kB / 1.249 GB, free: 87.87 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004925/2.761, allocations: 129.6 kB / 1.249 GB, free: 87.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003761/2.765, allocations: 1.554 MB / 1.25 GB, free: 87.66 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.455e-05/2.765, allocations: 17.88 kB / 1.25 GB, free: 87.66 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-05/2.765, allocations: 6.312 kB / 1.25 GB, free: 87.66 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/2.765, allocations: 7.172 kB / 1.25 GB, free: 87.66 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004421/2.769, allocations: 2.054 MB / 1.252 GB, free: 87.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/2.769, allocations: 3.812 kB / 1.252 GB, free: 87.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006721/2.77, allocations: 175.4 kB / 1.252 GB, free: 87.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004851/2.77, allocations: 165.3 kB / 1.253 GB, free: 87.25 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/2.771, allocations: 47.69 kB / 1.253 GB, free: 87.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005429/2.776, allocations: 6.743 MB / 1.259 GB, free: 80.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/2.776, allocations: 2.25 kB / 1.259 GB, free: 80.98 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006841/2.783, allocations: 2.155 MB / 1.261 GB, free: 80.54 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/2.784, allocations: 387.5 kB / 1.262 GB, free: 80.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004407/2.785, allocations: 19.56 kB / 1.262 GB, free: 80.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/2.786, allocations: 50.33 kB / 1.262 GB, free: 80.37 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000326/2.786, allocations: 101 kB / 1.262 GB, free: 80.37 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/2.787, allocations: 43.89 kB / 1.262 GB, free: 80.37 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001699/2.788, allocations: 0.6662 MB / 1.263 GB, free: 80.26 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.31e-07/2.788, allocations: 0 / 1.263 GB, free: 80.26 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003091/2.791, allocations: 0.5273 MB / 1.263 GB, free: 80.24 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.00287/2.794, allocations: 1.044 MB / 1.264 GB, free: 80.04 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00369/2.798, allocations: 1.752 MB / 1.266 GB, free: 79.41 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/2.798, allocations: 0 / 1.266 GB, free: 79.41 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002118/2.8, allocations: 1.241 MB / 1.267 GB, free: 78.79 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/2.803, allocations: 373.2 kB / 1.267 GB, free: 78.77 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006147/2.809, allocations: 2.999 MB / 1.27 GB, free: 77.52 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/2.811, allocations: 1.144 MB / 1.271 GB, free: 76.81 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001436/2.812, allocations: 241.2 kB / 1.272 GB, free: 76.79 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003903/2.813, allocations: 115.9 kB / 1.272 GB, free: 76.78 MB / 0.5886 GB Notification: Performance of SimCode: time 1.643e-06/2.813, allocations: 1.375 kB / 1.272 GB, free: 76.78 MB / 0.5886 GB Notification: Performance of Templates: time 0.05905/2.872, allocations: 26.01 MB / 1.297 GB, free: 75.63 MB / 0.5886 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches