Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009453/0.0009454, allocations: 171 kB / 16.1 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.149/1.149, allocations: 205 MB / 221.9 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006826/0.0006827, allocations: 86.36 kB / 269.9 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6058/0.6058, allocations: 90.51 MB / 408.3 MB, free: 3.938 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000281/0.000281, allocations: 12.28 kB / 484.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2296, allocations: 65.81 MB / 0.5377 GB, free: 34.9 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.4108/0.6404, allocations: 221.9 MB / 0.7545 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01622/0.6567, allocations: 18.94 MB / 0.773 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.6578, allocations: 25.75 kB / 0.773 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.659, allocations: 486.1 kB / 0.7734 GB, free: 12.59 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.00333/0.6624, allocations: 1.445 MB / 0.7749 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.005882/0.6683, allocations: 2.402 MB / 0.7772 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001432/0.6697, allocations: 1.67 MB / 0.7788 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.67, allocations: 247.6 kB / 0.7791 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.6716, allocations: 1.011 MB / 0.7801 GB, free: 9.656 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004415/0.672, allocations: 0.5156 MB / 0.7806 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 7.494e-05/0.6721, allocations: 41.75 kB / 0.7806 GB, free: 9.402 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007869/0.68, allocations: 5.451 MB / 0.7859 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.6801, allocations: 165.4 kB / 0.7861 GB, free: 5.676 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0003626/0.6805, allocations: 480 kB / 0.7865 GB, free: 5.211 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002326/0.6828, allocations: 2.053 MB / 0.7885 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.6828, allocations: 0 / 0.7885 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6828, allocations: 4 kB / 0.7885 GB, free: 3.32 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.117e-05/0.6829, allocations: 0 / 0.7885 GB, free: 3.32 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002577/0.6854, allocations: 1.581 MB / 0.7901 GB, free: 1.695 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.6855, allocations: 12.03 kB / 0.7901 GB, free: 1.684 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.687, allocations: 242.2 kB / 0.7903 GB, free: 1.449 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007312/0.6878, allocations: 0.5863 MB / 0.7909 GB, free: 0.8359 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.688, allocations: 196.8 kB / 0.7911 GB, free: 0.6172 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.6881, allocations: 87.91 kB / 0.7912 GB, free: 0.5312 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.6897, allocations: 0.9914 MB / 0.7921 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.6897, allocations: 3.938 kB / 0.7921 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.405e-05/0.6898, allocations: 39.98 kB / 0.7922 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.6899, allocations: 27.92 kB / 0.7922 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.6914, allocations: 0.7885 MB / 0.793 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003788/0.6952, allocations: 3.67 MB / 0.7966 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.697, allocations: 0.9449 MB / 0.7975 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007543/0.6978, allocations: 459.9 kB / 0.7979 GB, free: 9.32 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002128/0.6999, allocations: 3.104 MB / 0.801 GB, free: 5.613 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.7, allocations: 43.22 kB / 0.801 GB, free: 5.559 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=83): time 3.396e-06/0.7, allocations: 4 kB / 0.801 GB, free: 5.555 MB / 0.5261 GB Notification: Performance of matching and sorting (n=83): time 0.005151/0.7051, allocations: 2.209 MB / 0.8032 GB, free: 3.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.7052, allocations: 68 kB / 0.8032 GB, free: 3.191 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004431/0.7056, allocations: 0.4913 MB / 0.8037 GB, free: 2.691 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.871e-05/0.7057, allocations: 33.7 kB / 0.8037 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.7059, allocations: 387.3 kB / 0.8041 GB, free: 2.27 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.7061, allocations: 290.8 kB / 0.8044 GB, free: 1.988 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.7061, allocations: 12 kB / 0.8044 GB, free: 1.977 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.7063, allocations: 386.8 kB / 0.8048 GB, free: 1.59 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006784/0.707, allocations: 345.8 kB / 0.8051 GB, free: 1.254 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007199/0.7077, allocations: 427.1 kB / 0.8055 GB, free: 0.8242 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.7091, allocations: 0.7727 MB / 0.8063 GB, free: 40 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.7091, allocations: 4 kB / 0.8063 GB, free: 36 kB / 0.5261 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002915/0.7121, allocations: 1.354 MB / 0.8076 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.7121, allocations: 4 kB / 0.8076 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.7121, allocations: 0 / 0.8076 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007405/0.7128, allocations: 278.5 kB / 0.8079 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008341/0.7137, allocations: 199.7 kB / 0.808 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005057/0.7188, allocations: 5.021 MB / 0.8129 GB, free: 8.754 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005582/0.7193, allocations: 107.5 kB / 0.813 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.853e-05/0.7194, allocations: 67.97 kB / 0.8131 GB, free: 8.582 MB / 0.5417 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 (80): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002787/0.7197, allocations: 207.6 kB / 0.8133 GB, free: 8.371 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.7199, allocations: 71.09 kB / 0.8134 GB, free: 8.301 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/0.7237, allocations: 1.634 MB / 0.815 GB, free: 6.656 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.7237, allocations: 11.94 kB / 0.815 GB, free: 6.645 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.7237, allocations: 4 kB / 0.815 GB, free: 6.641 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.7237, allocations: 3.984 kB / 0.815 GB, free: 6.637 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004315/0.728, allocations: 2.535 MB / 0.8175 GB, free: 4.055 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.7281, allocations: 0 / 0.8175 GB, free: 4.055 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008904/0.729, allocations: 207.8 kB / 0.8177 GB, free: 3.852 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006808/0.7297, allocations: 286.2 kB / 0.8179 GB, free: 3.562 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.668e-05/0.7297, allocations: 43.91 kB / 0.818 GB, free: 3.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00514/0.7349, allocations: 5.021 MB / 0.8229 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7349, allocations: 3.938 kB / 0.8229 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003705/0.7386, allocations: 1.901 MB / 0.8247 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.7387, allocations: 155.9 kB / 0.8249 GB, free: 11.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.858e-05/0.7389, allocations: 20.19 kB / 0.8249 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00051/0.7394, allocations: 63.95 kB / 0.825 GB, free: 11.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.7395, allocations: 84.83 kB / 0.8251 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.9e-05/0.7396, allocations: 63.97 kB / 0.8251 GB, free: 11.76 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003232/0.7399, allocations: 338.8 kB / 0.8254 GB, free: 11.43 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.242e-06/0.74, allocations: 0 / 0.8254 GB, free: 11.43 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001395/0.7414, allocations: 0.6904 MB / 0.8261 GB, free: 10.74 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001872/0.7432, allocations: 1.031 MB / 0.8271 GB, free: 9.773 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002499/0.7457, allocations: 1.437 MB / 0.8285 GB, free: 8.281 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7458, allocations: 0 / 0.8285 GB, free: 8.281 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.7474, allocations: 1.067 MB / 0.8296 GB, free: 7.168 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009253/0.7484, allocations: 198.6 kB / 0.8298 GB, free: 6.973 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003465/0.7518, allocations: 2.471 MB / 0.8322 GB, free: 4.473 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/0.7524, allocations: 0.9937 MB / 0.8331 GB, free: 3.449 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004816/0.7529, allocations: 151.3 kB / 0.8333 GB, free: 3.301 MB / 0.5573 GB Notification: Performance of SimCode: time 3.5e-07/0.7529, allocations: 0 / 0.8333 GB, free: 3.301 MB / 0.5573 GB Notification: Performance of Templates: time 0.03017/0.783, allocations: 30.3 MB / 0.8629 GB, free: 5.059 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches