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.001882/0.001882, allocations: 108.5 kB / 15.99 MB, free: 6.359 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.002155/0.002155, allocations: 193 kB / 16.91 MB, free: 6.195 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.392/1.392, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.738/0.738, allocations: 93.68 MB / 384.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002441, allocations: 80.14 kB / 463.5 MB, free: 6.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1349, allocations: 68.27 MB / 0.5194 GB, free: 2.129 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.4075/0.5425, allocations: 171.2 MB / 0.6866 GB, free: 4.176 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01554/0.5581, allocations: 11.47 MB / 0.6978 GB, free: 8.699 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002152/0.5603, allocations: 79.44 kB / 0.6978 GB, free: 8.621 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002673/0.563, allocations: 0.7893 MB / 0.6986 GB, free: 7.828 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004988/0.568, allocations: 1.555 MB / 0.7001 GB, free: 6.266 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00381/0.5719, allocations: 1.208 MB / 0.7013 GB, free: 5.055 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003766/0.5756, allocations: 2.554 MB / 0.7038 GB, free: 2.492 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007263/0.5764, allocations: 405 kB / 0.7042 GB, free: 2.133 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002947/0.5794, allocations: 1.377 MB / 0.7055 GB, free: 0.75 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001921/0.5813, allocations: 1.148 MB / 0.7066 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002361/0.5815, allocations: 108 kB / 0.7067 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004142/0.5857, allocations: 1.871 MB / 0.7086 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003591/0.5861, allocations: 334.6 kB / 0.7089 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009818/0.5871, allocations: 0.804 MB / 0.7097 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002837/0.5899, allocations: 1.803 MB / 0.7114 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.5899, allocations: 0 / 0.7114 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.134e-06/0.5899, allocations: 0 / 0.7114 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.277e-05/0.59, allocations: 0 / 0.7114 GB, free: 10.68 MB / 0.5606 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.003883/0.5939, allocations: 2.108 MB / 0.7135 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.5939, allocations: 8.031 kB / 0.7135 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/0.5942, allocations: 194.6 kB / 0.7137 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/0.596, allocations: 1.111 MB / 0.7148 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.552e-05/0.5961, allocations: 86.47 kB / 0.7149 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.5962, allocations: 111.9 kB / 0.715 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001948/0.5982, allocations: 1.171 MB / 0.7161 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.5982, allocations: 0 / 0.7161 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.516e-05/0.5983, allocations: 48 kB / 0.7162 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.847e-05/0.5983, allocations: 24 kB / 0.7162 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.6001, allocations: 1.074 MB / 0.7172 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007011/0.6071, allocations: 5.283 MB / 0.7224 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.6087, allocations: 0.7526 MB / 0.7231 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000679/0.6094, allocations: 444.7 kB / 0.7235 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004839/0.6142, allocations: 3.895 MB / 0.7273 GB, free: 9.258 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.6143, allocations: 49 kB / 0.7274 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=108): time 3.186e-06/0.6143, allocations: 0 / 0.7274 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of matching and sorting (n=108): time 0.003754/0.618, allocations: 1.841 MB / 0.7292 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.948e-05/0.6181, allocations: 115.4 kB / 0.7293 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/0.6199, allocations: 1.279 MB / 0.7305 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.97e-05/0.62, allocations: 45.7 kB / 0.7306 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005715/0.6205, allocations: 0.6246 MB / 0.7312 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003134/0.6209, allocations: 362.6 kB / 0.7315 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000308/0.6212, allocations: 198.8 kB / 0.7317 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.6214, allocations: 345.9 kB / 0.7321 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005489/0.6219, allocations: 306.5 kB / 0.7324 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007122/0.6226, allocations: 449.1 kB / 0.7328 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001289/0.6239, allocations: 0.7715 MB / 0.7335 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.6239, allocations: 7.938 kB / 0.7335 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002249/0.6262, allocations: 1.15 MB / 0.7347 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.6262, allocations: 4 kB / 0.7347 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.6262, allocations: 4 kB / 0.7347 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005481/0.6268, allocations: 161.1 kB / 0.7348 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007632/0.6276, allocations: 207.7 kB / 0.735 GB, free: 1.098 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2172/0.8448, allocations: 7.245 MB / 0.7421 GB, free: 170.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009805/0.8458, allocations: 117.4 kB / 0.7422 GB, free: 170.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.877e-05/0.8459, allocations: 41.38 kB / 0.7423 GB, free: 170.9 MB / 0.5762 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.000502/0.8464, allocations: 313.9 kB / 0.7426 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.8467, allocations: 165.3 kB / 0.7427 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002567/0.8493, allocations: 1.715 MB / 0.7444 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.8493, allocations: 9.109 kB / 0.7444 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.8493, allocations: 5.344 kB / 0.7444 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.8493, allocations: 6.562 kB / 0.7444 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.8523, allocations: 2.395 MB / 0.7468 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.8524, allocations: 2.625 kB / 0.7468 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004756/0.8528, allocations: 129.7 kB / 0.7469 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004317/0.8533, allocations: 169.2 kB / 0.747 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-05/0.8534, allocations: 30.14 kB / 0.7471 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003385/0.8567, allocations: 7.257 MB / 0.7542 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.8568, allocations: 5.156 kB / 0.7542 GB, free: 163 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/0.8588, allocations: 1.588 MB / 0.7557 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000411/0.8592, allocations: 336 kB / 0.756 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.8594, allocations: 31.88 kB / 0.7561 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/0.86, allocations: 37.5 kB / 0.7561 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.8601, allocations: 78.42 kB / 0.7562 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.432e-05/0.8602, allocations: 31.78 kB / 0.7562 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00117/0.8614, allocations: 0.9905 MB / 0.7572 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8614, allocations: 5.75 kB / 0.7572 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001366/0.8628, allocations: 462.4 kB / 0.7576 GB, free: 162.1 MB / 0.5762 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.001824/0.8646, allocations: 0.7422 MB / 0.7583 GB, free: 162 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00206/0.8667, allocations: 1.366 MB / 0.7597 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.8667, allocations: 0 / 0.7597 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009934/0.8677, allocations: 0.9483 MB / 0.7606 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002481/0.8702, allocations: 495.4 kB / 0.7611 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005447/0.8756, allocations: 3.391 MB / 0.7644 GB, free: 159.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006957/0.8764, allocations: 1.209 MB / 0.7656 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004621/0.8768, allocations: 162.6 kB / 0.7657 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.132e-06/0.8768, allocations: 0 / 0.7657 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.06114/0.938, allocations: 52.66 MB / 0.8171 GB, free: 130.9 MB / 0.5762 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/jenkins1/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