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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008755/0.0008755, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009277/0.0009277, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8845/0.8845, allocations: 177.1 MB / 203.8 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6265/0.6265, allocations: 118.6 MB / 378.9 MB, free: 1.355 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 430.8 MB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113e-05/1.222e-05, allocations: 6.25 kB / 430.8 MB, free: 13.36 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.2536/0.2536, allocations: 135.9 MB / 0.5534 GB, free: 3.441 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004964/0.2586, allocations: 3.792 MB / 0.5571 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004524/0.259, allocations: 99.06 kB / 0.5572 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0007898/0.2598, allocations: 0.5587 MB / 0.5578 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001492/0.2613, allocations: 1.323 MB / 0.5591 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008423/0.2621, allocations: 0.6584 MB / 0.5597 GB, free: 13 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001852/0.264, allocations: 2.909 MB / 0.5626 GB, free: 10.08 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002931/0.2643, allocations: 254.2 kB / 0.5628 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001521/0.2658, allocations: 1.62 MB / 0.5644 GB, free: 8.195 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008561/0.2667, allocations: 1.048 MB / 0.5654 GB, free: 7.145 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.2668, allocations: 108 kB / 0.5655 GB, free: 7.039 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004094/0.2672, allocations: 351.4 kB / 0.5658 GB, free: 6.695 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.2674, allocations: 358.3 kB / 0.5662 GB, free: 6.344 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0003891/0.2678, allocations: 0.5571 MB / 0.5667 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001129/0.2689, allocations: 1.572 MB / 0.5683 GB, free: 4.207 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2689, allocations: 0 / 0.5683 GB, free: 4.207 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.123e-06/0.2689, allocations: 4 kB / 0.5683 GB, free: 4.203 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.909e-06/0.2689, allocations: 0 / 0.5683 GB, free: 4.203 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.001928/0.2708, allocations: 2.043 MB / 0.5703 GB, free: 2.125 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/0.2709, allocations: 12.03 kB / 0.5703 GB, free: 2.113 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003287/0.2712, allocations: 270.1 kB / 0.5705 GB, free: 1.852 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.2725, allocations: 1.089 MB / 0.5716 GB, free: 0.7148 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.204e-05/0.2725, allocations: 78.47 kB / 0.5717 GB, free: 0.6367 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.43e-05/0.2726, allocations: 116.3 kB / 0.5718 GB, free: 0.5234 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000695/0.2733, allocations: 0.854 MB / 0.5726 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.2733, allocations: 11.92 kB / 0.5726 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.2734, allocations: 40 kB / 0.5727 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.2734, allocations: 28 kB / 0.5727 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004465/0.2738, allocations: 412.2 kB / 0.5731 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.2768, allocations: 2.937 MB / 0.576 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.2773, allocations: 0.498 MB / 0.5764 GB, free: 11.56 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.2775, allocations: 206.6 kB / 0.5766 GB, free: 11.35 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001313/0.2788, allocations: 1.16 MB / 0.5778 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.2789, allocations: 51.09 kB / 0.5778 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=108): time 2.715e-06/0.2789, allocations: 0 / 0.5778 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108): time 0.001153/0.28, allocations: 0.8132 MB / 0.5786 GB, free: 9.289 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.2801, allocations: 115.5 kB / 0.5787 GB, free: 9.152 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005887/0.2806, allocations: 0.9698 MB / 0.5797 GB, free: 8.164 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.2807, allocations: 41.7 kB / 0.5797 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.2809, allocations: 473.7 kB / 0.5802 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.2811, allocations: 392.5 kB / 0.5805 GB, free: 7.262 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.2812, allocations: 194.8 kB / 0.5807 GB, free: 7.062 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.887e-05/0.2813, allocations: 345.9 kB / 0.5811 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.2815, allocations: 114.5 kB / 0.5812 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.2817, allocations: 474.1 kB / 0.5816 GB, free: 6.035 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006568/0.2824, allocations: 476.7 kB / 0.5821 GB, free: 5.535 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2824, allocations: 0 / 0.5821 GB, free: 5.535 MB / 0.5261 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.0006861/0.2831, allocations: 0.6428 MB / 0.5827 GB, free: 4.875 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2831, allocations: 13.81 kB / 0.5827 GB, free: 4.863 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2831, allocations: 4 kB / 0.5827 GB, free: 4.859 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002647/0.2834, allocations: 136.3 kB / 0.5828 GB, free: 4.711 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/0.2837, allocations: 195.7 kB / 0.583 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.2862, allocations: 5.971 MB / 0.5889 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.2865, allocations: 102.5 kB / 0.589 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.406e-05/0.2866, allocations: 31.98 kB / 0.589 GB, free: 13.99 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002011/0.2868, allocations: 176.3 kB / 0.5892 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.2869, allocations: 127.9 kB / 0.5893 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.2881, allocations: 1.326 MB / 0.5906 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.2881, allocations: 12 kB / 0.5906 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.2881, allocations: 0 / 0.5906 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2881, allocations: 8.047 kB / 0.5906 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.2893, allocations: 1.354 MB / 0.5919 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.2893, allocations: 0 / 0.5919 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.2896, allocations: 119.8 kB / 0.592 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002285/0.2898, allocations: 144.5 kB / 0.5922 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.2898, allocations: 19.98 kB / 0.5922 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002384/0.2922, allocations: 5.991 MB / 0.598 GB, free: 4.129 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.2922, allocations: 11.88 kB / 0.5981 GB, free: 4.117 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007687/0.293, allocations: 0.9444 MB / 0.599 GB, free: 3.109 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.2932, allocations: 182.8 kB / 0.5991 GB, free: 2.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.88e-05/0.2933, allocations: 31.88 kB / 0.5992 GB, free: 2.898 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002676/0.2935, allocations: 20 kB / 0.5992 GB, free: 2.879 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.659e-05/0.2936, allocations: 67.75 kB / 0.5993 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.083e-05/0.2936, allocations: 31.97 kB / 0.5993 GB, free: 2.781 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003647/0.294, allocations: 0.5431 MB / 0.5998 GB, free: 2.238 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6e-08/0.294, allocations: 0 / 0.5998 GB, free: 2.238 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006369/0.2946, allocations: 419.2 kB / 0.6002 GB, free: 1.828 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.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 (70): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009596/0.2956, allocations: 0.4902 MB / 0.6007 GB, free: 1.57 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0007835/0.2964, allocations: 1.031 MB / 0.6017 GB, free: 488 kB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.2964, allocations: 16 kB / 0.6017 GB, free: 472 kB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004632/0.2969, allocations: 0.8112 MB / 0.6025 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.2984, allocations: 0.5702 MB / 0.6031 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.301, allocations: 2.459 MB / 0.6055 GB, free: 12.48 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.3012, allocations: 261.1 kB / 0.6057 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004851/0.3017, allocations: 269.8 kB / 0.606 GB, free: 11.94 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006179/0.3023, allocations: 411.1 kB / 0.6064 GB, free: 11.53 MB / 0.5573 GB Notification: Performance of SimCode: time 5.11e-07/0.3023, allocations: 4 kB / 0.6064 GB, free: 11.53 MB / 0.5573 GB Notification: Performance of Templates: time 0.0257/0.328, allocations: 23.73 MB / 0.6296 GB, free: 4.234 MB / 0.573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8092790986411273]