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.005769/0.005769, allocations: 168.2 kB / 15.13 MB, free: 6.023 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.355/1.355, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0007392/0.0007392, allocations: 82.31 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6642/0.6642, allocations: 90.6 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003165/0.0003165, allocations: 8 kB / 485.3 MB, free: 2.055 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.339, allocations: 66.27 MB / 0.5386 GB, free: 45.51 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.2201/0.5592, allocations: 205.6 MB / 0.7394 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.3367/0.8959, allocations: 17.39 MB / 0.7564 GB, free: 6.789 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001158/0.8971, allocations: 19.41 kB / 0.7564 GB, free: 6.789 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.8983, allocations: 455.7 kB / 0.7569 GB, free: 6.785 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.003921/0.9022, allocations: 1.407 MB / 0.7582 GB, free: 6.773 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006268/0.9085, allocations: 2.219 MB / 0.7604 GB, free: 6.75 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001771/0.9103, allocations: 1.485 MB / 0.7618 GB, free: 6.746 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.9107, allocations: 220.1 kB / 0.7621 GB, free: 6.699 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001834/0.9125, allocations: 0.9605 MB / 0.763 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005225/0.9131, allocations: 496.3 kB / 0.7635 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 8.247e-05/0.9132, allocations: 43.25 kB / 0.7635 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01272/0.9259, allocations: 4.966 MB / 0.7684 GB, free: 6.645 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004704/0.9264, allocations: 163.1 kB / 0.7685 GB, free: 6.645 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.9274, allocations: 206 kB / 0.7687 GB, free: 22.61 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.005543/0.933, allocations: 1.977 MB / 0.7706 GB, free: 22.47 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.933, allocations: 0.5156 kB / 0.7706 GB, free: 22.47 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.695e-06/0.933, allocations: 0.875 kB / 0.7706 GB, free: 22.47 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.124e-05/0.933, allocations: 0 / 0.7706 GB, free: 22.47 MB / 0.573 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.005163/0.9382, allocations: 1.6 MB / 0.7722 GB, free: 21.58 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.9383, allocations: 9.5 kB / 0.7722 GB, free: 21.58 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00202/0.9403, allocations: 241.5 kB / 0.7724 GB, free: 21.52 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.9416, allocations: 0.5537 MB / 0.773 GB, free: 21.26 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002748/0.9419, allocations: 202 kB / 0.7732 GB, free: 21.13 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/0.9421, allocations: 85.58 kB / 0.7733 GB, free: 21.13 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002404/0.9445, allocations: 0.989 MB / 0.7742 GB, free: 21.02 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.9445, allocations: 0 / 0.7742 GB, free: 21.02 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.515e-05/0.9446, allocations: 32.44 kB / 0.7743 GB, free: 21.02 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.299e-05/0.9447, allocations: 22.97 kB / 0.7743 GB, free: 21.02 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001925/0.9466, allocations: 0.7844 MB / 0.775 GB, free: 21.01 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005577/0.9522, allocations: 3.679 MB / 0.7786 GB, free: 19.03 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/0.9545, allocations: 0.9341 MB / 0.7795 GB, free: 18.98 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009992/0.9555, allocations: 462.1 kB / 0.78 GB, free: 18.97 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003224/0.9588, allocations: 3.11 MB / 0.783 GB, free: 15.87 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.9588, allocations: 45.56 kB / 0.7831 GB, free: 15.82 MB / 0.573 GB Notification: Performance of pre-optimization done (n=83): time 3.446e-06/0.9588, allocations: 0 / 0.7831 GB, free: 15.82 MB / 0.573 GB Notification: Performance of matching and sorting (n=83): time 0.006527/0.9654, allocations: 2.213 MB / 0.7852 GB, free: 15.38 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/0.9655, allocations: 59.56 kB / 0.7853 GB, free: 15.32 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007338/0.9662, allocations: 490.3 kB / 0.7858 GB, free: 15.21 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.506e-05/0.9663, allocations: 39.14 kB / 0.7858 GB, free: 15.18 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/0.9666, allocations: 382 kB / 0.7862 GB, free: 15 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/0.9669, allocations: 294.2 kB / 0.7864 GB, free: 14.81 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.141e-05/0.9669, allocations: 13.62 kB / 0.7864 GB, free: 14.81 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.9671, allocations: 388.1 kB / 0.7868 GB, free: 14.49 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008314/0.9679, allocations: 348.5 kB / 0.7872 GB, free: 14.49 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000848/0.9688, allocations: 426.9 kB / 0.7876 GB, free: 14.44 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008622/0.9696, allocations: 369.6 kB / 0.7879 GB, free: 14.43 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.9697, allocations: 1.312 kB / 0.7879 GB, free: 14.43 MB / 0.573 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003941/0.9736, allocations: 1.345 MB / 0.7892 GB, free: 14.27 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.9737, allocations: 5 kB / 0.7892 GB, free: 14.27 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.9737, allocations: 1.719 kB / 0.7892 GB, free: 14.27 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009509/0.9746, allocations: 276.2 kB / 0.7895 GB, free: 14.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009328/0.9756, allocations: 201.5 kB / 0.7897 GB, free: 14.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005557/0.9812, allocations: 5.023 MB / 0.7946 GB, free: 10.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.9823, allocations: 103.1 kB / 0.7947 GB, free: 10.37 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.9826, allocations: 59.78 kB / 0.7947 GB, free: 10.37 MB / 0.573 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,88.9%) 1,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000591/0.9832, allocations: 209 kB / 0.7949 GB, free: 10.25 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.9834, allocations: 78.92 kB / 0.795 GB, free: 10.21 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004072/0.9875, allocations: 1.633 MB / 0.7966 GB, free: 10.03 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.9875, allocations: 16.28 kB / 0.7966 GB, free: 10.02 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.9875, allocations: 0 / 0.7966 GB, free: 10.02 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.9875, allocations: 5.859 kB / 0.7966 GB, free: 10.02 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005168/0.9927, allocations: 2.527 MB / 0.7991 GB, free: 9.59 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.9927, allocations: 2.281 kB / 0.7991 GB, free: 9.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009819/0.9937, allocations: 200.2 kB / 0.7993 GB, free: 9.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008178/0.9946, allocations: 284.8 kB / 0.7996 GB, free: 9.551 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-05/0.9947, allocations: 38.95 kB / 0.7996 GB, free: 9.551 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005976/1.001, allocations: 5.02 MB / 0.8045 GB, free: 5.734 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.001, allocations: 0 / 0.8045 GB, free: 5.734 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004335/1.005, allocations: 1.897 MB / 0.8064 GB, free: 5.449 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/1.005, allocations: 156.4 kB / 0.8065 GB, free: 5.305 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/1.006, allocations: 20.88 kB / 0.8065 GB, free: 5.305 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/1.006, allocations: 68.7 kB / 0.8066 GB, free: 5.293 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/1.006, allocations: 83.3 kB / 0.8067 GB, free: 5.289 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001827/1.007, allocations: 63.23 kB / 0.8067 GB, free: 5.289 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0005067/1.007, allocations: 335.5 kB / 0.8071 GB, free: 5.207 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/1.007, allocations: 0 / 0.8071 GB, free: 5.207 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002892/1.01, allocations: 0.6877 MB / 0.8077 GB, free: 5.105 MB / 0.573 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002768/1.013, allocations: 1.02 MB / 0.8087 GB, free: 4.832 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003191/1.016, allocations: 1.443 MB / 0.8101 GB, free: 4.379 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.016, allocations: 0 / 0.8101 GB, free: 4.379 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002043/1.018, allocations: 1.055 MB / 0.8112 GB, free: 3.965 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/1.02, allocations: 210.9 kB / 0.8114 GB, free: 3.941 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/1.024, allocations: 2.504 MB / 0.8138 GB, free: 2.676 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006123/1.024, allocations: 0.9971 MB / 0.8148 GB, free: 1.957 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001224/1.025, allocations: 235.2 kB / 0.815 GB, free: 1.883 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/1.026, allocations: 116.6 kB / 0.8151 GB, free: 1.867 MB / 0.573 GB Notification: Performance of SimCode: time 6.81e-07/1.026, allocations: 0 / 0.8151 GB, free: 1.867 MB / 0.573 GB Notification: Performance of Templates: time 0.03625/1.062, allocations: 22.18 MB / 0.8368 GB, free: 3.316 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