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.001434/0.001434, allocations: 105.7 kB / 16.37 MB, free: 6.465 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.001609/0.001609, allocations: 190 kB / 17.31 MB, free: 5.812 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.473/1.473, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7157/0.7157, allocations: 89.5 MB / 380.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 83.88 kB / 459.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1249, allocations: 67.3 MB / 0.5146 GB, free: 7.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.6788/0.8037, allocations: 234.7 MB / 0.7438 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01853/0.8223, allocations: 22.2 MB / 0.7655 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009429/0.8233, allocations: 30.22 kB / 0.7655 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.8251, allocations: 0.773 MB / 0.7663 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005754/0.8309, allocations: 1.952 MB / 0.7682 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006655/0.8376, allocations: 2.171 MB / 0.7703 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003005/0.8406, allocations: 2.014 MB / 0.7723 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007838/0.8414, allocations: 396.3 kB / 0.7726 GB, free: 17.37 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002719/0.8441, allocations: 1.288 MB / 0.7739 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009822/0.8451, allocations: 0.8016 MB / 0.7747 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.8453, allocations: 135.2 kB / 0.7748 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008713/0.854, allocations: 4.083 MB / 0.7788 GB, free: 17.29 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003626/0.8544, allocations: 330.5 kB / 0.7791 GB, free: 17.29 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.8557, allocations: 0.7605 MB / 0.7799 GB, free: 17.29 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006207/0.8619, allocations: 2.812 MB / 0.7826 GB, free: 16.96 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.862, allocations: 3.094 kB / 0.7826 GB, free: 16.96 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.773e-06/0.862, allocations: 1 kB / 0.7826 GB, free: 16.96 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.448e-05/0.862, allocations: 0 / 0.7826 GB, free: 16.96 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.004268/0.8663, allocations: 2.12 MB / 0.7847 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.8663, allocations: 9.812 kB / 0.7847 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002848/0.8692, allocations: 390.3 kB / 0.7851 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.8705, allocations: 0.7737 MB / 0.7858 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003618/0.8709, allocations: 352 kB / 0.7862 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.8711, allocations: 130.2 kB / 0.7863 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/0.8737, allocations: 1.453 MB / 0.7877 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.8738, allocations: 8.75 kB / 0.7877 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.8739, allocations: 51.34 kB / 0.7878 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.8739, allocations: 28.62 kB / 0.7878 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002384/0.8763, allocations: 1.187 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.006524/0.8828, allocations: 5.366 MB / 0.7942 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.8854, allocations: 1.326 MB / 0.7955 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.8867, allocations: 0.7092 MB / 0.7962 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001129/0.8878, allocations: 1.794 MB / 0.7979 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.8879, allocations: 44.39 kB / 0.798 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=113): time 2.685e-06/0.8879, allocations: 2.062 kB / 0.798 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of matching and sorting (n=113): time 0.008023/0.8959, allocations: 3.021 MB / 0.8009 GB, free: 9.617 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.896, allocations: 63.75 kB / 0.801 GB, free: 9.555 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007552/0.8967, allocations: 0.6965 MB / 0.8017 GB, free: 9.418 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.944e-05/0.8968, allocations: 49.7 kB / 0.8017 GB, free: 9.383 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000289/0.8971, allocations: 0.5182 MB / 0.8022 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002802/0.8974, allocations: 390 kB / 0.8026 GB, free: 8.906 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003429/0.8978, allocations: 203.7 kB / 0.8028 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.8979, allocations: 343.6 kB / 0.8031 GB, free: 8.582 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.8989, allocations: 0.4906 MB / 0.8036 GB, free: 8.582 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.9, allocations: 0.583 MB / 0.8041 GB, free: 8.527 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002121/0.9022, allocations: 1.054 MB / 0.8052 GB, free: 8.469 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.9022, allocations: 4.344 kB / 0.8052 GB, free: 8.469 MB / 0.5919 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.004715/0.9069, allocations: 1.893 MB / 0.807 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.9069, allocations: 8.562 kB / 0.807 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.9069, allocations: 7.344 kB / 0.807 GB, free: 8.305 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.9081, allocations: 413.4 kB / 0.8074 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.9095, allocations: 290.8 kB / 0.8077 GB, free: 8.258 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008622/0.9182, allocations: 7.424 MB / 0.815 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009857/0.9192, allocations: 131.8 kB / 0.8151 GB, free: 2.742 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/0.9194, allocations: 74.27 kB / 0.8152 GB, free: 2.742 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.0005129/0.9199, allocations: 263.2 kB / 0.8154 GB, free: 2.613 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002519/0.9201, allocations: 99.19 kB / 0.8155 GB, free: 2.562 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006171/0.9263, allocations: 2.685 MB / 0.8181 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.9263, allocations: 17.16 kB / 0.8181 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.9264, allocations: 3.625 kB / 0.8181 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/0.9264, allocations: 15.95 kB / 0.8182 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007278/0.9337, allocations: 3.519 MB / 0.8216 GB, free: 404 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.9337, allocations: 4.156 kB / 0.8216 GB, free: 400 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.9352, allocations: 288.1 kB / 0.8219 GB, free: 348 kB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.9364, allocations: 415.5 kB / 0.8223 GB, free: 200 kB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.9365, allocations: 47.03 kB / 0.8223 GB, free: 188 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008752/0.9453, allocations: 7.427 MB / 0.8296 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.9453, allocations: 4.031 kB / 0.8296 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006176/0.9515, allocations: 2.582 MB / 0.8321 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005479/0.952, allocations: 297.5 kB / 0.8324 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.9522, allocations: 25.38 kB / 0.8324 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008568/0.9531, allocations: 75.36 kB / 0.8325 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.9533, allocations: 96.56 kB / 0.8326 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001343/0.9535, allocations: 77.52 kB / 0.8326 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006133/0.9541, allocations: 492.3 kB / 0.8331 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.11e-07/0.9541, allocations: 0 / 0.8331 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00169/0.9558, allocations: 0.5921 MB / 0.8337 GB, free: 6.586 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.001297/0.9571, allocations: 0.6868 MB / 0.8344 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004073/0.9612, allocations: 1.897 MB / 0.8362 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.9612, allocations: 0 / 0.8362 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.9639, allocations: 1.378 MB / 0.8376 GB, free: 3.211 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.9652, allocations: 289.8 kB / 0.8378 GB, free: 3.031 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004962/0.9701, allocations: 2.756 MB / 0.8405 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.9709, allocations: 1.127 MB / 0.8416 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001652/0.9725, allocations: 0.8149 MB / 0.8424 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005327/0.9731, allocations: 173 kB / 0.8426 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of SimCode: time 5.71e-07/0.9731, allocations: 0 / 0.8426 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of Templates: time 0.03933/1.012, allocations: 24.52 MB / 0.8665 GB, free: 6.352 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 gbode -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