Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_dev_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_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001954/0.001954, allocations: 191.9 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6845/0.6845, allocations: 93.7 MB / 383.7 MB, free: 7.168 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 82.56 kB / 462.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1146, allocations: 68.26 MB / 0.5185 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.3973/0.5119, allocations: 171.1 MB / 0.6857 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01369/0.5257, allocations: 11.57 MB / 0.697 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001915/0.5276, allocations: 76.84 kB / 0.697 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002212/0.5299, allocations: 0.7909 MB / 0.6978 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004073/0.534, allocations: 1.557 MB / 0.6993 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003059/0.5371, allocations: 1.184 MB / 0.7005 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003191/0.5403, allocations: 3.196 MB / 0.7036 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005266/0.5408, allocations: 362.4 kB / 0.7039 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002316/0.5431, allocations: 1.295 MB / 0.7052 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001335/0.5445, allocations: 1.136 MB / 0.7063 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001774/0.5447, allocations: 76 kB / 0.7064 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003656/0.5483, allocations: 1.801 MB / 0.7082 GB, free: 9.23 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.5487, allocations: 306.5 kB / 0.7084 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007547/0.5494, allocations: 0.765 MB / 0.7092 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003209/0.5526, allocations: 2.303 MB / 0.7114 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.5527, allocations: 4 kB / 0.7114 GB, free: 5.848 MB / 0.5137 GB Notification: Performance of FrontEnd: time 9.62e-07/0.5527, allocations: 0 / 0.7114 GB, free: 5.848 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.893e-05/0.5527, allocations: 0 / 0.7114 GB, free: 5.848 MB / 0.5137 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.003633/0.5564, allocations: 2.104 MB / 0.7135 GB, free: 3.688 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.5564, allocations: 12.03 kB / 0.7135 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002795/0.5567, allocations: 190.6 kB / 0.7137 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001555/0.5582, allocations: 1.118 MB / 0.7148 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.364e-05/0.5583, allocations: 78.66 kB / 0.7149 GB, free: 2.238 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.5585, allocations: 115.8 kB / 0.715 GB, free: 2.125 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.5602, allocations: 1.179 MB / 0.7161 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.5603, allocations: 7.875 kB / 0.7161 GB, free: 0.8672 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.443e-05/0.5604, allocations: 44 kB / 0.7162 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.5604, allocations: 24 kB / 0.7162 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.562, allocations: 1.074 MB / 0.7172 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006009/0.568, allocations: 5.279 MB / 0.7224 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.5694, allocations: 0.7456 MB / 0.7231 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006374/0.57, allocations: 441.4 kB / 0.7235 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004305/0.5743, allocations: 3.911 MB / 0.7274 GB, free: 4.398 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.5744, allocations: 47.12 kB / 0.7274 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 3.046e-06/0.5744, allocations: 3.938 kB / 0.7274 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=108): time 0.00354/0.578, allocations: 1.831 MB / 0.7292 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.578, allocations: 119.3 kB / 0.7293 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.5797, allocations: 1.29 MB / 0.7306 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.325e-05/0.5798, allocations: 41.7 kB / 0.7306 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005354/0.5803, allocations: 0.6168 MB / 0.7312 GB, free: 288 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003507/0.5807, allocations: 378.7 kB / 0.7316 GB, free: 15.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003194/0.581, allocations: 194.8 kB / 0.7318 GB, free: 15.71 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.5812, allocations: 341.9 kB / 0.7321 GB, free: 15.37 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005697/0.5817, allocations: 298.5 kB / 0.7324 GB, free: 15.07 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006958/0.5824, allocations: 449.2 kB / 0.7328 GB, free: 14.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.5837, allocations: 0.7737 MB / 0.7336 GB, free: 13.79 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.5837, allocations: 0 / 0.7336 GB, free: 13.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002271/0.586, allocations: 1.161 MB / 0.7347 GB, free: 12.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.586, allocations: 8 kB / 0.7347 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.586, allocations: 0 / 0.7347 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000572/0.5866, allocations: 156.4 kB / 0.7349 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007911/0.5874, allocations: 207.7 kB / 0.735 GB, free: 12.22 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005393/0.5928, allocations: 6.743 MB / 0.7416 GB, free: 4.812 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.594, allocations: 102.8 kB / 0.7417 GB, free: 4.711 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.5941, allocations: 52.05 kB / 0.7418 GB, free: 4.66 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0007324/0.5949, allocations: 309.5 kB / 0.7421 GB, free: 4.348 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004295/0.5953, allocations: 177.8 kB / 0.7422 GB, free: 4.172 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002963/0.5983, allocations: 1.714 MB / 0.7439 GB, free: 2.402 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.5983, allocations: 11.94 kB / 0.7439 GB, free: 2.391 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.5983, allocations: 4 kB / 0.7439 GB, free: 2.387 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.5983, allocations: 3.984 kB / 0.7439 GB, free: 2.383 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003722/0.6021, allocations: 2.388 MB / 0.7463 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.6021, allocations: 4 kB / 0.7463 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005249/0.6026, allocations: 131.8 kB / 0.7464 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005011/0.6031, allocations: 172.2 kB / 0.7466 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.048e-05/0.6032, allocations: 27.98 kB / 0.7466 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004764/0.608, allocations: 6.739 MB / 0.7532 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.525e-06/0.608, allocations: 12.3 kB / 0.7532 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002721/0.6108, allocations: 1.576 MB / 0.7547 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005735/0.6114, allocations: 338.7 kB / 0.755 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/0.6116, allocations: 31.83 kB / 0.7551 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007321/0.6124, allocations: 31.84 kB / 0.7551 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.6125, allocations: 79.78 kB / 0.7552 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.168e-05/0.6126, allocations: 31.92 kB / 0.7552 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001445/0.6141, allocations: 0.9967 MB / 0.7562 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6141, allocations: 3.938 kB / 0.7562 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001604/0.6157, allocations: 463.4 kB / 0.7566 GB, free: 4.5 MB / 0.5606 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 (74): * Single equations (assignments): 69 * 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.001453/0.6172, allocations: 0.7352 MB / 0.7574 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002216/0.6194, allocations: 1.337 MB / 0.7587 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.237e-06/0.6194, allocations: 4 kB / 0.7587 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.6207, allocations: 0.9264 MB / 0.7596 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.6233, allocations: 478 kB / 0.76 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005962/0.6293, allocations: 3.348 MB / 0.7633 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008036/0.6301, allocations: 1.21 MB / 0.7645 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001071/0.6312, allocations: 303 kB / 0.7648 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003439/0.6316, allocations: 131.4 kB / 0.7649 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/0.6316, allocations: 0 / 0.7649 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of Templates: time 0.03904/0.6706, allocations: 24.01 MB / 0.7883 GB, free: 4.207 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches