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.008407/0.008407, allocations: 100.7 kB / 15.73 MB, free: 5.961 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.001761/0.001761, allocations: 195 kB / 16.67 MB, free: 5.883 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7271/0.7271, allocations: 91.2 MB / 381.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 83.86 kB / 0.5168 GB, free: 4.125 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3634, allocations: 67.69 MB / 0.5829 GB, free: 14.16 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.6462/1.01, allocations: 214.3 MB / 0.7922 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01711/1.027, allocations: 17.39 MB / 0.8092 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001274/1.028, allocations: 45.25 kB / 0.8092 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001906/1.03, allocations: 0.6177 MB / 0.8099 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004923/1.035, allocations: 1.721 MB / 0.8115 GB, free: 420 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004656/1.04, allocations: 1.666 MB / 0.8132 GB, free: 356 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002219/1.042, allocations: 1.663 MB / 0.8148 GB, free: 300 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004766/1.042, allocations: 289.2 kB / 0.8151 GB, free: 224 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002596/1.045, allocations: 1.161 MB / 0.8162 GB, free: 88 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008417/1.046, allocations: 0.6276 MB / 0.8168 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000139/1.046, allocations: 95.31 kB / 0.8169 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006852/1.053, allocations: 3.43 MB / 0.8202 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002764/1.053, allocations: 252 kB / 0.8205 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006695/1.054, allocations: 0.6027 MB / 0.8211 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004771/1.059, allocations: 2.357 MB / 0.8234 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/1.059, allocations: 5.188 kB / 0.8234 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.643e-06/1.059, allocations: 0 / 0.8234 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.625e-05/1.059, allocations: 0 / 0.8234 GB, free: 13.66 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.003692/1.062, allocations: 1.865 MB / 0.8252 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/1.063, allocations: 10.75 kB / 0.8252 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00201/1.065, allocations: 293.7 kB / 0.8255 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/1.066, allocations: 0.8878 MB / 0.8264 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002204/1.066, allocations: 205.2 kB / 0.8266 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/1.067, allocations: 91.22 kB / 0.8266 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/1.068, allocations: 1.012 MB / 0.8276 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/1.068, allocations: 0 / 0.8276 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.264e-05/1.068, allocations: 35.53 kB / 0.8277 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/1.069, allocations: 21.19 kB / 0.8277 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/1.07, allocations: 0.7914 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.005176/1.075, allocations: 4.111 MB / 0.8325 GB, free: 6.496 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001957/1.077, allocations: 0.8639 MB / 0.8333 GB, free: 5.633 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008181/1.078, allocations: 427.3 kB / 0.8337 GB, free: 5.211 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008545/1.079, allocations: 1.306 MB / 0.835 GB, free: 3.621 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/1.079, allocations: 47.2 kB / 0.835 GB, free: 3.566 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 2.194e-06/1.079, allocations: 4 kB / 0.835 GB, free: 3.562 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005385/1.084, allocations: 1.927 MB / 0.8369 GB, free: 1.57 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/1.084, allocations: 62.59 kB / 0.837 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009384/1.085, allocations: 0.7615 MB / 0.8377 GB, free: 0.7148 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/1.085, allocations: 41.7 kB / 0.8378 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003412/1.086, allocations: 0.4969 MB / 0.8383 GB, free: 168 kB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/1.086, allocations: 289.8 kB / 0.8385 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002727/1.086, allocations: 162.6 kB / 0.8387 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000124/1.086, allocations: 341.6 kB / 0.839 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007596/1.087, allocations: 309.8 kB / 0.8393 GB, free: 15.08 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007669/1.088, allocations: 395.1 kB / 0.8397 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/1.09, allocations: 0.6959 MB / 0.8404 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/1.09, allocations: 4 kB / 0.8404 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00323/1.093, allocations: 1.236 MB / 0.8416 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/1.093, allocations: 8 kB / 0.8416 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/1.093, allocations: 7.969 kB / 0.8416 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008541/1.094, allocations: 246.4 kB / 0.8418 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000944/1.095, allocations: 207.5 kB / 0.842 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005955/1.101, allocations: 5.234 MB / 0.8471 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008266/1.102, allocations: 83.47 kB / 0.8472 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/1.102, allocations: 51.98 kB / 0.8473 GB, free: 6.5 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.0004982/1.102, allocations: 233.2 kB / 0.8475 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/1.102, allocations: 115.2 kB / 0.8476 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/1.107, allocations: 1.812 MB / 0.8494 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/1.107, allocations: 8 kB / 0.8494 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/1.107, allocations: 4 kB / 0.8494 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/1.107, allocations: 7.922 kB / 0.8494 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004971/1.112, allocations: 2.474 MB / 0.8518 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/1.112, allocations: 4 kB / 0.8518 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009946/1.113, allocations: 191.5 kB / 0.852 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007931/1.113, allocations: 260.9 kB / 0.8522 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.663e-05/1.114, allocations: 39.97 kB / 0.8523 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006143/1.12, allocations: 5.23 MB / 0.8574 GB, free: 11.67 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/1.12, allocations: 6.516 kB / 0.8574 GB, free: 11.67 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00413/1.124, allocations: 1.73 MB / 0.8591 GB, free: 9.91 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004725/1.124, allocations: 260.1 kB / 0.8593 GB, free: 9.637 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/1.124, allocations: 20 kB / 0.8594 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/1.125, allocations: 35.97 kB / 0.8594 GB, free: 9.582 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/1.125, allocations: 80.48 kB / 0.8595 GB, free: 9.504 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.331e-05/1.125, allocations: 50.73 kB / 0.8595 GB, free: 9.457 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007044/1.126, allocations: 0.5356 MB / 0.86 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/1.126, allocations: 0 / 0.86 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001493/1.128, allocations: 474.8 kB / 0.8605 GB, free: 8.445 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.001201/1.129, allocations: 0.5785 MB / 0.8611 GB, free: 7.902 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002872/1.132, allocations: 1.256 MB / 0.8623 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.132, allocations: 0 / 0.8623 GB, free: 6.617 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001797/1.133, allocations: 0.8938 MB / 0.8632 GB, free: 5.699 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/1.135, allocations: 264.5 kB / 0.8634 GB, free: 5.449 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004759/1.14, allocations: 2.333 MB / 0.8657 GB, free: 3.098 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007255/1.141, allocations: 1.068 MB / 0.8667 GB, free: 2 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001451/1.142, allocations: 0.6241 MB / 0.8673 GB, free: 1.383 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004318/1.142, allocations: 151.3 kB / 0.8675 GB, free: 1.234 MB / 0.6231 GB Notification: Performance of SimCode: time 7.91e-07/1.142, allocations: 0 / 0.8675 GB, free: 1.234 MB / 0.6231 GB Notification: Performance of Templates: time 0.03273/1.175, allocations: 19.55 MB / 0.8866 GB, free: 13.86 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