Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.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,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",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.0008699/0.0008699, 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.005245/0.005246, 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.16/1.16, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5591/0.5591, allocations: 89.64 MB / 381.1 MB, free: 11.36 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003477, allocations: 11.16 kB / 460.7 MB, free: 24.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.0943, allocations: 68.83 MB / 0.5172 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.3745/0.4688, allocations: 209.8 MB / 0.7221 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01648/0.4853, allocations: 17.26 MB / 0.7389 GB, free: 8.32 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007684/0.4861, allocations: 19.88 kB / 0.7389 GB, free: 8.301 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.4874, allocations: 0.5207 MB / 0.7394 GB, free: 7.777 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003351/0.4908, allocations: 1.505 MB / 0.7409 GB, free: 6.266 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003113/0.4939, allocations: 1.446 MB / 0.7423 GB, free: 4.82 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001515/0.4954, allocations: 1.763 MB / 0.744 GB, free: 3.051 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003115/0.4957, allocations: 258.7 kB / 0.7443 GB, free: 2.785 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.4972, allocations: 1.043 MB / 0.7453 GB, free: 1.738 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.4977, allocations: 0.5519 MB / 0.7458 GB, free: 1.184 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.442e-05/0.4978, allocations: 55.98 kB / 0.7459 GB, free: 1.129 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00474/0.5025, allocations: 3.552 MB / 0.7494 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.5027, allocations: 191.1 kB / 0.7495 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003846/0.503, allocations: 0.5378 MB / 0.7501 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002174/0.5052, allocations: 2.127 MB / 0.7521 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.5052, allocations: 0 / 0.7521 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5052, allocations: 0 / 0.7521 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.5053, allocations: 0 / 0.7521 GB, free: 10.7 MB / 0.5606 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.002384/0.5076, allocations: 1.477 MB / 0.7536 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.5077, allocations: 12.03 kB / 0.7536 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.5078, allocations: 139.6 kB / 0.7537 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.5095, allocations: 270.3 kB / 0.754 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007682/0.5103, allocations: 0.6253 MB / 0.7546 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.5105, allocations: 196.8 kB / 0.7548 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.5107, allocations: 92 kB / 0.7549 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.5123, allocations: 1.04 MB / 0.7559 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.5124, allocations: 0 / 0.7559 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-05/0.5124, allocations: 39.94 kB / 0.7559 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.5125, allocations: 24 kB / 0.756 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.514, allocations: 0.8159 MB / 0.7568 GB, free: 5.832 MB / 0.5606 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.004141/0.5182, allocations: 4.102 MB / 0.7608 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.52, allocations: 0.9095 MB / 0.7616 GB, free: 476 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007657/0.5207, allocations: 455.3 kB / 0.7621 GB, free: 20 kB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007128/0.5215, allocations: 1.307 MB / 0.7634 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.5215, allocations: 39.22 kB / 0.7634 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=80): time 1.653e-06/0.5215, allocations: 0 / 0.7634 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of matching and sorting (n=80): time 0.005028/0.5265, allocations: 2.13 MB / 0.7655 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.5266, allocations: 60.06 kB / 0.7655 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006034/0.5272, allocations: 0.6139 MB / 0.7661 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.5272, allocations: 41.64 kB / 0.7662 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.5275, allocations: 428.1 kB / 0.7666 GB, free: 11 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/0.5277, allocations: 276 kB / 0.7668 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.5278, allocations: 69.62 kB / 0.7669 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.5279, allocations: 334 kB / 0.7672 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006879/0.5286, allocations: 337.8 kB / 0.7675 GB, free: 9.996 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007233/0.5293, allocations: 419.1 kB / 0.7679 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.5307, allocations: 0.7448 MB / 0.7687 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.5307, allocations: 0 / 0.7687 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002944/0.5337, allocations: 1.342 MB / 0.77 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.5337, allocations: 8 kB / 0.77 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.5337, allocations: 0 / 0.77 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007902/0.5345, allocations: 286.3 kB / 0.7703 GB, free: 7.152 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008469/0.5354, allocations: 203.8 kB / 0.7705 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00515/0.5405, allocations: 5.04 MB / 0.7754 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005483/0.5411, allocations: 107.4 kB / 0.7755 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.58e-05/0.5412, allocations: 55.92 kB / 0.7755 GB, free: 1.359 MB / 0.5762 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.000271/0.5415, allocations: 211.2 kB / 0.7757 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.5416, allocations: 82.97 kB / 0.7758 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004018/0.5456, allocations: 1.927 MB / 0.7777 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.5456, allocations: 8 kB / 0.7777 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.5457, allocations: 8 kB / 0.7777 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.5457, allocations: 3.984 kB / 0.7777 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004341/0.55, allocations: 2.561 MB / 0.7802 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.55, allocations: 4 kB / 0.7802 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008775/0.5509, allocations: 195.8 kB / 0.7804 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007157/0.5516, allocations: 290.4 kB / 0.7807 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.5517, allocations: 39.91 kB / 0.7807 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005053/0.5568, allocations: 5.036 MB / 0.7856 GB, free: 6.461 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5568, allocations: 11.95 kB / 0.7857 GB, free: 6.449 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003556/0.5603, allocations: 1.83 MB / 0.7874 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/0.5606, allocations: 247.7 kB / 0.7877 GB, free: 4.316 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.5607, allocations: 20 kB / 0.7877 GB, free: 4.297 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005541/0.5613, allocations: 64.27 kB / 0.7878 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.5614, allocations: 80.44 kB / 0.7878 GB, free: 4.156 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.455e-05/0.5615, allocations: 51.97 kB / 0.7879 GB, free: 4.105 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000445/0.5619, allocations: 447 kB / 0.7883 GB, free: 3.676 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5619, allocations: 0 / 0.7883 GB, free: 3.676 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009474/0.5629, allocations: 475.1 kB / 0.7888 GB, free: 3.211 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (counterFlowNTU.h_out_A,counterFlowNTU.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 (76): * Single equations (assignments): 73 * 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.004575/0.5675, allocations: 2.864 MB / 0.7916 GB, free: 308 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002332/0.5698, allocations: 1.322 MB / 0.7929 GB, free: 14.94 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5698, allocations: 128 / 0.7929 GB, free: 14.94 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001584/0.5714, allocations: 0.9761 MB / 0.7938 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.5726, allocations: 229.2 kB / 0.794 GB, free: 13.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/0.5854, allocations: 8.884 MB / 0.8027 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.5859, allocations: 1.017 MB / 0.8037 GB, free: 3.535 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001276/0.5872, allocations: 0.6103 MB / 0.8043 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006307/0.5879, allocations: 447.2 kB / 0.8047 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.5879, allocations: 0 / 0.8047 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.566/3.154, allocations: 26.86 MB / 0.831 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/3.154, allocations: 284.7 kB / 0.8312 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.837/6.991, allocations: 0 / 0.8312 GB, free: 220.3 MB / 0.6075 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches