Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.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.CrossFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",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.007884/0.007884, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001562/0.001562, allocations: 195.4 kB / 16.67 MB, free: 5.926 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7762/0.7762, allocations: 91.2 MB / 381.7 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 75.88 kB / 0.5164 GB, free: 4.645 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3527, allocations: 67.69 MB / 0.5825 GB, free: 13.62 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.5316/0.8843, allocations: 214.3 MB / 0.7917 GB, free: 1.012 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01525/0.8996, allocations: 17.39 MB / 0.8087 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.9009, allocations: 42.5 kB / 0.8088 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001554/0.9025, allocations: 0.6174 MB / 0.8094 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00402/0.9065, allocations: 1.715 MB / 0.811 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004229/0.9108, allocations: 1.67 MB / 0.8127 GB, free: 412 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002107/0.9129, allocations: 1.662 MB / 0.8143 GB, free: 356 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004809/0.9134, allocations: 295.5 kB / 0.8146 GB, free: 276 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.9155, allocations: 1.176 MB / 0.8157 GB, free: 140 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006587/0.9162, allocations: 0.6227 MB / 0.8163 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.9163, allocations: 94 kB / 0.8164 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006505/0.9228, allocations: 3.427 MB / 0.8198 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004354/0.9233, allocations: 253.1 kB / 0.82 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009549/0.9242, allocations: 0.6127 MB / 0.8206 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005332/0.9296, allocations: 2.336 MB / 0.8229 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.9296, allocations: 0 / 0.8229 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.194e-06/0.9296, allocations: 1.25 kB / 0.8229 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.001e-05/0.9297, allocations: 3.938 kB / 0.8229 GB, free: 13.72 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.00353/0.9332, allocations: 1.82 MB / 0.8247 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.9332, allocations: 10.5 kB / 0.8247 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.9334, allocations: 136.6 kB / 0.8248 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002135/0.9356, allocations: 286.4 kB / 0.8251 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.9373, allocations: 0.8797 MB / 0.8259 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/0.9375, allocations: 202.9 kB / 0.8261 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.9376, allocations: 96.69 kB / 0.8262 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.9395, allocations: 1.006 MB / 0.8272 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.9395, allocations: 3.5 kB / 0.8272 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.631e-05/0.9396, allocations: 39.17 kB / 0.8273 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.9396, allocations: 21.03 kB / 0.8273 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.9413, allocations: 0.7832 MB / 0.828 GB, free: 10.29 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.005551/0.9468, allocations: 4.092 MB / 0.832 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001996/0.9488, allocations: 0.856 MB / 0.8329 GB, free: 5.547 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008731/0.9497, allocations: 432.3 kB / 0.8333 GB, free: 5.121 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008906/0.9506, allocations: 1.302 MB / 0.8346 GB, free: 3.531 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.693e-05/0.9508, allocations: 39.22 kB / 0.8346 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 6.482e-06/0.9508, allocations: 0 / 0.8346 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005529/0.9563, allocations: 1.921 MB / 0.8365 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.9564, allocations: 60.06 kB / 0.8365 GB, free: 1.43 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.9575, allocations: 0.7654 MB / 0.8373 GB, free: 0.6406 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.9576, allocations: 37.7 kB / 0.8373 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.958, allocations: 499.4 kB / 0.8378 GB, free: 108 kB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.9582, allocations: 278 kB / 0.8381 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.9585, allocations: 150.5 kB / 0.8382 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.9586, allocations: 345.9 kB / 0.8385 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000713/0.9593, allocations: 305.8 kB / 0.8388 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007193/0.96, allocations: 394.6 kB / 0.8392 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.9615, allocations: 0.6887 MB / 0.8399 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.9615, allocations: 0 / 0.8399 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00318/0.9647, allocations: 1.228 MB / 0.8411 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.9648, allocations: 4 kB / 0.8411 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.9648, allocations: 5.703 kB / 0.8411 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008913/0.9657, allocations: 256.9 kB / 0.8413 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009694/0.9667, allocations: 199.6 kB / 0.8415 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005823/0.9725, allocations: 5.215 MB / 0.8466 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008101/0.9733, allocations: 91.28 kB / 0.8467 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002101/0.9736, allocations: 55.98 kB / 0.8467 GB, free: 6.488 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 (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.0004222/0.974, allocations: 223.9 kB / 0.847 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002524/0.9743, allocations: 106.7 kB / 0.8471 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004114/0.9784, allocations: 1.828 MB / 0.8488 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.9784, allocations: 8 kB / 0.8489 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.9784, allocations: 4 kB / 0.8489 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.9785, allocations: 7.922 kB / 0.8489 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005106/0.9836, allocations: 2.491 MB / 0.8513 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.9836, allocations: 8.156 kB / 0.8513 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009785/0.9846, allocations: 203.6 kB / 0.8515 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008302/0.9854, allocations: 256.6 kB / 0.8517 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.823e-05/0.9855, allocations: 35.97 kB / 0.8518 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005759/0.9913, allocations: 5.225 MB / 0.8569 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.9913, allocations: 8.094 kB / 0.8569 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004111/0.9954, allocations: 1.715 MB / 0.8586 GB, free: 9.887 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000502/0.996, allocations: 255.6 kB / 0.8588 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/0.9962, allocations: 16 kB / 0.8588 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006695/0.9969, allocations: 43.95 kB / 0.8589 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.997, allocations: 79.69 kB / 0.8589 GB, free: 9.48 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002018/0.9973, allocations: 43.98 kB / 0.859 GB, free: 9.438 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007598/0.998, allocations: 0.5395 MB / 0.8595 GB, free: 8.887 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.21e-07/0.998, allocations: 4 kB / 0.8595 GB, free: 8.883 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001563/0.9996, allocations: 471.1 kB / 0.86 GB, free: 8.422 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (crossFlowNTU.h_out_A,crossFlowNTU.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 (78): * Single equations (assignments): 75 * 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.005371/1.005, allocations: 2.747 MB / 0.8626 GB, free: 5.688 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002765/1.008, allocations: 1.244 MB / 0.8639 GB, free: 4.418 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.008, allocations: 0 / 0.8639 GB, free: 4.418 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001723/1.01, allocations: 0.912 MB / 0.8647 GB, free: 3.484 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/1.011, allocations: 264.3 kB / 0.865 GB, free: 3.23 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/1.026, allocations: 8.426 MB / 0.8732 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007435/1.027, allocations: 1.068 MB / 0.8743 GB, free: 9.594 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001413/1.029, allocations: 0.6367 MB / 0.8749 GB, free: 8.965 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007978/1.03, allocations: 0.5031 MB / 0.8754 GB, free: 8.461 MB / 0.6387 GB Notification: Performance of SimCode: time 9.32e-07/1.03, allocations: 0 / 0.8754 GB, free: 8.461 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07205/1.102, allocations: 30.83 MB / 0.9055 GB, free: 9.914 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/13.34, allocations: 3.984 kB / 0.9055 GB, free: 9.91 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches