Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.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_zeroMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006746/0.006746, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001573/0.001573, allocations: 189.4 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7277/0.7277, allocations: 91.19 MB / 381.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 75.83 kB / 0.5168 GB, free: 4.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3527, allocations: 67.69 MB / 0.5829 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow): time 0.5868/0.9396, allocations: 201.8 MB / 0.78 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01341/0.9531, allocations: 15.03 MB / 0.7947 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000977/0.9541, allocations: 42.5 kB / 0.7948 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.9554, allocations: 0.5176 MB / 0.7953 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002965/0.9585, allocations: 1.308 MB / 0.7965 GB, free: 0.8555 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003308/0.9618, allocations: 1.476 MB / 0.798 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001234/0.9631, allocations: 1.347 MB / 0.7993 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003369/0.9634, allocations: 276.3 kB / 0.7996 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001791/0.9652, allocations: 1.053 MB / 0.8006 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004883/0.9657, allocations: 0.5025 MB / 0.8011 GB, free: 484 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.9658, allocations: 77.47 kB / 0.8011 GB, free: 484 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004345/0.9702, allocations: 2.621 MB / 0.8037 GB, free: 420 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.9703, allocations: 202.7 kB / 0.8039 GB, free: 380 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000392/0.9707, allocations: 0.4959 MB / 0.8044 GB, free: 208 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003011/0.9738, allocations: 1.963 MB / 0.8063 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.9738, allocations: 0 / 0.8063 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of FrontEnd: time 4.829e-06/0.9738, allocations: 0 / 0.8063 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.346e-05/0.9738, allocations: 3.938 kB / 0.8063 GB, free: 15.91 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002688/0.9765, allocations: 1.588 MB / 0.8079 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.9765, allocations: 7.125 kB / 0.8079 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001683/0.9782, allocations: 248.8 kB / 0.8081 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.9794, allocations: 0.7762 MB / 0.8089 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.9796, allocations: 180.9 kB / 0.809 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.9797, allocations: 78.95 kB / 0.8091 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.9812, allocations: 0.8288 MB / 0.8099 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.9812, allocations: 2.156 kB / 0.8099 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.554e-05/0.9813, allocations: 27.44 kB / 0.8099 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.9813, allocations: 19.34 kB / 0.81 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.9826, allocations: 0.656 MB / 0.8106 GB, free: 14.39 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.003891/0.9865, allocations: 3.182 MB / 0.8137 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.9879, allocations: 0.6014 MB / 0.8143 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006885/0.9886, allocations: 348.6 kB / 0.8146 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006416/0.9892, allocations: 0.894 MB / 0.8155 GB, free: 11.44 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.9893, allocations: 37.88 kB / 0.8155 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=58): time 1.864e-06/0.9893, allocations: 4 kB / 0.8155 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=58): time 0.004678/0.9939, allocations: 1.693 MB / 0.8172 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.994, allocations: 57.03 kB / 0.8173 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007892/0.9948, allocations: 0.6703 MB / 0.8179 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.129e-05/0.9949, allocations: 36.52 kB / 0.8179 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.9952, allocations: 435 kB / 0.8184 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.9953, allocations: 214.8 kB / 0.8186 GB, free: 9.461 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.9956, allocations: 111.9 kB / 0.8187 GB, free: 9.395 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.9957, allocations: 327.2 kB / 0.819 GB, free: 9.074 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006471/0.9964, allocations: 260 kB / 0.8192 GB, free: 8.949 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006663/0.997, allocations: 311 kB / 0.8195 GB, free: 8.785 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.9983, allocations: 0.5425 MB / 0.8201 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.9983, allocations: 0 / 0.8201 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002713/1.001, allocations: 1.033 MB / 0.8211 GB, free: 8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/1.001, allocations: 4.906 kB / 0.8211 GB, free: 8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/1.001, allocations: 5.953 kB / 0.8211 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008004/1.002, allocations: 229.5 kB / 0.8213 GB, free: 7.875 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007317/1.003, allocations: 147 kB / 0.8214 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005935/1.009, allocations: 5.102 MB / 0.8264 GB, free: 3.027 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/1.009, allocations: 73.42 kB / 0.8265 GB, free: 2.98 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.385e-05/1.009, allocations: 36.73 kB / 0.8265 GB, free: 2.973 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (58): * Single equations (assignments): 55 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004023/1.01, allocations: 221 kB / 0.8267 GB, free: 2.789 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/1.01, allocations: 87.09 kB / 0.8268 GB, free: 2.742 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003546/1.014, allocations: 1.394 MB / 0.8282 GB, free: 1.738 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/1.014, allocations: 7.938 kB / 0.8282 GB, free: 1.73 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/1.014, allocations: 7.938 kB / 0.8282 GB, free: 1.723 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/1.014, allocations: 3.984 kB / 0.8282 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004479/1.018, allocations: 2.075 MB / 0.8302 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/1.018, allocations: 8.031 kB / 0.8302 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007417/1.019, allocations: 134.1 kB / 0.8304 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007686/1.02, allocations: 241.4 kB / 0.8306 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.892e-05/1.02, allocations: 27.92 kB / 0.8306 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00576/1.025, allocations: 5.103 MB / 0.8356 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.025, allocations: 4.031 kB / 0.8356 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/1.029, allocations: 1.4 MB / 0.837 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003402/1.029, allocations: 216.4 kB / 0.8372 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/1.029, allocations: 15.94 kB / 0.8372 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004762/1.03, allocations: 39.97 kB / 0.8372 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/1.03, allocations: 52.36 kB / 0.8373 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.67e-05/1.03, allocations: 35.98 kB / 0.8373 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006171/1.031, allocations: 482.2 kB / 0.8378 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.031, allocations: 0 / 0.8378 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001209/1.032, allocations: 403 kB / 0.8382 GB, free: 7.012 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,flowResistanceB.inlet.m_flow,flowResistanceA.inlet.m_flow) * 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 (50): * Single equations (assignments): 47 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001031/1.033, allocations: 0.5193 MB / 0.8387 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002404/1.035, allocations: 1.07 MB / 0.8397 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.035, allocations: 0 / 0.8397 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001707/1.037, allocations: 0.7961 MB / 0.8405 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/1.038, allocations: 219.2 kB / 0.8407 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003254/1.042, allocations: 1.809 MB / 0.8425 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/1.042, allocations: 0.9971 MB / 0.8434 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0009273/1.043, allocations: 450.5 kB / 0.8439 GB, free: 1.102 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003083/1.043, allocations: 111.4 kB / 0.844 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/1.043, allocations: 0 / 0.844 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of Templates: time 0.0262/1.07, allocations: 16.56 MB / 0.8601 GB, free: 0.6133 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches