Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.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.CrossFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|crossFlowNTU.h_out_A|crossFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|crossFlowNTU.h_out_A|crossFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009378/0.0009378, allocations: 169.4 kB / 16.1 MB, free: 5.664 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.172/1.172, allocations: 205 MB / 221.9 MB, free: 9.141 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.0007277/0.0007277, allocations: 90.34 kB / 269.9 MB, free: 8.664 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.5873/0.5873, allocations: 90.5 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.0002695/0.0002695, allocations: 12.22 kB / 484.8 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2271, allocations: 65.81 MB / 0.5377 GB, free: 34.88 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.3879/0.615, allocations: 221.9 MB / 0.7544 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01606/0.6311, allocations: 18.94 MB / 0.7729 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001026/0.6322, allocations: 24.02 kB / 0.773 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.6334, allocations: 484 kB / 0.7734 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.003313/0.6367, allocations: 1.445 MB / 0.7748 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.006002/0.6427, allocations: 2.41 MB / 0.7772 GB, free: 10.94 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001512/0.6443, allocations: 1.675 MB / 0.7788 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.6446, allocations: 238.6 kB / 0.779 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.6462, allocations: 1.005 MB / 0.78 GB, free: 9.66 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004585/0.6467, allocations: 0.514 MB / 0.7805 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 7.81e-05/0.6468, allocations: 41.66 kB / 0.7806 GB, free: 9.406 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00854/0.6553, allocations: 5.463 MB / 0.7859 GB, free: 5.848 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.6555, allocations: 161.9 kB / 0.7861 GB, free: 5.695 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0004477/0.6559, allocations: 478.7 kB / 0.7865 GB, free: 5.234 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002797/0.6587, allocations: 2.058 MB / 0.7885 GB, free: 3.344 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.6588, allocations: 4 kB / 0.7885 GB, free: 3.34 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6588, allocations: 4 kB / 0.7885 GB, free: 3.336 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.348e-06/0.6588, allocations: 0 / 0.7885 GB, free: 3.336 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.002714/0.6615, allocations: 1.582 MB / 0.7901 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.6615, allocations: 12.03 kB / 0.7901 GB, free: 1.699 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001548/0.6631, allocations: 238.5 kB / 0.7903 GB, free: 1.465 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007606/0.6639, allocations: 0.5821 MB / 0.7909 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.6641, allocations: 208.7 kB / 0.7911 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.6642, allocations: 84 kB / 0.7912 GB, free: 0.543 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.6659, allocations: 0.9758 MB / 0.7921 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.6659, allocations: 0 / 0.7921 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/0.666, allocations: 39.98 kB / 0.7922 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.666, allocations: 27.94 kB / 0.7922 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.6676, allocations: 0.7807 MB / 0.7929 GB, free: 14.7 MB / 0.5261 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.004049/0.6717, allocations: 3.659 MB / 0.7965 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001889/0.6736, allocations: 0.9486 MB / 0.7974 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007706/0.6743, allocations: 463.8 kB / 0.7979 GB, free: 9.359 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002333/0.6767, allocations: 3.115 MB / 0.8009 GB, free: 5.645 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.6767, allocations: 39.22 kB / 0.801 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=83): time 2.144e-06/0.6767, allocations: 0 / 0.801 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of matching and sorting (n=83): time 0.005243/0.682, allocations: 2.209 MB / 0.8031 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.682, allocations: 60.06 kB / 0.8032 GB, free: 3.238 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.6825, allocations: 0.4953 MB / 0.8037 GB, free: 2.734 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.725e-05/0.6826, allocations: 37.7 kB / 0.8037 GB, free: 2.691 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.6828, allocations: 376.4 kB / 0.8041 GB, free: 2.316 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.683, allocations: 298.2 kB / 0.8043 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.329e-05/0.6831, allocations: 12 kB / 0.8044 GB, free: 2.016 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.6832, allocations: 382.8 kB / 0.8047 GB, free: 1.633 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006585/0.6839, allocations: 345.8 kB / 0.805 GB, free: 1.297 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007248/0.6846, allocations: 427.1 kB / 0.8055 GB, free: 0.8672 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.6861, allocations: 0.7572 MB / 0.8062 GB, free: 100 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.6861, allocations: 7.938 kB / 0.8062 GB, free: 92 kB / 0.5261 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002925/0.689, allocations: 1.342 MB / 0.8075 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.6891, allocations: 4 kB / 0.8075 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.6891, allocations: 4 kB / 0.8075 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007483/0.6898, allocations: 274.4 kB / 0.8078 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008548/0.6907, allocations: 199.8 kB / 0.808 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005305/0.696, allocations: 5.02 MB / 0.8129 GB, free: 8.824 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000559/0.6966, allocations: 103.4 kB / 0.813 GB, free: 8.723 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-05/0.6967, allocations: 59.98 kB / 0.813 GB, free: 8.664 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.0003134/0.697, allocations: 203.6 kB / 0.8132 GB, free: 8.457 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.6972, allocations: 79 kB / 0.8133 GB, free: 8.379 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003862/0.701, allocations: 1.632 MB / 0.8149 GB, free: 6.73 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.7011, allocations: 8 kB / 0.8149 GB, free: 6.723 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.7011, allocations: 7.938 kB / 0.8149 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.7011, allocations: 7.984 kB / 0.8149 GB, free: 6.707 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004397/0.7055, allocations: 2.539 MB / 0.8174 GB, free: 4.117 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.7055, allocations: 8.062 kB / 0.8174 GB, free: 4.109 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009088/0.7064, allocations: 207.5 kB / 0.8176 GB, free: 3.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006926/0.7071, allocations: 286.2 kB / 0.8179 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.807e-05/0.7072, allocations: 39.98 kB / 0.8179 GB, free: 3.582 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005141/0.7124, allocations: 5.017 MB / 0.8228 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.7124, allocations: 4.125 kB / 0.8228 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003746/0.7161, allocations: 1.901 MB / 0.8247 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003254/0.7165, allocations: 247.8 kB / 0.8249 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.974e-05/0.7166, allocations: 20 kB / 0.8249 GB, free: 11.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005251/0.7171, allocations: 67.86 kB / 0.825 GB, free: 11.88 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.7173, allocations: 76.84 kB / 0.8251 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.092e-05/0.7174, allocations: 67.97 kB / 0.8251 GB, free: 11.73 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003394/0.7177, allocations: 342.8 kB / 0.8255 GB, free: 11.4 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7177, allocations: 0 / 0.8255 GB, free: 11.4 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001474/0.7192, allocations: 0.6945 MB / 0.8261 GB, free: 10.71 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (crossFlowNTU.h_out_A,crossFlowNTU.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 (83): * Single equations (assignments): 78 * 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.001715/0.7209, allocations: 1.032 MB / 0.8271 GB, free: 9.734 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002512/0.7234, allocations: 1.439 MB / 0.8285 GB, free: 8.242 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.7235, allocations: 3.938 kB / 0.8286 GB, free: 8.238 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.7251, allocations: 1.062 MB / 0.8296 GB, free: 7.133 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009434/0.7261, allocations: 202.6 kB / 0.8298 GB, free: 6.934 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003463/0.7296, allocations: 2.484 MB / 0.8322 GB, free: 4.418 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.7301, allocations: 0.9976 MB / 0.8332 GB, free: 3.391 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.7305, allocations: 143.4 kB / 0.8333 GB, free: 3.25 MB / 0.5573 GB Notification: Performance of SimCode: time 4.41e-07/0.7306, allocations: 0 / 0.8333 GB, free: 3.25 MB / 0.5573 GB Notification: Performance of Templates: time 0.03189/0.7624, allocations: 30.34 MB / 0.8629 GB, free: 4.949 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches