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.007146/0.007146, allocations: 102 kB / 15.73 MB, free: 6.043 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.001535/0.001535, allocations: 196.2 kB / 16.67 MB, free: 5.965 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7438/0.7438, allocations: 91.19 MB / 381.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 83.88 kB / 0.5168 GB, free: 4.105 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.347, allocations: 67.69 MB / 0.5829 GB, free: 13.87 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.6681/1.015, allocations: 214.3 MB / 0.7922 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01707/1.032, allocations: 17.4 MB / 0.8092 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/1.033, allocations: 45.28 kB / 0.8093 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001533/1.035, allocations: 0.6107 MB / 0.8099 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004109/1.039, allocations: 1.744 MB / 0.8116 GB, free: 444 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004135/1.043, allocations: 1.677 MB / 0.8132 GB, free: 384 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001766/1.045, allocations: 1.665 MB / 0.8148 GB, free: 328 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003831/1.046, allocations: 290.1 kB / 0.8151 GB, free: 252 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002/1.048, allocations: 1.192 MB / 0.8163 GB, free: 112 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006338/1.048, allocations: 0.6272 MB / 0.8169 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001242/1.048, allocations: 92.12 kB / 0.817 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006072/1.054, allocations: 3.427 MB / 0.8203 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002624/1.055, allocations: 249.9 kB / 0.8205 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007284/1.055, allocations: 0.6172 MB / 0.8211 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004929/1.06, allocations: 2.343 MB / 0.8234 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/1.06, allocations: 1.25 kB / 0.8234 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.204e-06/1.06, allocations: 4 kB / 0.8234 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.748e-05/1.06, allocations: 0 / 0.8234 GB, free: 13.6 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.003621/1.064, allocations: 1.817 MB / 0.8252 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/1.064, allocations: 7.438 kB / 0.8252 GB, free: 12.28 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002014/1.066, allocations: 285.9 kB / 0.8255 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/1.068, allocations: 0.8806 MB / 0.8264 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/1.068, allocations: 206.5 kB / 0.8266 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/1.068, allocations: 94.16 kB / 0.8266 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/1.07, allocations: 1.012 MB / 0.8276 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.245e-05/1.071, allocations: 0 / 0.8276 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/1.071, allocations: 35.53 kB / 0.8277 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-05/1.071, allocations: 21.19 kB / 0.8277 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/1.073, allocations: 0.7899 MB / 0.8285 GB, free: 10.29 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.00685/1.08, allocations: 4.097 MB / 0.8325 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001951/1.082, allocations: 0.864 MB / 0.8333 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007805/1.082, allocations: 431.3 kB / 0.8337 GB, free: 5.188 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009103/1.083, allocations: 1.303 MB / 0.835 GB, free: 3.598 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/1.083, allocations: 42.62 kB / 0.835 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 2.815e-06/1.083, allocations: 0 / 0.835 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005045/1.088, allocations: 1.938 MB / 0.8369 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/1.088, allocations: 60.06 kB / 0.837 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009406/1.089, allocations: 0.764 MB / 0.8377 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.043e-05/1.089, allocations: 41.7 kB / 0.8378 GB, free: 0.6484 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/1.09, allocations: 496.1 kB / 0.8382 GB, free: 160 kB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/1.09, allocations: 281.4 kB / 0.8385 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000281/1.09, allocations: 150.5 kB / 0.8386 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001263/1.091, allocations: 345.8 kB / 0.839 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006816/1.091, allocations: 313.8 kB / 0.8393 GB, free: 15.07 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007406/1.092, allocations: 391.1 kB / 0.8396 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/1.093, allocations: 0.699 MB / 0.8403 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/1.093, allocations: 0 / 0.8403 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002945/1.096, allocations: 1.233 MB / 0.8415 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/1.096, allocations: 8 kB / 0.8415 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.096, allocations: 0 / 0.8415 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008349/1.097, allocations: 249.7 kB / 0.8418 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009174/1.098, allocations: 207.5 kB / 0.842 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005793/1.104, allocations: 5.22 MB / 0.8471 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007491/1.105, allocations: 91.23 kB / 0.8472 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/1.105, allocations: 51.98 kB / 0.8472 GB, free: 6.512 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.0004198/1.105, allocations: 229.4 kB / 0.8474 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/1.105, allocations: 102.7 kB / 0.8475 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0039/1.109, allocations: 1.816 MB / 0.8493 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/1.109, allocations: 8 kB / 0.8493 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.109, allocations: 4 kB / 0.8493 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/1.109, allocations: 7.922 kB / 0.8493 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004762/1.114, allocations: 2.482 MB / 0.8517 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/1.114, allocations: 4 kB / 0.8517 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009301/1.115, allocations: 191.6 kB / 0.8519 GB, free: 1.621 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007192/1.116, allocations: 258.4 kB / 0.8522 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.726e-05/1.116, allocations: 35.97 kB / 0.8522 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005456/1.121, allocations: 5.232 MB / 0.8573 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/1.121, allocations: 6.656 kB / 0.8573 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003705/1.125, allocations: 1.714 MB / 0.859 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000461/1.126, allocations: 259.5 kB / 0.8592 GB, free: 9.672 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/1.126, allocations: 16 kB / 0.8593 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/1.126, allocations: 39.97 kB / 0.8593 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/1.126, allocations: 72.56 kB / 0.8594 GB, free: 9.547 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.475e-05/1.127, allocations: 55.91 kB / 0.8594 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007131/1.127, allocations: 0.5317 MB / 0.8599 GB, free: 8.949 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/1.127, allocations: 2.625 kB / 0.8599 GB, free: 8.949 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001639/1.129, allocations: 475.1 kB / 0.8604 GB, free: 8.484 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.001414/1.13, allocations: 0.5724 MB / 0.861 GB, free: 7.953 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003024/1.133, allocations: 1.249 MB / 0.8622 GB, free: 6.676 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/1.133, allocations: 0 / 0.8622 GB, free: 6.676 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001705/1.135, allocations: 0.9046 MB / 0.8631 GB, free: 5.75 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/1.137, allocations: 274 kB / 0.8633 GB, free: 5.496 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004503/1.141, allocations: 2.294 MB / 0.8656 GB, free: 3.18 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006877/1.142, allocations: 1.068 MB / 0.8666 GB, free: 2.082 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001307/1.143, allocations: 0.6277 MB / 0.8672 GB, free: 1.461 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/1.144, allocations: 145.8 kB / 0.8674 GB, free: 1.32 MB / 0.6231 GB Notification: Performance of SimCode: time 1.352e-06/1.144, allocations: 0 / 0.8674 GB, free: 1.32 MB / 0.6231 GB Notification: Performance of Templates: time 0.03283/1.176, allocations: 19.55 MB / 0.8864 GB, free: 13.95 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches