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.001252/0.001253, allocations: 172 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.633/1.633, allocations: 205.3 MB / 213.4 MB, free: 13.76 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.0008078/0.0008078, allocations: 93.31 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.8026/0.8026, allocations: 90.36 MB / 399.7 MB, free: 12.11 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.099e-05/2.102e-05, allocations: 8 kB / 472.2 MB, free: 3.449 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3883, allocations: 66.25 MB / 0.5258 GB, free: 29.08 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.833/2.222, allocations: 0.7559 GB / 1.282 GB, free: 87.54 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/2.222, allocations: 76.97 kB / 1.282 GB, free: 87.51 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.851/4.073, allocations: 0.5264 GB / 1.808 GB, free: 35.63 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.633e-06/4.073, allocations: 0 / 1.808 GB, free: 35.63 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.594e-05/4.073, allocations: 35.98 kB / 1.808 GB, free: 35.6 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.01007/4.083, allocations: 2.645 MB / 1.811 GB, free: 32.9 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/4.083, allocations: 8.031 kB / 1.811 GB, free: 32.89 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001931/4.085, allocations: 238.5 kB / 1.811 GB, free: 32.66 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008913/4.086, allocations: 0.5645 MB / 1.812 GB, free: 32.05 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/4.086, allocations: 164.8 kB / 1.812 GB, free: 31.87 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/4.086, allocations: 56 kB / 1.812 GB, free: 31.81 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001008/4.087, allocations: 0.6053 MB / 1.812 GB, free: 31.21 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/4.089, allocations: 0.7729 MB / 1.813 GB, free: 30.41 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/4.089, allocations: 0 / 1.813 GB, free: 30.41 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/4.089, allocations: 0 / 1.813 GB, free: 30.41 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/4.089, allocations: 20 kB / 1.813 GB, free: 30.39 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003531/4.092, allocations: 3.502 MB / 1.817 GB, free: 26.6 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009917/4.093, allocations: 0.7412 MB / 1.817 GB, free: 25.84 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004121/4.094, allocations: 359.7 kB / 1.818 GB, free: 25.49 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007113/4.094, allocations: 1.13 MB / 1.819 GB, free: 24.12 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/4.094, allocations: 35.34 kB / 1.819 GB, free: 24.07 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=83): time 2.715e-06/4.094, allocations: 4 kB / 1.819 GB, free: 24.07 MB / 0.5886 GB Notification: Performance of matching and sorting (n=83): time 0.003006/4.097, allocations: 1.087 MB / 1.82 GB, free: 22.97 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/4.097, allocations: 60.19 kB / 1.82 GB, free: 22.9 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/4.098, allocations: 370.2 kB / 1.82 GB, free: 22.53 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 6.057e-05/4.098, allocations: 25.7 kB / 1.82 GB, free: 22.5 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/4.098, allocations: 392.1 kB / 1.821 GB, free: 22.11 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/4.098, allocations: 271.9 kB / 1.821 GB, free: 21.84 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/4.098, allocations: 3.938 kB / 1.821 GB, free: 21.84 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001113/4.098, allocations: 378.8 kB / 1.821 GB, free: 21.46 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/4.099, allocations: 249.5 kB / 1.822 GB, free: 21.21 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003796/4.099, allocations: 319.3 kB / 1.822 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/4.1, allocations: 360.3 kB / 1.822 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/4.1, allocations: 3.953 kB / 1.822 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002777/4.103, allocations: 1.153 MB / 1.823 GB, free: 19.36 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/4.103, allocations: 7.984 kB / 1.823 GB, free: 19.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/4.103, allocations: 4 kB / 1.823 GB, free: 19.35 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005084/4.104, allocations: 178.5 kB / 1.824 GB, free: 19.16 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008314/4.105, allocations: 195.7 kB / 1.824 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/4.108, allocations: 4.484 MB / 1.828 GB, free: 14.14 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006596/4.109, allocations: 83.38 kB / 1.828 GB, free: 14.05 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/4.109, allocations: 55.98 kB / 1.828 GB, free: 14 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 (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.0001573/4.109, allocations: 112.9 kB / 1.828 GB, free: 13.88 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/4.109, allocations: 71.16 kB / 1.828 GB, free: 13.81 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003856/4.113, allocations: 1.485 MB / 1.83 GB, free: 12.33 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/4.113, allocations: 8 kB / 1.83 GB, free: 12.32 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/4.113, allocations: 4 kB / 1.83 GB, free: 12.32 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/4.113, allocations: 7.922 kB / 1.83 GB, free: 12.31 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004202/4.117, allocations: 2.233 MB / 1.832 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/4.117, allocations: 0 / 1.832 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008879/4.118, allocations: 203.8 kB / 1.832 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000422/4.119, allocations: 174.4 kB / 1.832 GB, free: 9.633 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.935e-05/4.119, allocations: 35.92 kB / 1.833 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003278/4.122, allocations: 4.48 MB / 1.837 GB, free: 4.777 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/4.122, allocations: 7.969 kB / 1.837 GB, free: 4.77 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003541/4.126, allocations: 1.676 MB / 1.839 GB, free: 3.047 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001782/4.126, allocations: 148 kB / 1.839 GB, free: 2.883 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/4.126, allocations: 8.062 kB / 1.839 GB, free: 2.875 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004978/4.126, allocations: 51.91 kB / 1.839 GB, free: 2.824 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/4.127, allocations: 76.61 kB / 1.839 GB, free: 2.746 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.314e-05/4.127, allocations: 63.91 kB / 1.839 GB, free: 2.684 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0002926/4.127, allocations: 279 kB / 1.839 GB, free: 2.41 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/4.127, allocations: 0 / 1.839 GB, free: 2.41 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003206/4.13, allocations: 0.8577 MB / 1.84 GB, free: 1.551 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (counterFlowNTU.inletB.m_flow,counterFlowNTU.h_out_A,counterFlowNTU.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 (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.4132/4.543, allocations: 2.084 MB / 1.842 GB, free: 74.02 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002579/4.546, allocations: 1.214 MB / 1.843 GB, free: 73.66 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/4.546, allocations: 3.938 kB / 1.843 GB, free: 73.66 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00159/4.548, allocations: 0.9549 MB / 1.844 GB, free: 73.28 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/4.549, allocations: 164.2 kB / 1.844 GB, free: 73.28 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/4.552, allocations: 1.493 MB / 1.846 GB, free: 72.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005615/4.552, allocations: 1.015 MB / 1.847 GB, free: 72.2 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001234/4.554, allocations: 276 kB / 1.847 GB, free: 72.19 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004065/4.554, allocations: 109 kB / 1.847 GB, free: 72.18 MB / 0.5886 GB Notification: Performance of SimCode: time 1.233e-06/4.554, allocations: 0 / 1.847 GB, free: 72.18 MB / 0.5886 GB Notification: Performance of Templates: time 0.04745/4.602, allocations: 25.02 MB / 1.872 GB, free: 71.5 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