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.008258/0.008258, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001957/0.001957, allocations: 196.6 kB / 16.67 MB, free: 5.969 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7255/0.7255, allocations: 91.19 MB / 381.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 71.88 kB / 0.5164 GB, free: 9.523 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.131, allocations: 67.7 MB / 0.5825 GB, free: 5.746 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.5659/0.697, allocations: 214.3 MB / 0.7918 GB, free: 1.723 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.02246/0.7195, allocations: 17.39 MB / 0.8087 GB, free: 288 kB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001736/0.7213, allocations: 51.62 kB / 0.8088 GB, free: 236 kB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.7234, allocations: 0.6093 MB / 0.8094 GB, free: 15.62 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.006013/0.7295, allocations: 1.745 MB / 0.8111 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.006473/0.736, allocations: 1.676 MB / 0.8127 GB, free: 12.19 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.002997/0.739, allocations: 1.658 MB / 0.8143 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00056/0.7396, allocations: 293.6 kB / 0.8146 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002483/0.7421, allocations: 1.187 MB / 0.8158 GB, free: 9.035 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000867/0.7429, allocations: 0.6336 MB / 0.8164 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002325/0.7432, allocations: 92 kB / 0.8165 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007028/0.7502, allocations: 3.421 MB / 0.8198 GB, free: 4.883 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0004127/0.7507, allocations: 250.9 kB / 0.8201 GB, free: 4.637 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0007248/0.7514, allocations: 0.6137 MB / 0.8207 GB, free: 4.02 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0058/0.7572, allocations: 2.355 MB / 0.823 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.7572, allocations: 0 / 0.823 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.336e-06/0.7573, allocations: 4 kB / 0.823 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.783e-05/0.7573, allocations: 0 / 0.823 GB, free: 1.652 MB / 0.6544 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.005399/0.7627, allocations: 1.859 MB / 0.8248 GB, free: 15.73 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.7628, allocations: 16.03 kB / 0.8248 GB, free: 15.71 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001834/0.763, allocations: 140.6 kB / 0.8249 GB, free: 15.57 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002113/0.7651, allocations: 294.8 kB / 0.8252 GB, free: 15.28 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00209/0.7672, allocations: 0.8907 MB / 0.8261 GB, free: 14.35 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.7674, allocations: 196.5 kB / 0.8263 GB, free: 14.14 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.7676, allocations: 99.94 kB / 0.8264 GB, free: 14.04 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002115/0.7697, allocations: 1.001 MB / 0.8273 GB, free: 13.01 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.7698, allocations: 4 kB / 0.8273 GB, free: 13 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.688e-05/0.7699, allocations: 40 kB / 0.8274 GB, free: 12.96 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.7699, allocations: 20 kB / 0.8274 GB, free: 12.95 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.7717, allocations: 0.7885 MB / 0.8282 GB, free: 12.16 MB / 0.67 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.005401/0.7771, allocations: 4.1 MB / 0.8322 GB, free: 7.719 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/0.7791, allocations: 0.8589 MB / 0.833 GB, free: 6.855 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008587/0.78, allocations: 431.3 kB / 0.8334 GB, free: 6.43 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008169/0.7808, allocations: 1.303 MB / 0.8347 GB, free: 4.832 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.7809, allocations: 39.22 kB / 0.8347 GB, free: 4.785 MB / 0.67 GB Notification: Performance of pre-optimization done (n=80): time 2.585e-06/0.7809, allocations: 0 / 0.8347 GB, free: 4.785 MB / 0.67 GB Notification: Performance of matching and sorting (n=80): time 0.005635/0.7865, allocations: 1.92 MB / 0.8366 GB, free: 2.793 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.7866, allocations: 64 kB / 0.8367 GB, free: 2.719 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009417/0.7875, allocations: 0.7693 MB / 0.8374 GB, free: 1.926 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 6.977e-05/0.7876, allocations: 37.7 kB / 0.8375 GB, free: 1.883 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004472/0.7881, allocations: 0.4891 MB / 0.8379 GB, free: 1.387 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.7883, allocations: 293.5 kB / 0.8382 GB, free: 1.094 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.7886, allocations: 146.6 kB / 0.8384 GB, free: 0.9453 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.7887, allocations: 341.9 kB / 0.8387 GB, free: 0.6055 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007144/0.7894, allocations: 309.8 kB / 0.839 GB, free: 308 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3347/1.124, allocations: 381.8 kB / 0.8393 GB, free: 228.2 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001843/1.126, allocations: 0.6907 MB / 0.84 GB, free: 228.2 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/1.126, allocations: 0.7188 kB / 0.84 GB, free: 228.2 MB / 0.67 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003465/1.13, allocations: 1.233 MB / 0.8412 GB, free: 228.1 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/1.13, allocations: 10.03 kB / 0.8412 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/1.13, allocations: 0.9062 kB / 0.8412 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/1.131, allocations: 242.1 kB / 0.8415 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/1.132, allocations: 203.8 kB / 0.8417 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005764/1.137, allocations: 5.236 MB / 0.8468 GB, free: 223.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008373/1.138, allocations: 88 kB / 0.8469 GB, free: 223.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/1.138, allocations: 56.3 kB / 0.8469 GB, free: 223.7 MB / 0.67 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.0006638/1.139, allocations: 224.4 kB / 0.8471 GB, free: 223.6 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002834/1.139, allocations: 110 kB / 0.8472 GB, free: 223.5 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/1.144, allocations: 1.828 MB / 0.849 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/1.144, allocations: 8.125 kB / 0.849 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/1.144, allocations: 6.094 kB / 0.849 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/1.144, allocations: 9.625 kB / 0.849 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004962/1.149, allocations: 2.496 MB / 0.8515 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/1.149, allocations: 1.75 kB / 0.8515 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009582/1.15, allocations: 203 kB / 0.8517 GB, free: 221.8 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009039/1.151, allocations: 250.5 kB / 0.8519 GB, free: 221.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.358e-05/1.151, allocations: 36.41 kB / 0.8519 GB, free: 221.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005667/1.157, allocations: 5.237 MB / 0.8571 GB, free: 217.2 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.157, allocations: 2.5 kB / 0.8571 GB, free: 217.2 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004481/1.161, allocations: 1.732 MB / 0.8587 GB, free: 216.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007056/1.162, allocations: 257.6 kB / 0.859 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/1.162, allocations: 19.14 kB / 0.859 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005896/1.163, allocations: 42.02 kB / 0.8591 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/1.163, allocations: 76.27 kB / 0.8591 GB, free: 216.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-05/1.163, allocations: 51.59 kB / 0.8592 GB, free: 216.2 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0009384/1.164, allocations: 0.5308 MB / 0.8597 GB, free: 216 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.3e-07/1.164, allocations: 3.938 kB / 0.8597 GB, free: 216 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001641/1.165, allocations: 478.2 kB / 0.8602 GB, free: 215.9 MB / 0.67 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.00572/1.171, allocations: 2.751 MB / 0.8628 GB, free: 214.6 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003155/1.174, allocations: 1.247 MB / 0.8641 GB, free: 214 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.174, allocations: 0.6875 kB / 0.8641 GB, free: 214 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001864/1.176, allocations: 0.9094 MB / 0.8649 GB, free: 213.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/1.178, allocations: 267.6 kB / 0.8652 GB, free: 213.4 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01581/1.194, allocations: 8.471 MB / 0.8735 GB, free: 209.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006296/1.194, allocations: 1.077 MB / 0.8745 GB, free: 208.7 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001537/1.196, allocations: 0.6261 MB / 0.8751 GB, free: 208.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007612/1.197, allocations: 0.5041 MB / 0.8756 GB, free: 208.2 MB / 0.67 GB Notification: Performance of SimCode: time 2.094e-06/1.197, allocations: 0 / 0.8756 GB, free: 208.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0619/1.258, allocations: 30.39 MB / 0.9053 GB, free: 189.1 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.38, allocations: 14.28 kB / 0.9053 GB, free: 189.1 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.csv","/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