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: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001269/0.001269, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.311/1.311, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6763/0.6763, allocations: 91.19 MB / 382.2 MB, free: 7.578 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 83.88 kB / 461 MB, free: 9.055 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1209, allocations: 67.68 MB / 0.5163 GB, free: 5.297 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.4205/0.5415, allocations: 214.3 MB / 0.7255 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3148/0.8563, allocations: 17.38 MB / 0.7425 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000842/0.8571, allocations: 45.84 kB / 0.7426 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.8586, allocations: 0.6158 MB / 0.7432 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003558/0.8622, allocations: 1.718 MB / 0.7448 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00358/0.8658, allocations: 1.669 MB / 0.7465 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001501/0.8673, allocations: 1.654 MB / 0.7481 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000393/0.8677, allocations: 290.6 kB / 0.7484 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.8694, allocations: 1.161 MB / 0.7495 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006138/0.8701, allocations: 0.6304 MB / 0.7501 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.8702, allocations: 94.59 kB / 0.7502 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006106/0.8763, allocations: 3.376 MB / 0.7535 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002643/0.8766, allocations: 250.1 kB / 0.7537 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007712/0.8774, allocations: 0.6131 MB / 0.7543 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005221/0.8826, allocations: 2.31 MB / 0.7566 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.8826, allocations: 1.312 kB / 0.7566 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8826, allocations: 1.125 kB / 0.7566 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.813e-05/0.8827, allocations: 0.7812 kB / 0.7566 GB, free: 1.277 MB / 0.5762 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.004123/0.8868, allocations: 1.813 MB / 0.7584 GB, free: 16.36 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.8868, allocations: 10.91 kB / 0.7584 GB, free: 16.36 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002183/0.889, allocations: 289.5 kB / 0.7587 GB, free: 16.29 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.8907, allocations: 0.8128 MB / 0.7594 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002413/0.8909, allocations: 199 kB / 0.7596 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.8911, allocations: 90.28 kB / 0.7597 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.8932, allocations: 1.01 MB / 0.7607 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.8932, allocations: 0.5 kB / 0.7607 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.77e-05/0.8933, allocations: 37.34 kB / 0.7607 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.609e-05/0.8933, allocations: 22.94 kB / 0.7608 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.8951, allocations: 0.7911 MB / 0.7615 GB, free: 15.69 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.005089/0.9002, allocations: 4.122 MB / 0.7656 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001949/0.9022, allocations: 0.8672 MB / 0.7664 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008511/0.9031, allocations: 434.8 kB / 0.7668 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000857/0.9039, allocations: 1.302 MB / 0.7681 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.904, allocations: 42.94 kB / 0.7681 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 2.645e-06/0.904, allocations: 0.8438 kB / 0.7681 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005492/0.9095, allocations: 1.929 MB / 0.77 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.9095, allocations: 60.25 kB / 0.7701 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009914/0.9105, allocations: 0.7675 MB / 0.7708 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.896e-05/0.9106, allocations: 39.3 kB / 0.7709 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.9109, allocations: 0.495 MB / 0.7714 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002293/0.9112, allocations: 274.8 kB / 0.7716 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002924/0.9115, allocations: 155.2 kB / 0.7718 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.9116, allocations: 339.2 kB / 0.7721 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007987/0.9124, allocations: 319.8 kB / 0.7724 GB, free: 10.47 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008521/0.9133, allocations: 391 kB / 0.7728 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/0.9149, allocations: 0.6943 MB / 0.7734 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.9149, allocations: 2.875 kB / 0.7734 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00336/0.9183, allocations: 1.238 MB / 0.7747 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.9183, allocations: 6.219 kB / 0.7747 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.9184, allocations: 0.8438 kB / 0.7747 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009474/0.9193, allocations: 248.9 kB / 0.7749 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009796/0.9203, allocations: 203.2 kB / 0.7751 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006065/0.9264, allocations: 5.225 MB / 0.7802 GB, free: 6.172 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007525/0.9271, allocations: 89 kB / 0.7803 GB, free: 6.137 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.9273, allocations: 53.97 kB / 0.7803 GB, free: 6.137 MB / 0.5919 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.000404/0.9277, allocations: 228.7 kB / 0.7805 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002061/0.9279, allocations: 107.5 kB / 0.7807 GB, free: 5.957 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004128/0.932, allocations: 1.821 MB / 0.7824 GB, free: 5.812 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.9321, allocations: 8.938 kB / 0.7824 GB, free: 5.812 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.9321, allocations: 6.219 kB / 0.7824 GB, free: 5.809 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.9321, allocations: 5.609 kB / 0.7824 GB, free: 5.809 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004708/0.9368, allocations: 2.474 MB / 0.7849 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.9368, allocations: 5.719 kB / 0.7849 GB, free: 5.281 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009482/0.9378, allocations: 198.9 kB / 0.7851 GB, free: 5.277 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007396/0.9385, allocations: 252.2 kB / 0.7853 GB, free: 5.25 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.001e-05/0.9386, allocations: 36.95 kB / 0.7853 GB, free: 5.25 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00571/0.9443, allocations: 5.235 MB / 0.7904 GB, free: 1.191 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.9444, allocations: 7.406 kB / 0.7905 GB, free: 1.188 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003809/0.9482, allocations: 1.714 MB / 0.7921 GB, free: 0.8906 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003843/0.9486, allocations: 252.2 kB / 0.7924 GB, free: 0.7305 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.9488, allocations: 20.34 kB / 0.7924 GB, free: 0.7305 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006108/0.9494, allocations: 42.34 kB / 0.7924 GB, free: 0.7305 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.9495, allocations: 81.3 kB / 0.7925 GB, free: 0.7227 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.081e-05/0.9496, allocations: 46.5 kB / 0.7926 GB, free: 0.7227 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006273/0.9502, allocations: 0.5368 MB / 0.7931 GB, free: 0.6133 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9503, allocations: 0 / 0.7931 GB, free: 0.6133 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00205/0.9523, allocations: 468.3 kB / 0.7935 GB, free: 0.5469 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.001836/0.9542, allocations: 0.584 MB / 0.7941 GB, free: 360 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002998/0.9572, allocations: 1.282 MB / 0.7953 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.9572, allocations: 2.531 kB / 0.7953 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.9588, allocations: 0.895 MB / 0.7962 GB, free: 15.62 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.9601, allocations: 263.8 kB / 0.7965 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004261/0.9644, allocations: 2.358 MB / 0.7988 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006643/0.965, allocations: 1.067 MB / 0.7998 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006047/0.9657, allocations: 173.1 kB / 0.8 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of SimCode: time 4.6e-07/0.9657, allocations: 4 kB / 0.8 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of Templates: time 0.03931/1.005, allocations: 31.62 MB / 0.8309 GB, free: 6.023 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (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 & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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