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.008927/0.008927, allocations: 100.3 kB / 15.73 MB, free: 5.996 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.001772/0.001772, allocations: 195.2 kB / 16.67 MB, free: 5.934 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.782/0.782, allocations: 91.19 MB / 381.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 75.88 kB / 0.5164 GB, free: 9.527 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1543, allocations: 67.7 MB / 0.5825 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.614/0.7684, allocations: 234.9 MB / 0.8119 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02944/0.7979, allocations: 22.27 MB / 0.8337 GB, free: 6.703 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002023/0.8, allocations: 59.62 kB / 0.8337 GB, free: 6.645 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002942/0.803, allocations: 0.7994 MB / 0.8345 GB, free: 5.84 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006772/0.8098, allocations: 2.005 MB / 0.8365 GB, free: 3.824 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006782/0.8166, allocations: 2.173 MB / 0.8386 GB, free: 1.645 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.4342/1.251, allocations: 2.184 MB / 0.8407 GB, free: 4.938 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009271/1.252, allocations: 411.5 kB / 0.8411 GB, free: 4.828 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003132/1.255, allocations: 1.386 MB / 0.8425 GB, free: 4.828 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/1.256, allocations: 0.8326 MB / 0.8433 GB, free: 4.828 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0002953/1.256, allocations: 136 kB / 0.8434 GB, free: 4.828 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009072/1.266, allocations: 4.089 MB / 0.8474 GB, free: 4.82 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0006127/1.266, allocations: 337.4 kB / 0.8477 GB, free: 4.82 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001716/1.268, allocations: 0.817 MB / 0.8485 GB, free: 4.82 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.009142/1.277, allocations: 2.996 MB / 0.8514 GB, free: 4.742 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 1.695e-05/1.277, allocations: 1.5 kB / 0.8514 GB, free: 4.742 MB / 0.67 GB Notification: Performance of FrontEnd: time 4.869e-06/1.277, allocations: 0 / 0.8514 GB, free: 4.742 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.00017/1.277, allocations: 0.6562 kB / 0.8514 GB, free: 4.742 MB / 0.67 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.006935/1.284, allocations: 2.294 MB / 0.8537 GB, free: 19.75 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/1.284, allocations: 9.781 kB / 0.8537 GB, free: 19.75 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000215/1.285, allocations: 188.7 kB / 0.8539 GB, free: 19.71 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003474/1.288, allocations: 413.1 kB / 0.8543 GB, free: 19.62 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002531/1.291, allocations: 1.081 MB / 0.8553 GB, free: 19.22 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004946/1.291, allocations: 349.4 kB / 0.8557 GB, free: 18.96 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002752/1.291, allocations: 128.8 kB / 0.8558 GB, free: 18.96 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003021/1.294, allocations: 1.462 MB / 0.8572 GB, free: 18.82 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/1.294, allocations: 1.969 kB / 0.8572 GB, free: 18.82 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/1.295, allocations: 57.27 kB / 0.8573 GB, free: 18.81 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.224e-05/1.295, allocations: 30.72 kB / 0.8573 GB, free: 18.81 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002653/1.297, allocations: 1.183 MB / 0.8585 GB, free: 18.8 MB / 0.6856 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.007948/1.305, allocations: 5.427 MB / 0.8638 GB, free: 16.01 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003184/1.308, allocations: 1.311 MB / 0.865 GB, free: 15.97 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001685/1.31, allocations: 0.7135 MB / 0.8657 GB, free: 15.96 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001611/1.312, allocations: 1.79 MB / 0.8675 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/1.312, allocations: 53.81 kB / 0.8675 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=113): time 3.477e-06/1.312, allocations: 3.844 kB / 0.8675 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of matching and sorting (n=113): time 0.008947/1.321, allocations: 3.036 MB / 0.8705 GB, free: 13.34 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/1.321, allocations: 68.94 kB / 0.8706 GB, free: 13.27 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/1.322, allocations: 0.8831 MB / 0.8714 GB, free: 13.12 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.00015/1.322, allocations: 45.45 kB / 0.8715 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004907/1.323, allocations: 0.6029 MB / 0.8721 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003394/1.323, allocations: 387.8 kB / 0.8724 GB, free: 12.61 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003995/1.324, allocations: 207.2 kB / 0.8726 GB, free: 12.59 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001517/1.324, allocations: 345.8 kB / 0.873 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/1.325, allocations: 0.4913 MB / 0.8734 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001221/1.326, allocations: 0.5842 MB / 0.874 GB, free: 12.24 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002215/1.328, allocations: 1.051 MB / 0.875 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/1.329, allocations: 0 / 0.875 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.004978/1.333, allocations: 1.915 MB / 0.8769 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/1.334, allocations: 6.094 kB / 0.8769 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/1.334, allocations: 3.875 kB / 0.8769 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/1.335, allocations: 416.8 kB / 0.8773 GB, free: 12 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/1.336, allocations: 295.2 kB / 0.8776 GB, free: 12 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008884/1.345, allocations: 7.424 MB / 0.8848 GB, free: 6.586 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/1.347, allocations: 131.3 kB / 0.885 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002689/1.347, allocations: 75.02 kB / 0.885 GB, free: 6.535 MB / 0.6856 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.0007471/1.348, allocations: 266.2 kB / 0.8853 GB, free: 6.414 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/1.348, allocations: 125 kB / 0.8854 GB, free: 6.348 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006435/1.355, allocations: 2.719 MB / 0.8881 GB, free: 6.164 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/1.355, allocations: 11.97 kB / 0.8881 GB, free: 6.164 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/1.355, allocations: 6.703 kB / 0.8881 GB, free: 6.164 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/1.355, allocations: 10.27 kB / 0.8881 GB, free: 6.164 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008629/1.363, allocations: 3.589 MB / 0.8916 GB, free: 5.594 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/1.363, allocations: 2 kB / 0.8916 GB, free: 5.594 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/1.365, allocations: 297.3 kB / 0.8919 GB, free: 5.594 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/1.366, allocations: 411.8 kB / 0.8923 GB, free: 5.555 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/1.366, allocations: 53.97 kB / 0.8923 GB, free: 5.555 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009295/1.376, allocations: 7.428 MB / 0.8996 GB, free: 100 kB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.376, allocations: 6.781 kB / 0.8996 GB, free: 96 kB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006891/1.383, allocations: 2.597 MB / 0.9021 GB, free: 15.75 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007516/1.383, allocations: 312.5 kB / 0.9024 GB, free: 15.57 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003226/1.384, allocations: 22.72 kB / 0.9024 GB, free: 15.57 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/1.385, allocations: 68.84 kB / 0.9025 GB, free: 15.57 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/1.385, allocations: 111.2 kB / 0.9026 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/1.385, allocations: 66.09 kB / 0.9027 GB, free: 15.55 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0008713/1.386, allocations: 0.6062 MB / 0.9033 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.9e-07/1.386, allocations: 0 / 0.9033 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.001944/1.388, allocations: 0.6007 MB / 0.9039 GB, free: 15.35 MB / 0.7012 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.007523/1.396, allocations: 3.737 MB / 0.9075 GB, free: 14.34 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004362/1.4, allocations: 1.903 MB / 0.9094 GB, free: 13.84 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.4, allocations: 0 / 0.9094 GB, free: 13.84 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002743/1.403, allocations: 1.363 MB / 0.9107 GB, free: 13.37 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/1.405, allocations: 307.3 kB / 0.911 GB, free: 13.32 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02262/1.427, allocations: 11.13 MB / 0.9219 GB, free: 10.35 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/1.428, allocations: 1.192 MB / 0.923 GB, free: 9.613 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001744/1.43, allocations: 0.8422 MB / 0.9238 GB, free: 9.316 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000991/1.431, allocations: 0.6588 MB / 0.9245 GB, free: 9.188 MB / 0.7012 GB Notification: Performance of SimCode: time 1.363e-06/1.431, allocations: 4 kB / 0.9245 GB, free: 9.184 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08629/1.517, allocations: 38.88 MB / 0.9625 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/14.4, allocations: 22.06 kB / 0.9625 GB, free: 3.008 MB / 0.7325 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