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: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001698/0.001698, allocations: 198.7 kB / 16.14 MB, free: 6.645 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6896/0.6896, allocations: 91.19 MB / 381.2 MB, free: 9.598 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 84.92 kB / 459.6 MB, free: 23.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1315, allocations: 67.68 MB / 0.515 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.5/0.6315, allocations: 234.1 MB / 0.7435 GB, free: 5.793 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0275/0.659, allocations: 22.55 MB / 0.7656 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002115/0.6612, allocations: 71.5 kB / 0.7656 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002406/0.6636, allocations: 0.6994 MB / 0.7663 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005422/0.6691, allocations: 1.804 MB / 0.7681 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005706/0.6748, allocations: 1.897 MB / 0.7699 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003585/0.6784, allocations: 2.431 MB / 0.7723 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008279/0.6793, allocations: 382.1 kB / 0.7727 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003258/0.6825, allocations: 1.331 MB / 0.774 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001544/0.6841, allocations: 0.8163 MB / 0.7748 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004367/0.6846, allocations: 88 kB / 0.7749 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008963/0.6935, allocations: 4.274 MB / 0.779 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004695/0.694, allocations: 306.5 kB / 0.7793 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.6952, allocations: 0.7729 MB / 0.7801 GB, free: 256 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006285/0.7015, allocations: 2.875 MB / 0.7829 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.7015, allocations: 4 kB / 0.7829 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7015, allocations: 0 / 0.7829 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.101e-05/0.7016, allocations: 0 / 0.7829 GB, free: 13.36 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: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.005841/0.7075, allocations: 2.288 MB / 0.7851 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.7075, allocations: 12.03 kB / 0.7851 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003301/0.7108, allocations: 409.5 kB / 0.7855 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.713, allocations: 0.9886 MB / 0.7865 GB, free: 9.559 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004092/0.7134, allocations: 348.1 kB / 0.7868 GB, free: 9.168 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002852/0.7137, allocations: 131.9 kB / 0.7869 GB, free: 9.039 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003389/0.7171, allocations: 1.45 MB / 0.7884 GB, free: 7.539 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.7171, allocations: 0 / 0.7884 GB, free: 7.539 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.7173, allocations: 55.98 kB / 0.7884 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.7173, allocations: 32 kB / 0.7884 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002829/0.7201, allocations: 1.188 MB / 0.7896 GB, free: 6.258 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.008368/0.7285, allocations: 5.464 MB / 0.7949 GB, free: 368 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003174/0.7317, allocations: 1.314 MB / 0.7962 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/0.7332, allocations: 0.7144 MB / 0.7969 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001509/0.7348, allocations: 1.786 MB / 0.7987 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.917e-05/0.7348, allocations: 55.55 kB / 0.7987 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=113): time 3.136e-06/0.7349, allocations: 0 / 0.7987 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113): time 0.009072/0.7439, allocations: 3.047 MB / 0.8017 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.744, allocations: 64.41 kB / 0.8018 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.7452, allocations: 0.8755 MB / 0.8026 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.7454, allocations: 49.7 kB / 0.8027 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004391/0.7458, allocations: 0.5986 MB / 0.8032 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003402/0.7461, allocations: 390.2 kB / 0.8036 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004063/0.7466, allocations: 214.8 kB / 0.8038 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.7467, allocations: 341.9 kB / 0.8041 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.7479, allocations: 0.4905 MB / 0.8046 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.7492, allocations: 0.584 MB / 0.8052 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/0.7517, allocations: 1.051 MB / 0.8062 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.7517, allocations: 4 kB / 0.8062 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005423/0.7571, allocations: 1.924 MB / 0.8081 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.7572, allocations: 4 kB / 0.8081 GB, free: 2.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.7572, allocations: 0 / 0.8081 GB, free: 2.242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.7585, allocations: 411.1 kB / 0.8085 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.7601, allocations: 303.6 kB / 0.8088 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009208/0.7693, allocations: 6.895 MB / 0.8155 GB, free: 10.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.7706, allocations: 147 kB / 0.8157 GB, free: 9.957 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001938/0.7708, allocations: 75.97 kB / 0.8157 GB, free: 9.883 MB / 0.6231 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.0005996/0.7714, allocations: 261.6 kB / 0.816 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003598/0.7717, allocations: 126.4 kB / 0.8161 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00676/0.7785, allocations: 2.72 MB / 0.8188 GB, free: 6.758 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.7785, allocations: 12 kB / 0.8188 GB, free: 6.746 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/0.7786, allocations: 4 kB / 0.8188 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.7786, allocations: 11.92 kB / 0.8188 GB, free: 6.73 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007958/0.7865, allocations: 3.584 MB / 0.8223 GB, free: 3.047 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.7866, allocations: 7.938 kB / 0.8223 GB, free: 3.039 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.7882, allocations: 291.7 kB / 0.8226 GB, free: 2.754 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.7895, allocations: 430.9 kB / 0.823 GB, free: 2.32 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/0.7896, allocations: 43.97 kB / 0.823 GB, free: 2.277 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2718/1.061, allocations: 6.89 MB / 0.8298 GB, free: 238.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.061, allocations: 1.031 kB / 0.8298 GB, free: 238.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006764/1.068, allocations: 2.603 MB / 0.8323 GB, free: 238.4 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005521/1.069, allocations: 318.8 kB / 0.8326 GB, free: 238.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/1.069, allocations: 24.78 kB / 0.8326 GB, free: 238.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008906/1.07, allocations: 91 kB / 0.8327 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/1.07, allocations: 98.47 kB / 0.8328 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.07, allocations: 73.47 kB / 0.8329 GB, free: 238.2 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007823/1.071, allocations: 0.6095 MB / 0.8335 GB, free: 238 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/1.071, allocations: 0 / 0.8335 GB, free: 238 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001672/1.073, allocations: 0.5971 MB / 0.8341 GB, free: 237.9 MB / 0.6231 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.001218/1.074, allocations: 0.687 MB / 0.8347 GB, free: 237.7 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003911/1.078, allocations: 1.897 MB / 0.8366 GB, free: 236.9 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/1.078, allocations: 0 / 0.8366 GB, free: 236.9 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002517/1.08, allocations: 1.361 MB / 0.8379 GB, free: 236.2 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/1.082, allocations: 290.7 kB / 0.8382 GB, free: 236.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0052/1.087, allocations: 3.638 MB / 0.8417 GB, free: 234.1 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006925/1.088, allocations: 1.195 MB / 0.8429 GB, free: 233.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002342/1.09, allocations: 0.8335 MB / 0.8437 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006583/1.091, allocations: 188 kB / 0.8439 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of SimCode: time 6.81e-07/1.091, allocations: 0 / 0.8439 GB, free: 233.2 MB / 0.6231 GB Notification: Performance of Templates: time 0.03872/1.13, allocations: 24.33 MB / 0.8677 GB, free: 223 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.makefile (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 & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches