Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 101.5 kB / 16.35 MB, free: 5.875 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.001792/0.001792, allocations: 198.3 kB / 17.3 MB, free: 5.516 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6401/0.6401, allocations: 89.49 MB / 380.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 71.89 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1098, allocations: 67.31 MB / 0.5146 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.6649/0.7747, allocations: 234.7 MB / 0.7438 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01794/0.7927, allocations: 22.21 MB / 0.7655 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.7937, allocations: 26.19 kB / 0.7655 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001723/0.7955, allocations: 0.7736 MB / 0.7663 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004464/0.8, allocations: 1.949 MB / 0.7682 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005125/0.8051, allocations: 2.175 MB / 0.7703 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002727/0.8079, allocations: 2.013 MB / 0.7723 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006687/0.8085, allocations: 400.5 kB / 0.7726 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002625/0.8112, allocations: 1.282 MB / 0.7739 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009062/0.8121, allocations: 0.8019 MB / 0.7747 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.8123, allocations: 134.5 kB / 0.7748 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007502/0.8198, allocations: 4.087 MB / 0.7788 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002574/0.8201, allocations: 327.7 kB / 0.7791 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008442/0.8209, allocations: 0.7644 MB / 0.7799 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004432/0.8254, allocations: 2.812 MB / 0.7826 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.8254, allocations: 0.8438 kB / 0.7826 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.162e-06/0.8254, allocations: 0.7812 kB / 0.7826 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.299e-05/0.8254, allocations: 2.625 kB / 0.7826 GB, free: 16.95 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: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.003656/0.8291, allocations: 2.119 MB / 0.7847 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.8291, allocations: 10.56 kB / 0.7847 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002662/0.8318, allocations: 385.4 kB / 0.785 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.8329, allocations: 0.7752 MB / 0.7858 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003181/0.8332, allocations: 350.6 kB / 0.7861 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.8334, allocations: 129.9 kB / 0.7863 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/0.8359, allocations: 1.457 MB / 0.7877 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.8359, allocations: 3.094 kB / 0.7877 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.836, allocations: 52.56 kB / 0.7877 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.836, allocations: 31.59 kB / 0.7878 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.8382, allocations: 1.184 MB / 0.7889 GB, free: 15.11 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.00571/0.8439, allocations: 5.366 MB / 0.7942 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/0.8462, allocations: 1.325 MB / 0.7955 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.8474, allocations: 0.7082 MB / 0.7962 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000972/0.8484, allocations: 1.792 MB / 0.7979 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.8484, allocations: 46.31 kB / 0.7979 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=113): time 2.555e-06/0.8485, allocations: 2.25 kB / 0.7979 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of matching and sorting (n=113): time 0.007303/0.8558, allocations: 3.021 MB / 0.8009 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.8558, allocations: 65.53 kB / 0.801 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006704/0.8565, allocations: 0.6969 MB / 0.8016 GB, free: 9.406 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.965e-05/0.8566, allocations: 42.83 kB / 0.8017 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.8568, allocations: 0.521 MB / 0.8022 GB, free: 9.141 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.8571, allocations: 389.1 kB / 0.8026 GB, free: 8.895 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002983/0.8574, allocations: 206 kB / 0.8028 GB, free: 8.875 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.8575, allocations: 346.9 kB / 0.8031 GB, free: 8.57 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009253/0.8584, allocations: 498.8 kB / 0.8036 GB, free: 8.57 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.8594, allocations: 0.584 MB / 0.8041 GB, free: 8.516 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001919/0.8614, allocations: 1.052 MB / 0.8052 GB, free: 8.457 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.8614, allocations: 1.906 kB / 0.8052 GB, free: 8.457 MB / 0.5919 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.004225/0.8656, allocations: 1.892 MB / 0.807 GB, free: 8.297 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.8656, allocations: 11.31 kB / 0.807 GB, free: 8.297 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.8656, allocations: 0 / 0.807 GB, free: 8.297 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.8667, allocations: 415.1 kB / 0.8074 GB, free: 8.25 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.868, allocations: 296.3 kB / 0.8077 GB, free: 8.246 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00786/0.8758, allocations: 7.414 MB / 0.8149 GB, free: 2.789 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.877, allocations: 135 kB / 0.8151 GB, free: 2.734 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.8771, allocations: 75.92 kB / 0.8151 GB, free: 2.734 MB / 0.5919 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,1,88.9%), (3,1,88.9%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005096/0.8777, allocations: 259.4 kB / 0.8154 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.8779, allocations: 102 kB / 0.8155 GB, free: 2.551 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005602/0.8835, allocations: 2.695 MB / 0.8181 GB, free: 1.727 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.8835, allocations: 12.34 kB / 0.8181 GB, free: 1.727 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.8835, allocations: 3.969 kB / 0.8181 GB, free: 1.727 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.8835, allocations: 7.969 kB / 0.8181 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006395/0.8899, allocations: 3.52 MB / 0.8216 GB, free: 416 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.8899, allocations: 0 / 0.8216 GB, free: 416 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.8913, allocations: 299.8 kB / 0.8219 GB, free: 360 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.8924, allocations: 415.8 kB / 0.8223 GB, free: 208 kB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.554e-05/0.8925, allocations: 48.31 kB / 0.8223 GB, free: 200 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007889/0.9004, allocations: 7.43 MB / 0.8296 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.9004, allocations: 0 / 0.8296 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0055/0.9059, allocations: 2.574 MB / 0.8321 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.9064, allocations: 297.5 kB / 0.8324 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.9066, allocations: 25.38 kB / 0.8324 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007456/0.9073, allocations: 77.05 kB / 0.8325 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.9075, allocations: 100.7 kB / 0.8326 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.9076, allocations: 71.95 kB / 0.8326 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005444/0.9082, allocations: 495.1 kB / 0.8331 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9082, allocations: 0 / 0.8331 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00161/0.9098, allocations: 0.5978 MB / 0.8337 GB, free: 6.59 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.h_out_A,counterFlowNTU1.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 (106): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,5,100.0%), (3,1,88.9%), (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.001073/0.9109, allocations: 0.6902 MB / 0.8344 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003666/0.9145, allocations: 1.895 MB / 0.8362 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9146, allocations: 3.188 kB / 0.8362 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002401/0.917, allocations: 1.379 MB / 0.8376 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.9181, allocations: 282.6 kB / 0.8378 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004157/0.9222, allocations: 2.76 MB / 0.8405 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/0.9228, allocations: 1.121 MB / 0.8416 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00137/0.9242, allocations: 0.8187 MB / 0.8424 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004652/0.9246, allocations: 170 kB / 0.8426 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of SimCode: time 3.3e-07/0.9247, allocations: 0 / 0.8426 GB, free: 14.44 MB / 0.6231 GB Notification: Performance of Templates: time 0.5052/1.43, allocations: 24.53 MB / 0.8665 GB, free: 6.359 MB / 0.6387 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches