Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.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.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 110.4 kB / 16.41 MB, free: 6.492 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.001255/0.001255, allocations: 183 kB / 17.34 MB, free: 5.766 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7905/0.7905, allocations: 91.19 MB / 382.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 79.88 kB / 0.5175 GB, free: 4.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.411, allocations: 67.69 MB / 0.5836 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5855/0.9966, allocations: 214.3 MB / 0.7929 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01531/1.012, allocations: 17.39 MB / 0.8099 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/1.013, allocations: 52.81 kB / 0.8099 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001569/1.015, allocations: 0.616 MB / 0.8105 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00429/1.019, allocations: 1.719 MB / 0.8122 GB, free: 452 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004129/1.023, allocations: 1.668 MB / 0.8138 GB, free: 392 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002141/1.025, allocations: 1.654 MB / 0.8154 GB, free: 336 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004341/1.026, allocations: 293.1 kB / 0.8157 GB, free: 260 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00217/1.028, allocations: 1.183 MB / 0.8169 GB, free: 120 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006929/1.029, allocations: 0.6308 MB / 0.8175 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001296/1.029, allocations: 96.19 kB / 0.8176 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007/1.036, allocations: 3.429 MB / 0.8209 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000384/1.036, allocations: 248 kB / 0.8212 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009515/1.037, allocations: 0.6059 MB / 0.8218 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005147/1.042, allocations: 2.351 MB / 0.8241 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/1.043, allocations: 0 / 0.8241 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.413e-06/1.043, allocations: 1.156 kB / 0.8241 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.654e-05/1.043, allocations: 0 / 0.8241 GB, free: 13.62 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.003443/1.046, allocations: 1.813 MB / 0.8258 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/1.046, allocations: 8.125 kB / 0.8258 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001997/1.048, allocations: 283.7 kB / 0.8261 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001564/1.05, allocations: 0.8886 MB / 0.827 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/1.05, allocations: 199.5 kB / 0.8272 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/1.05, allocations: 101 kB / 0.8273 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001821/1.052, allocations: 1.006 MB / 0.8282 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/1.052, allocations: 0 / 0.8282 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/1.052, allocations: 38.62 kB / 0.8283 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/1.052, allocations: 20.72 kB / 0.8283 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/1.054, allocations: 0.797 MB / 0.8291 GB, free: 10.3 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005202/1.059, allocations: 4.094 MB / 0.8331 GB, free: 6.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/1.061, allocations: 0.8679 MB / 0.8339 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007998/1.062, allocations: 431.3 kB / 0.8343 GB, free: 5.188 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009011/1.062, allocations: 1.3 MB / 0.8356 GB, free: 3.602 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/1.063, allocations: 43.22 kB / 0.8356 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 2.073e-06/1.063, allocations: 4 kB / 0.8357 GB, free: 3.547 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005187/1.068, allocations: 1.929 MB / 0.8375 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/1.068, allocations: 60.06 kB / 0.8376 GB, free: 1.484 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000917/1.069, allocations: 0.7576 MB / 0.8383 GB, free: 0.7031 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.855e-05/1.069, allocations: 41.7 kB / 0.8384 GB, free: 0.6562 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003607/1.069, allocations: 0.4884 MB / 0.8388 GB, free: 164 kB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/1.069, allocations: 282.5 kB / 0.8391 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/1.07, allocations: 158.6 kB / 0.8393 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001346/1.07, allocations: 333.9 kB / 0.8396 GB, free: 15.39 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006899/1.07, allocations: 311 kB / 0.8399 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007529/1.071, allocations: 397.7 kB / 0.8403 GB, free: 14.69 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/1.073, allocations: 0.6925 MB / 0.8409 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/1.073, allocations: 4 kB / 0.8409 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003012/1.076, allocations: 1.244 MB / 0.8422 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/1.076, allocations: 4 kB / 0.8422 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/1.076, allocations: 0 / 0.8422 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008011/1.077, allocations: 254.4 kB / 0.8424 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009138/1.078, allocations: 198 kB / 0.8426 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005948/1.083, allocations: 5.226 MB / 0.8477 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007137/1.084, allocations: 83.28 kB / 0.8478 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/1.084, allocations: 51.98 kB / 0.8478 GB, free: 6.523 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,1,88.9%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004071/1.085, allocations: 231.9 kB / 0.848 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/1.085, allocations: 106.7 kB / 0.8482 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003905/1.089, allocations: 1.822 MB / 0.8499 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/1.089, allocations: 8 kB / 0.8499 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.089, allocations: 4 kB / 0.8499 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/1.089, allocations: 7.922 kB / 0.8499 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004713/1.094, allocations: 2.482 MB / 0.8524 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/1.094, allocations: 0 / 0.8524 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009325/1.095, allocations: 195.6 kB / 0.8526 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007353/1.095, allocations: 252.7 kB / 0.8528 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.066e-05/1.095, allocations: 39.98 kB / 0.8528 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005806/1.101, allocations: 5.241 MB / 0.858 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.101, allocations: 0 / 0.858 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004032/1.105, allocations: 1.718 MB / 0.8596 GB, free: 9.938 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/1.106, allocations: 251.5 kB / 0.8599 GB, free: 9.672 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/1.106, allocations: 20 kB / 0.8599 GB, free: 9.652 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005639/1.106, allocations: 35.97 kB / 0.8599 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/1.107, allocations: 75.09 kB / 0.86 GB, free: 9.547 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.23e-05/1.107, allocations: 52.22 kB / 0.86 GB, free: 9.496 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007346/1.107, allocations: 0.5395 MB / 0.8606 GB, free: 8.945 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/1.107, allocations: 0 / 0.8606 GB, free: 8.945 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001595/1.109, allocations: 475.1 kB / 0.861 GB, free: 8.48 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,mCV.inlet.m_flow,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * 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 (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (3,1,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00105/1.11, allocations: 0.5778 MB / 0.8616 GB, free: 7.945 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002592/1.113, allocations: 1.245 MB / 0.8628 GB, free: 6.672 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.113, allocations: 0 / 0.8628 GB, free: 6.672 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001652/1.114, allocations: 0.9101 MB / 0.8637 GB, free: 5.742 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/1.116, allocations: 259.4 kB / 0.8639 GB, free: 5.496 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004064/1.12, allocations: 2.317 MB / 0.8662 GB, free: 3.148 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006732/1.12, allocations: 1.072 MB / 0.8673 GB, free: 2.047 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005394/1.121, allocations: 179.3 kB / 0.8674 GB, free: 1.871 MB / 0.6231 GB Notification: Performance of SimCode: time 2.81e-07/1.121, allocations: 4 kB / 0.8674 GB, free: 1.867 MB / 0.6231 GB Notification: Performance of Templates: time 0.03393/1.155, allocations: 31.68 MB / 0.8984 GB, free: 2.215 MB / 0.6544 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches