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.004673/0.004674, allocations: 100.3 kB / 15.73 MB, free: 6.477 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.001121/0.001121, allocations: 192.5 kB / 16.67 MB, free: 6.391 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7586/0.7586, allocations: 91.2 MB / 381.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 79.88 kB / 0.5164 GB, free: 9.504 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1504, allocations: 67.7 MB / 0.5825 GB, free: 5.727 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5981/0.7486, allocations: 214.3 MB / 0.7918 GB, free: 1.699 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.02201/0.7706, allocations: 17.39 MB / 0.8088 GB, free: 260 kB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.7722, allocations: 47.62 kB / 0.8088 GB, free: 212 kB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.7744, allocations: 0.6171 MB / 0.8094 GB, free: 15.58 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005339/0.7797, allocations: 1.714 MB / 0.8111 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005494/0.7853, allocations: 1.672 MB / 0.8127 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.002694/0.788, allocations: 1.662 MB / 0.8143 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008292/0.7888, allocations: 291.4 kB / 0.8146 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.7915, allocations: 1.179 MB / 0.8158 GB, free: 9.039 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.7927, allocations: 0.6336 MB / 0.8164 GB, free: 8.402 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003234/0.7931, allocations: 96 kB / 0.8165 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007575/0.8007, allocations: 3.424 MB / 0.8198 GB, free: 4.879 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003998/0.8011, allocations: 250.9 kB / 0.8201 GB, free: 4.633 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.8024, allocations: 0.606 MB / 0.8206 GB, free: 4.023 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.006585/0.809, allocations: 2.345 MB / 0.8229 GB, free: 1.672 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.986e-06/0.809, allocations: 4 kB / 0.8229 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.255e-06/0.809, allocations: 0 / 0.8229 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.808e-05/0.8091, allocations: 0 / 0.8229 GB, free: 1.668 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.004615/0.8137, allocations: 1.815 MB / 0.8247 GB, free: 15.79 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.8138, allocations: 8.031 kB / 0.8247 GB, free: 15.79 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002085/0.814, allocations: 151.5 kB / 0.8249 GB, free: 15.63 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002061/0.8161, allocations: 282.1 kB / 0.8251 GB, free: 15.35 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.818, allocations: 0.8818 MB / 0.826 GB, free: 14.43 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/0.8182, allocations: 196.7 kB / 0.8262 GB, free: 14.21 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002223/0.8185, allocations: 99.89 kB / 0.8263 GB, free: 14.12 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.8206, allocations: 1.009 MB / 0.8273 GB, free: 13.08 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.8206, allocations: 3.984 kB / 0.8273 GB, free: 13.07 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001511/0.8208, allocations: 40 kB / 0.8273 GB, free: 13.04 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.574e-05/0.8208, allocations: 24 kB / 0.8273 GB, free: 13.01 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.8225, allocations: 0.7893 MB / 0.8281 GB, free: 12.23 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.005833/0.8284, allocations: 4.089 MB / 0.8321 GB, free: 7.793 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002085/0.8305, allocations: 0.8589 MB / 0.8329 GB, free: 6.93 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009293/0.8314, allocations: 439.2 kB / 0.8333 GB, free: 6.496 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009482/0.8324, allocations: 1.303 MB / 0.8346 GB, free: 4.898 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.8324, allocations: 39.22 kB / 0.8347 GB, free: 4.852 MB / 0.67 GB Notification: Performance of pre-optimization done (n=80): time 3.086e-06/0.8325, allocations: 0 / 0.8347 GB, free: 4.852 MB / 0.67 GB Notification: Performance of matching and sorting (n=80): time 0.005428/0.8379, allocations: 1.931 MB / 0.8365 GB, free: 2.848 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.838, allocations: 68 kB / 0.8366 GB, free: 2.77 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.8393, allocations: 0.7615 MB / 0.8374 GB, free: 1.984 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 8.92e-05/0.8394, allocations: 33.7 kB / 0.8374 GB, free: 1.945 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004365/0.8399, allocations: 0.4962 MB / 0.8379 GB, free: 1.441 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/0.8402, allocations: 275.9 kB / 0.8381 GB, free: 1.164 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002962/0.8405, allocations: 154.5 kB / 0.8383 GB, free: 1.008 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.8406, allocations: 333.9 kB / 0.8386 GB, free: 0.6758 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008782/0.8415, allocations: 324.6 kB / 0.8389 GB, free: 368 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3131/1.155, allocations: 389.6 kB / 0.8393 GB, free: 228.3 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/1.157, allocations: 0.6936 MB / 0.84 GB, free: 228.2 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.83e-06/1.157, allocations: 1.156 kB / 0.84 GB, free: 228.2 MB / 0.67 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003318/1.16, allocations: 1.231 MB / 0.8412 GB, free: 228.2 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/1.16, allocations: 7.016 kB / 0.8412 GB, free: 228.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/1.16, allocations: 0.7812 kB / 0.8412 GB, free: 228.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008402/1.161, allocations: 250.3 kB / 0.8414 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/1.162, allocations: 201.8 kB / 0.8416 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005387/1.167, allocations: 5.227 MB / 0.8467 GB, free: 223.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006993/1.168, allocations: 89.95 kB / 0.8468 GB, free: 223.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/1.168, allocations: 52.75 kB / 0.8468 GB, free: 223.8 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.0003824/1.168, allocations: 224.6 kB / 0.8471 GB, free: 223.6 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/1.169, allocations: 107.7 kB / 0.8472 GB, free: 223.6 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/1.173, allocations: 1.816 MB / 0.8489 GB, free: 223.1 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/1.173, allocations: 12.38 kB / 0.8489 GB, free: 223.1 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.173, allocations: 2.156 kB / 0.8489 GB, free: 223.1 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/1.173, allocations: 6.312 kB / 0.8489 GB, free: 223.1 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004548/1.177, allocations: 2.483 MB / 0.8514 GB, free: 222 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/1.177, allocations: 3.25 kB / 0.8514 GB, free: 222 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009963/1.178, allocations: 197.1 kB / 0.8516 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007081/1.179, allocations: 252.8 kB / 0.8518 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.316e-05/1.179, allocations: 34.58 kB / 0.8518 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004909/1.184, allocations: 5.228 MB / 0.8569 GB, free: 217.3 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.184, allocations: 3.938 kB / 0.8569 GB, free: 217.3 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003595/1.188, allocations: 1.719 MB / 0.8586 GB, free: 216.6 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/1.188, allocations: 251 kB / 0.8589 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/1.188, allocations: 18.38 kB / 0.8589 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/1.189, allocations: 45.94 kB / 0.8589 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/1.189, allocations: 75.69 kB / 0.859 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.834e-05/1.189, allocations: 51.83 kB / 0.859 GB, free: 216.3 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000706/1.19, allocations: 0.5317 MB / 0.8596 GB, free: 216.1 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.3e-07/1.19, allocations: 0 / 0.8596 GB, free: 216.1 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001672/1.192, allocations: 478.2 kB / 0.86 GB, free: 216 MB / 0.67 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.005371/1.197, allocations: 2.736 MB / 0.8627 GB, free: 214.7 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003075/1.2, allocations: 1.255 MB / 0.8639 GB, free: 214.1 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/1.2, allocations: 0.5938 kB / 0.8639 GB, free: 214.1 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001677/1.202, allocations: 0.9008 MB / 0.8648 GB, free: 213.6 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/1.203, allocations: 267.4 kB / 0.8651 GB, free: 213.5 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/1.218, allocations: 8.425 MB / 0.8733 GB, free: 209.5 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007234/1.218, allocations: 1.068 MB / 0.8743 GB, free: 208.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001441/1.22, allocations: 0.6368 MB / 0.875 GB, free: 208.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006523/1.22, allocations: 0.5046 MB / 0.8754 GB, free: 208.3 MB / 0.67 GB Notification: Performance of SimCode: time 7.31e-07/1.22, allocations: 0 / 0.8754 GB, free: 208.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.063/1.283, allocations: 30.64 MB / 0.9054 GB, free: 188.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/13.48, allocations: 15.95 kB / 0.9054 GB, free: 188.9 MB / 0.67 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