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 dev (/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.001197/0.001197, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001552/0.001552, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 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: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7588/0.7588, allocations: 89.61 MB / 380.6 MB, free: 11.45 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003295/0.0003295, allocations: 14.25 kB / 459.9 MB, free: 24.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1446, allocations: 68.83 MB / 0.5163 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.5678/0.7125, allocations: 180 MB / 0.6921 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0224/0.7349, allocations: 18.53 MB / 0.7102 GB, free: 3.723 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001685/0.7366, allocations: 27.81 kB / 0.7103 GB, free: 3.695 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002338/0.739, allocations: 0.6337 MB / 0.7109 GB, free: 3.059 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.006961/0.746, allocations: 1.784 MB / 0.7126 GB, free: 1.27 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005682/0.7517, allocations: 1.703 MB / 0.7143 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002767/0.7545, allocations: 1.343 MB / 0.7156 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006233/0.7551, allocations: 319.7 kB / 0.7159 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002252/0.7574, allocations: 1.044 MB / 0.7169 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007361/0.7581, allocations: 0.6378 MB / 0.7176 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.7583, allocations: 64 kB / 0.7176 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008462/0.7667, allocations: 3.98 MB / 0.7215 GB, free: 8.148 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0005117/0.7673, allocations: 250.9 kB / 0.7217 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005602/0.7679, allocations: 285 kB / 0.722 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004329/0.7722, allocations: 1.902 MB / 0.7239 GB, free: 5.715 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 9.769e-06/0.7723, allocations: 0 / 0.7239 GB, free: 5.715 MB / 0.5294 GB Notification: Performance of FrontEnd: time 4.078e-06/0.7723, allocations: 7.938 kB / 0.7239 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.441e-05/0.7723, allocations: 0 / 0.7239 GB, free: 5.707 MB / 0.5294 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.004414/0.7767, allocations: 1.875 MB / 0.7257 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.7768, allocations: 8.031 kB / 0.7257 GB, free: 3.77 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003118/0.7799, allocations: 397.8 kB / 0.7261 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.7814, allocations: 0.7272 MB / 0.7268 GB, free: 2.605 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003887/0.7818, allocations: 364.1 kB / 0.7272 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.7821, allocations: 127.9 kB / 0.7273 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002963/0.785, allocations: 1.485 MB / 0.7287 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.7851, allocations: 0 / 0.7287 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.7852, allocations: 55.38 kB / 0.7288 GB, free: 496 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/0.7852, allocations: 39.89 kB / 0.7288 GB, free: 456 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002707/0.788, allocations: 1.239 MB / 0.73 GB, free: 15.2 MB / 0.545 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.007529/0.7955, allocations: 5.441 MB / 0.7353 GB, free: 9.328 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003048/0.7986, allocations: 1.385 MB / 0.7367 GB, free: 7.934 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001286/0.7999, allocations: 1.79 MB / 0.7384 GB, free: 5.738 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.7999, allocations: 43.56 kB / 0.7385 GB, free: 5.688 MB / 0.545 GB Notification: Performance of pre-optimization done (n=113): time 3.006e-06/0.7999, allocations: 4 kB / 0.7385 GB, free: 5.684 MB / 0.545 GB Notification: Performance of matching and sorting (n=113): time 0.009625/0.8096, allocations: 3.438 MB / 0.7418 GB, free: 2.156 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.8097, allocations: 68.41 kB / 0.7419 GB, free: 2.078 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008839/0.8106, allocations: 0.6808 MB / 0.7426 GB, free: 1.387 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.8107, allocations: 45.7 kB / 0.7426 GB, free: 1.336 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00037/0.8111, allocations: 0.5119 MB / 0.7431 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003647/0.8114, allocations: 398.2 kB / 0.7435 GB, free: 432 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.275e-05/0.8115, allocations: 20 kB / 0.7435 GB, free: 412 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001755/0.8117, allocations: 349.9 kB / 0.7438 GB, free: 56 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.8129, allocations: 0.5296 MB / 0.7444 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.8142, allocations: 0.6231 MB / 0.745 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.8155, allocations: 0.5535 MB / 0.7455 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.8155, allocations: 4 kB / 0.7455 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005452/0.8209, allocations: 2.115 MB / 0.7476 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.821, allocations: 4 kB / 0.7476 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.821, allocations: 4 kB / 0.7476 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/0.8225, allocations: 483.6 kB / 0.7481 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.824, allocations: 303.6 kB / 0.7483 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009804/0.8339, allocations: 7.388 MB / 0.7556 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.8352, allocations: 163 kB / 0.7557 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.8354, allocations: 83.95 kB / 0.7558 GB, free: 3.238 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 1,(3,88.9%) 1,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005324/0.8359, allocations: 255.2 kB / 0.756 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.8361, allocations: 98.78 kB / 0.7561 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006924/0.843, allocations: 2.929 MB / 0.759 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.8431, allocations: 12 kB / 0.759 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/0.8431, allocations: 15.83 kB / 0.759 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/0.8432, allocations: 3.984 kB / 0.759 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008092/0.8513, allocations: 3.761 MB / 0.7627 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.8513, allocations: 0 / 0.7627 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001597/0.8529, allocations: 299.8 kB / 0.763 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.8543, allocations: 494.9 kB / 0.7635 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/0.8545, allocations: 47.97 kB / 0.7635 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00961/0.8641, allocations: 7.391 MB / 0.7707 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.8641, allocations: 4.031 kB / 0.7707 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006811/0.8709, allocations: 2.877 MB / 0.7735 GB, free: 332 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000771/0.8718, allocations: 299.3 kB / 0.7738 GB, free: 12 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.872, allocations: 28.14 kB / 0.7738 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008764/0.8728, allocations: 107.9 kB / 0.7739 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/0.8731, allocations: 104.8 kB / 0.774 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.8732, allocations: 67.97 kB / 0.7741 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005946/0.8738, allocations: 491 kB / 0.7746 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8738, allocations: 0 / 0.7746 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001874/0.8757, allocations: 0.5886 MB / 0.7752 GB, free: 14.64 MB / 0.5919 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(3,88.9%) 1,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001479/0.8772, allocations: 0.7224 MB / 0.7759 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.004532/0.8817, allocations: 2.053 MB / 0.7779 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.8817, allocations: 0 / 0.7779 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003021/0.8848, allocations: 1.5 MB / 0.7793 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.8862, allocations: 244.4 kB / 0.7796 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00593/0.8921, allocations: 3.45 MB / 0.7829 GB, free: 6.551 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007262/0.8929, allocations: 1.156 MB / 0.7841 GB, free: 5.363 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002251/0.8951, allocations: 0.8152 MB / 0.7849 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006095/0.8958, allocations: 175.3 kB / 0.785 GB, free: 4.383 MB / 0.5919 GB Notification: Performance of SimCode: time 9.42e-07/0.8958, allocations: 0 / 0.785 GB, free: 4.383 MB / 0.5919 GB Notification: Performance of Templates: time 0.3293/1.225, allocations: 22.97 MB / 0.8075 GB, free: 224.4 MB / 0.6075 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 -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","../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches