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.01156/0.01156, allocations: 171.9 kB / 15.12 MB, free: 5.555 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.981/1.981, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.001095/0.001095, allocations: 90.86 kB / 269.6 MB, free: 13.35 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.7932/0.7932, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003104, allocations: 8 kB / 485.2 MB, free: 2.051 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3958, allocations: 66.27 MB / 0.5386 GB, free: 45.55 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.1992/0.5951, allocations: 166.6 MB / 0.7012 GB, free: 5.039 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.02101/0.6162, allocations: 16.8 MB / 0.7176 GB, free: 4.203 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.6176, allocations: 19.88 kB / 0.7177 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001473/0.6191, allocations: 449.8 kB / 0.7181 GB, free: 3.742 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.004871/0.624, allocations: 1.457 MB / 0.7195 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.00651/0.6305, allocations: 2.224 MB / 0.7217 GB, free: 80 kB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00181/0.6323, allocations: 0.9243 MB / 0.7226 GB, free: 15.15 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.6327, allocations: 229.5 kB / 0.7228 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.6343, allocations: 0.8493 MB / 0.7236 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004418/0.6347, allocations: 434 kB / 0.7241 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 7.755e-05/0.6348, allocations: 40 kB / 0.7241 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007795/0.6426, allocations: 4.241 MB / 0.7282 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.6428, allocations: 159.3 kB / 0.7284 GB, free: 9.199 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.643, allocations: 209.1 kB / 0.7286 GB, free: 8.988 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.003119/0.6462, allocations: 1.892 MB / 0.7304 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.6462, allocations: 0 / 0.7304 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.383e-06/0.6462, allocations: 0 / 0.7304 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.6462, allocations: 4 kB / 0.7304 GB, free: 7.094 MB / 0.5417 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.003117/0.6493, allocations: 1.579 MB / 0.732 GB, free: 5.465 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.6494, allocations: 12.03 kB / 0.732 GB, free: 5.453 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.651, allocations: 239.5 kB / 0.7322 GB, free: 5.219 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009146/0.6519, allocations: 0.5472 MB / 0.7328 GB, free: 4.633 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002133/0.6521, allocations: 196.7 kB / 0.7329 GB, free: 4.414 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.6523, allocations: 91.98 kB / 0.733 GB, free: 4.324 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001752/0.654, allocations: 0.9758 MB / 0.734 GB, free: 3.328 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.6541, allocations: 0 / 0.734 GB, free: 3.328 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.866e-05/0.6542, allocations: 39.94 kB / 0.734 GB, free: 3.289 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/0.6542, allocations: 20 kB / 0.734 GB, free: 3.27 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.6558, allocations: 0.7846 MB / 0.7348 GB, free: 2.484 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00432/0.6601, allocations: 3.671 MB / 0.7384 GB, free: 14.52 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.6621, allocations: 0.9322 MB / 0.7393 GB, free: 13.59 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009392/0.663, allocations: 1.292 MB / 0.7406 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.6631, allocations: 43.22 kB / 0.7406 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=83): time 4.819e-06/0.6631, allocations: 0 / 0.7406 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of matching and sorting (n=83): time 0.005689/0.6688, allocations: 2.372 MB / 0.7429 GB, free: 9.484 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.6688, allocations: 60.06 kB / 0.743 GB, free: 9.414 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005908/0.6694, allocations: 491.2 kB / 0.7434 GB, free: 8.926 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.422e-05/0.6695, allocations: 45.64 kB / 0.7435 GB, free: 8.875 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.6698, allocations: 388.3 kB / 0.7439 GB, free: 8.488 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.67, allocations: 287.8 kB / 0.7441 GB, free: 8.203 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.6701, allocations: 12 kB / 0.7441 GB, free: 8.191 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.6703, allocations: 382.8 kB / 0.7445 GB, free: 7.809 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007437/0.671, allocations: 345.8 kB / 0.7448 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007986/0.6718, allocations: 423.1 kB / 0.7452 GB, free: 7.043 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007995/0.6726, allocations: 366.9 kB / 0.7456 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.6727, allocations: 4 kB / 0.7456 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003271/0.6759, allocations: 1.346 MB / 0.7469 GB, free: 5.316 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.676, allocations: 4 kB / 0.7469 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.676, allocations: 0 / 0.7469 GB, free: 5.312 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008524/0.6768, allocations: 283.6 kB / 0.7472 GB, free: 5.027 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008558/0.6777, allocations: 195.8 kB / 0.7474 GB, free: 4.836 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3369/1.015, allocations: 5.092 MB / 0.7523 GB, free: 178.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/1.016, allocations: 103.9 kB / 0.7524 GB, free: 178.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001602/1.016, allocations: 59.34 kB / 0.7525 GB, free: 178.8 MB / 0.5573 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.0004088/1.016, allocations: 210.2 kB / 0.7527 GB, free: 178.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/1.016, allocations: 76.84 kB / 0.7528 GB, free: 178.7 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004621/1.021, allocations: 1.627 MB / 0.7544 GB, free: 178.6 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/1.021, allocations: 7.781 kB / 0.7544 GB, free: 178.6 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/1.021, allocations: 9.031 kB / 0.7544 GB, free: 178.6 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/1.021, allocations: 4.875 kB / 0.7544 GB, free: 178.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004738/1.026, allocations: 2.517 MB / 0.7568 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/1.026, allocations: 2.25 kB / 0.7568 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009024/1.027, allocations: 205.1 kB / 0.757 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007574/1.028, allocations: 279 kB / 0.7573 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.471e-05/1.028, allocations: 41.66 kB / 0.7573 GB, free: 178.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005054/1.033, allocations: 5.096 MB / 0.7623 GB, free: 174.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/1.033, allocations: 0 / 0.7623 GB, free: 174.4 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004074/1.037, allocations: 1.913 MB / 0.7642 GB, free: 174.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/1.037, allocations: 163.6 kB / 0.7643 GB, free: 174 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/1.037, allocations: 22.02 kB / 0.7644 GB, free: 174 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/1.038, allocations: 71.84 kB / 0.7644 GB, free: 174 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/1.038, allocations: 75.83 kB / 0.7645 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/1.038, allocations: 65.72 kB / 0.7646 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003602/1.038, allocations: 340.9 kB / 0.7649 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.41e-07/1.038, allocations: 0 / 0.7649 GB, free: 173.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001892/1.04, allocations: 0.6876 MB / 0.7656 GB, free: 173.8 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 (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.00183/1.042, allocations: 1.021 MB / 0.7666 GB, free: 173.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002853/1.045, allocations: 1.442 MB / 0.768 GB, free: 173.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/1.045, allocations: 0 / 0.768 GB, free: 173.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00188/1.047, allocations: 1.059 MB / 0.769 GB, free: 172.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009725/1.048, allocations: 186 kB / 0.7692 GB, free: 172.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003675/1.052, allocations: 2.509 MB / 0.7716 GB, free: 171.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/1.052, allocations: 1.016 MB / 0.7726 GB, free: 170.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001191/1.053, allocations: 235.6 kB / 0.7728 GB, free: 170.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003906/1.054, allocations: 117.2 kB / 0.773 GB, free: 170.4 MB / 0.5573 GB Notification: Performance of SimCode: time 9.72e-07/1.054, allocations: 0 / 0.773 GB, free: 170.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.05633/1.11, allocations: 22.17 MB / 0.7946 GB, free: 164.6 MB / 0.5573 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