Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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_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_OM_adaptions_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_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00143/0.00143, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.3 MB / 213.4 MB, free: 13.71 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.0008628/0.0008626, allocations: 101.9 kB / 261.4 MB, free: 13.44 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.7606/0.7606, allocations: 90.36 MB / 399.7 MB, free: 12.13 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.72e-05, allocations: 0 / 472.2 MB, free: 3.488 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3658, allocations: 66.27 MB / 0.5258 GB, free: 29.02 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.685/2.051, allocations: 0.756 GB / 1.282 GB, free: 87.36 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/2.051, allocations: 86.56 kB / 1.282 GB, free: 87.32 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.6/4.651, allocations: 0.6686 GB / 1.951 GB, free: 60.23 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.973e-06/4.652, allocations: 0 / 1.951 GB, free: 60.23 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 9.945e-05/4.652, allocations: 41.39 kB / 1.951 GB, free: 60.22 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 286 * Number of variables: 286 Notification: Performance of Generate backend data structure: time 0.01338/4.665, allocations: 3.351 MB / 1.954 GB, free: 58.33 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/4.665, allocations: 10.22 kB / 1.954 GB, free: 58.33 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002915/4.668, allocations: 342.3 kB / 1.954 GB, free: 58.26 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/4.669, allocations: 0.6852 MB / 1.955 GB, free: 57.93 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003225/4.67, allocations: 307.6 kB / 1.955 GB, free: 57.68 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001919/4.67, allocations: 74.16 kB / 1.955 GB, free: 57.67 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001629/4.672, allocations: 0.8813 MB / 1.956 GB, free: 57.66 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/4.673, allocations: 1.05 MB / 1.957 GB, free: 57.54 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/4.673, allocations: 0 / 1.957 GB, free: 57.54 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-05/4.674, allocations: 10.39 kB / 1.957 GB, free: 57.54 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.51e-05/4.674, allocations: 26.62 kB / 1.957 GB, free: 57.54 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005833/4.679, allocations: 4.709 MB / 1.962 GB, free: 55.04 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/4.681, allocations: 1.044 MB / 1.963 GB, free: 55 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006672/4.682, allocations: 493.6 kB / 1.963 GB, free: 54.99 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001168/4.683, allocations: 1.561 MB / 1.965 GB, free: 53.29 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/4.683, allocations: 52.91 kB / 1.965 GB, free: 53.25 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=112): time 4.348e-06/4.683, allocations: 0 / 1.965 GB, free: 53.25 MB / 0.5886 GB Notification: Performance of matching and sorting (n=112): time 0.004879/4.688, allocations: 1.649 MB / 1.966 GB, free: 53.08 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/4.688, allocations: 61.84 kB / 1.966 GB, free: 53.02 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005718/4.688, allocations: 432.1 kB / 1.967 GB, free: 52.89 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.345e-05/4.688, allocations: 25.7 kB / 1.967 GB, free: 52.86 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002781/4.689, allocations: 480.4 kB / 1.967 GB, free: 52.64 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/4.689, allocations: 376.3 kB / 1.968 GB, free: 52.39 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/4.689, allocations: 0 / 1.968 GB, free: 52.39 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001333/4.689, allocations: 396.1 kB / 1.968 GB, free: 52.08 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/4.69, allocations: 367.4 kB / 1.968 GB, free: 52.08 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005784/4.69, allocations: 440.4 kB / 1.969 GB, free: 52.03 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001593/4.692, allocations: 495.5 kB / 1.969 GB, free: 52.02 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/4.692, allocations: 0 / 1.969 GB, free: 52.02 MB / 0.5886 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.004425/4.696, allocations: 1.725 MB / 1.971 GB, free: 51.85 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/4.697, allocations: 10.2 kB / 1.971 GB, free: 51.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/4.697, allocations: 0 / 1.971 GB, free: 51.85 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007224/4.697, allocations: 269.6 kB / 1.971 GB, free: 51.81 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/4.699, allocations: 289.2 kB / 1.972 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006297/4.705, allocations: 6.241 MB / 1.978 GB, free: 46.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/4.707, allocations: 132.9 kB / 1.978 GB, free: 46.91 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002123/4.707, allocations: 75.55 kB / 1.978 GB, free: 46.91 MB / 0.5886 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 100 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 1,(3,88.9%) 1,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000328/4.707, allocations: 118.4 kB / 1.978 GB, free: 46.79 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003474/4.708, allocations: 87.92 kB / 1.978 GB, free: 46.75 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006632/4.714, allocations: 2.16 MB / 1.98 GB, free: 46.59 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/4.714, allocations: 15.75 kB / 1.98 GB, free: 46.59 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/4.714, allocations: 2.875 kB / 1.98 GB, free: 46.59 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/4.714, allocations: 11.48 kB / 1.98 GB, free: 46.59 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007368/4.722, allocations: 3.128 MB / 1.983 GB, free: 46.14 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/4.722, allocations: 0 / 1.983 GB, free: 46.14 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/4.723, allocations: 303.9 kB / 1.984 GB, free: 46.13 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007402/4.724, allocations: 266.5 kB / 1.984 GB, free: 46.1 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/4.724, allocations: 37.11 kB / 1.984 GB, free: 46.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006487/4.731, allocations: 6.251 MB / 1.99 GB, free: 41.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/4.731, allocations: 3.562 kB / 1.99 GB, free: 41.25 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005964/4.737, allocations: 2.396 MB / 1.992 GB, free: 40.91 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/4.737, allocations: 173.3 kB / 1.992 GB, free: 40.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/4.737, allocations: 2.188 kB / 1.992 GB, free: 40.76 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007788/4.738, allocations: 103.3 kB / 1.993 GB, free: 40.75 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/4.738, allocations: 100.8 kB / 1.993 GB, free: 40.74 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/4.738, allocations: 80.92 kB / 1.993 GB, free: 40.74 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003823/4.739, allocations: 327.9 kB / 1.993 GB, free: 40.65 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.4e-07/4.739, allocations: 0 / 1.993 GB, free: 40.65 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.004134/4.743, allocations: 1.063 MB / 1.994 GB, free: 40.41 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 8 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.inletB.m_flow,counterFlowNTU1.h_out_A,counterFlowNTU1.h_out_B,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 101 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(3,88.9%) 1,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004738/4.748, allocations: 2.508 MB / 1.997 GB, free: 39.81 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003295/4.751, allocations: 1.772 MB / 1.998 GB, free: 39.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/4.751, allocations: 0 / 1.998 GB, free: 39.29 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002289/4.753, allocations: 1.368 MB / 2 GB, free: 38.77 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/4.755, allocations: 184.4 kB / 2 GB, free: 38.77 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/4.758, allocations: 1.973 MB / 2.002 GB, free: 38.08 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/4.759, allocations: 1.113 MB / 2.003 GB, free: 37.36 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.00157/4.76, allocations: 361.4 kB / 2.003 GB, free: 37.26 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004595/4.761, allocations: 142.7 kB / 2.003 GB, free: 37.24 MB / 0.5886 GB Notification: Performance of SimCode: time 1.162e-06/4.761, allocations: 0 / 2.003 GB, free: 37.24 MB / 0.5886 GB Notification: Performance of Templates: time 0.04669/4.807, allocations: 31.28 MB / 2.034 GB, free: 16.2 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches