Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001844/0.001844, allocations: 105.7 kB / 16.41 MB, free: 6.5 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.002034/0.002034, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.475/1.475, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.767/0.767, allocations: 97.65 MB / 388.8 MB, free: 1.441 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00245/0.00245, allocations: 83.02 kB / 0.5268 GB, free: 38.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1133, allocations: 69.24 MB / 0.5944 GB, free: 472 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5389/0.6522, allocations: 214.9 MB / 0.8043 GB, free: 1.066 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01469/0.6669, allocations: 17.45 MB / 0.8213 GB, free: 0.6914 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.6681, allocations: 51.03 kB / 0.8214 GB, free: 0.6914 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.6695, allocations: 0.6244 MB / 0.822 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004101/0.6736, allocations: 1.774 MB / 0.8237 GB, free: 0.6055 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003751/0.6774, allocations: 1.679 MB / 0.8253 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001907/0.6793, allocations: 1.725 MB / 0.827 GB, free: 500 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003433/0.6796, allocations: 187 kB / 0.8272 GB, free: 448 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002167/0.6818, allocations: 1.227 MB / 0.8284 GB, free: 296 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006483/0.6825, allocations: 0.6351 MB / 0.829 GB, free: 132 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.6826, allocations: 93.19 kB / 0.8291 GB, free: 132 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005826/0.6884, allocations: 3.42 MB / 0.8324 GB, free: 40 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003587/0.6888, allocations: 254.3 kB / 0.8327 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007883/0.6896, allocations: 0.6176 MB / 0.8333 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00448/0.694, allocations: 2.387 MB / 0.8356 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.694, allocations: 0 / 0.8356 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.533e-06/0.694, allocations: 0 / 0.8356 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.132e-05/0.6941, allocations: 0 / 0.8356 GB, free: 15.41 MB / 0.6075 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.003682/0.6977, allocations: 1.903 MB / 0.8375 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.6978, allocations: 10.38 kB / 0.8375 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/0.6999, allocations: 296.6 kB / 0.8378 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.7017, allocations: 0.9369 MB / 0.8387 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.7019, allocations: 194.7 kB / 0.8389 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001516/0.702, allocations: 102.3 kB / 0.839 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001909/0.704, allocations: 1.006 MB / 0.84 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.704, allocations: 6.516 kB / 0.84 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.159e-05/0.7041, allocations: 35.19 kB / 0.84 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.7041, allocations: 22.53 kB / 0.84 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.7058, allocations: 0.7875 MB / 0.8408 GB, free: 13.2 MB / 0.6075 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.005708/0.7115, allocations: 4.132 MB / 0.8448 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.7135, allocations: 0.8175 MB / 0.8456 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008735/0.7144, allocations: 399.5 kB / 0.846 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001029/0.7154, allocations: 1.299 MB / 0.8473 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.7154, allocations: 48.05 kB / 0.8473 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=80): time 2.746e-06/0.7154, allocations: 0 / 0.8473 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of matching and sorting (n=80): time 0.005688/0.7211, allocations: 1.932 MB / 0.8492 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.7212, allocations: 62.97 kB / 0.8493 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.7222, allocations: 0.8026 MB / 0.85 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.005e-05/0.7223, allocations: 44.77 kB / 0.8501 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004305/0.7227, allocations: 0.5079 MB / 0.8506 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002644/0.723, allocations: 298.7 kB / 0.8509 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.7232, allocations: 157.8 kB / 0.851 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.7234, allocations: 335 kB / 0.8513 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007353/0.7241, allocations: 320.3 kB / 0.8516 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007905/0.7249, allocations: 384 kB / 0.852 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.7265, allocations: 0.6987 MB / 0.8527 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.7265, allocations: 3.938 kB / 0.8527 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003371/0.7299, allocations: 1.24 MB / 0.8539 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.7299, allocations: 8 kB / 0.8539 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.7299, allocations: 0 / 0.8539 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008983/0.7308, allocations: 248.6 kB / 0.8542 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.7318, allocations: 208.4 kB / 0.8544 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00675/0.7386, allocations: 5.228 MB / 0.8595 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008136/0.7394, allocations: 87.47 kB / 0.8595 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.7395, allocations: 51.97 kB / 0.8596 GB, free: 12.86 MB / 0.6231 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.0004681/0.74, allocations: 225.4 kB / 0.8598 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002274/0.7402, allocations: 112.1 kB / 0.8599 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004471/0.7447, allocations: 1.814 MB / 0.8617 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.7447, allocations: 8 kB / 0.8617 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.7447, allocations: 4 kB / 0.8617 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.7447, allocations: 15.91 kB / 0.8617 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005403/0.7501, allocations: 2.489 MB / 0.8641 GB, free: 8.129 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.7501, allocations: 0 / 0.8641 GB, free: 8.129 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.7511, allocations: 195.6 kB / 0.8643 GB, free: 7.945 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008324/0.752, allocations: 246.3 kB / 0.8646 GB, free: 7.695 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.585e-05/0.7521, allocations: 43.91 kB / 0.8646 GB, free: 7.652 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006694/0.7588, allocations: 5.233 MB / 0.8697 GB, free: 2.027 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.7588, allocations: 4.031 kB / 0.8697 GB, free: 2.023 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004356/0.7631, allocations: 1.722 MB / 0.8714 GB, free: 280 kB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004758/0.7636, allocations: 260.1 kB / 0.8716 GB, free: 0 / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/0.7638, allocations: 17.27 kB / 0.8717 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006097/0.7644, allocations: 43.91 kB / 0.8717 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.7646, allocations: 75.09 kB / 0.8718 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.381e-05/0.7646, allocations: 47.98 kB / 0.8718 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007942/0.7654, allocations: 0.5643 MB / 0.8724 GB, free: 15.26 MB / 0.6387 GB Notification: Performance of sort global known variables: time 8e-08/0.7654, allocations: 0 / 0.8724 GB, free: 15.26 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001637/0.7671, allocations: 478.8 kB / 0.8728 GB, free: 14.79 MB / 0.6387 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.001609/0.7687, allocations: 0.5849 MB / 0.8734 GB, free: 14.24 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003071/0.7718, allocations: 1.201 MB / 0.8746 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.7718, allocations: 0 / 0.8746 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001868/0.7736, allocations: 0.8806 MB / 0.8754 GB, free: 12.12 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.7751, allocations: 268.4 kB / 0.8757 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004564/0.7797, allocations: 2.37 MB / 0.878 GB, free: 9.461 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007623/0.7804, allocations: 1.08 MB / 0.8791 GB, free: 8.352 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001392/0.7818, allocations: 0.6382 MB / 0.8797 GB, free: 7.723 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004462/0.7823, allocations: 147.3 kB / 0.8798 GB, free: 7.578 MB / 0.6387 GB Notification: Performance of SimCode: time 9.62e-07/0.7823, allocations: 0 / 0.8798 GB, free: 7.578 MB / 0.6387 GB Notification: Performance of Templates: time 0.03787/0.8201, allocations: 19.81 MB / 0.8992 GB, free: 3.973 MB / 0.6544 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches