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: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009324/0.0009325, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005775/0.005775, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.183/1.183, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5518/0.5518, allocations: 89.66 MB / 381.1 MB, free: 11.33 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 11.16 kB / 460.7 MB, free: 24.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1008, allocations: 68.84 MB / 0.5172 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.4341/0.535, allocations: 230.2 MB / 0.742 GB, free: 5.168 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02158/0.5566, allocations: 22.07 MB / 0.7635 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.5577, allocations: 23.88 kB / 0.7635 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.5594, allocations: 0.6839 MB / 0.7642 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004108/0.5635, allocations: 1.762 MB / 0.7659 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004308/0.5679, allocations: 1.886 MB / 0.7678 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002312/0.5702, allocations: 2.279 MB / 0.77 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004911/0.5707, allocations: 369.4 kB / 0.7703 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.5726, allocations: 1.207 MB / 0.7715 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009038/0.5735, allocations: 0.7309 MB / 0.7722 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001915/0.5737, allocations: 68 kB / 0.7723 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006689/0.5804, allocations: 4.239 MB / 0.7764 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002676/0.5807, allocations: 262.7 kB / 0.7767 GB, free: 1.477 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007697/0.5815, allocations: 0.7049 MB / 0.7774 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004575/0.5861, allocations: 2.73 MB / 0.78 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.5861, allocations: 0 / 0.78 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5861, allocations: 0 / 0.78 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.464e-05/0.5862, allocations: 0 / 0.78 GB, free: 14.02 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.00392/0.5901, allocations: 1.872 MB / 0.7819 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.5901, allocations: 8.031 kB / 0.7819 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002756/0.5904, allocations: 189.9 kB / 0.7821 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002896/0.5933, allocations: 385.8 kB / 0.7824 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.5945, allocations: 0.7578 MB / 0.7832 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000363/0.5948, allocations: 364 kB / 0.7835 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002201/0.5951, allocations: 127.9 kB / 0.7836 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002764/0.5978, allocations: 1.508 MB / 0.7851 GB, free: 8.621 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.5979, allocations: 4 kB / 0.7851 GB, free: 8.617 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.598, allocations: 51.94 kB / 0.7852 GB, free: 8.566 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.598, allocations: 32 kB / 0.7852 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00261/0.6007, allocations: 1.243 MB / 0.7864 GB, free: 7.285 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.006395/0.6071, allocations: 5.441 MB / 0.7917 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002863/0.6099, allocations: 1.388 MB / 0.7931 GB, free: 28 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.6114, allocations: 0.7652 MB / 0.7938 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009819/0.6124, allocations: 1.79 MB / 0.7956 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.6125, allocations: 47.56 kB / 0.7956 GB, free: 13 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=113): time 2.695e-06/0.6125, allocations: 0 / 0.7956 GB, free: 13 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113): time 0.008946/0.6214, allocations: 3.446 MB / 0.799 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.6215, allocations: 68.41 kB / 0.799 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007449/0.6222, allocations: 0.6925 MB / 0.7997 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.154e-05/0.6223, allocations: 45.7 kB / 0.7998 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000313/0.6226, allocations: 0.5197 MB / 0.8003 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002879/0.6229, allocations: 394.2 kB / 0.8007 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.6231, allocations: 81.67 kB / 0.8007 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.6232, allocations: 345.9 kB / 0.8011 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.6244, allocations: 0.5413 MB / 0.8016 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.6257, allocations: 0.6309 MB / 0.8022 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002455/0.6281, allocations: 1.156 MB / 0.8033 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.6282, allocations: 0 / 0.8033 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005299/0.6335, allocations: 2.135 MB / 0.8054 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.6335, allocations: 4 kB / 0.8054 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.6335, allocations: 0 / 0.8054 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.6349, allocations: 487.1 kB / 0.8059 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.6363, allocations: 303.6 kB / 0.8062 GB, free: 1.977 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1999/0.8362, allocations: 7.261 MB / 0.8133 GB, free: 225.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.8374, allocations: 163.3 kB / 0.8134 GB, free: 225.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/0.8376, allocations: 72.97 kB / 0.8135 GB, free: 225.4 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 (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.0005719/0.8382, allocations: 259.1 kB / 0.8137 GB, free: 225.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.8384, allocations: 107.2 kB / 0.8138 GB, free: 225.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006958/0.8454, allocations: 2.944 MB / 0.8167 GB, free: 225.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.8454, allocations: 11.72 kB / 0.8167 GB, free: 225.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/0.8455, allocations: 9 kB / 0.8167 GB, free: 225.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.8455, allocations: 3.234 kB / 0.8167 GB, free: 225.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007195/0.8527, allocations: 3.755 MB / 0.8204 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.8527, allocations: 0 / 0.8204 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.8541, allocations: 304.3 kB / 0.8207 GB, free: 223.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00125/0.8554, allocations: 494.1 kB / 0.8212 GB, free: 223.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.8555, allocations: 53.53 kB / 0.8212 GB, free: 223.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007595/0.8631, allocations: 7.268 MB / 0.8283 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.8631, allocations: 2.719 kB / 0.8283 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006273/0.8694, allocations: 2.846 MB / 0.8311 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004323/0.8698, allocations: 293.9 kB / 0.8314 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.87, allocations: 32.48 kB / 0.8314 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009189/0.8709, allocations: 116.7 kB / 0.8315 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.8712, allocations: 99.61 kB / 0.8316 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.8713, allocations: 69.88 kB / 0.8317 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006232/0.8719, allocations: 498.3 kB / 0.8322 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8719, allocations: 4 kB / 0.8322 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001775/0.8737, allocations: 0.5936 MB / 0.8327 GB, free: 216.4 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.007737/0.8815, allocations: 4.01 MB / 0.8367 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004137/0.8856, allocations: 2.065 MB / 0.8387 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8856, allocations: 3.938 kB / 0.8387 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002709/0.8883, allocations: 1.495 MB / 0.8401 GB, free: 213.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.8898, allocations: 271.2 kB / 0.8404 GB, free: 213 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.018/0.9078, allocations: 12.02 MB / 0.8521 GB, free: 206.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/0.9083, allocations: 1.128 MB / 0.8532 GB, free: 205 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001668/0.91, allocations: 0.8167 MB / 0.854 GB, free: 204.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007648/0.9107, allocations: 0.5773 MB / 0.8546 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of SimCode: time 4.61e-07/0.9107, allocations: 0 / 0.8546 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.278/4.189, allocations: 34.13 MB / 0.8879 GB, free: 169.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/4.189, allocations: 280.6 kB / 0.8882 GB, free: 169.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.975/7.164, allocations: 3.938 kB / 0.8882 GB, free: 169.4 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial.fmu > 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