Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 198.1 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6402/0.6402, allocations: 89.52 MB / 379.5 MB, free: 11.31 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 75.19 kB / 457.7 MB, free: 23.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.102, allocations: 67.32 MB / 0.5127 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.4572/0.5593, allocations: 212.7 MB / 0.7204 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01875/0.5781, allocations: 17.51 MB / 0.7375 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001327/0.5794, allocations: 23.88 kB / 0.7375 GB, free: 12.81 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.5811, allocations: 0.5207 MB / 0.738 GB, free: 12.29 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003856/0.585, allocations: 1.501 MB / 0.7395 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003676/0.5887, allocations: 1.446 MB / 0.7409 GB, free: 9.336 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001618/0.5903, allocations: 1.755 MB / 0.7426 GB, free: 7.574 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004124/0.5907, allocations: 266.7 kB / 0.7429 GB, free: 7.301 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001759/0.5925, allocations: 1.074 MB / 0.7439 GB, free: 6.223 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005317/0.593, allocations: 0.5871 MB / 0.7445 GB, free: 5.633 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.5931, allocations: 64 kB / 0.7446 GB, free: 5.57 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006181/0.5993, allocations: 3.611 MB / 0.7481 GB, free: 1.953 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.5995, allocations: 203.1 kB / 0.7483 GB, free: 1.754 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004999/0.6, allocations: 0.5361 MB / 0.7488 GB, free: 1.215 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003424/0.6035, allocations: 2.158 MB / 0.7509 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.6035, allocations: 3.984 kB / 0.7509 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6035, allocations: 0 / 0.7509 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.6035, allocations: 0 / 0.7509 GB, free: 15.05 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.003197/0.6067, allocations: 1.672 MB / 0.7526 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.6068, allocations: 12.03 kB / 0.7526 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002325/0.607, allocations: 139.6 kB / 0.7527 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001872/0.6089, allocations: 274.3 kB / 0.753 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009397/0.6098, allocations: 0.6214 MB / 0.7536 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002542/0.6101, allocations: 196.8 kB / 0.7538 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.6103, allocations: 96 kB / 0.7539 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.6123, allocations: 1.009 MB / 0.7548 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.6124, allocations: 0 / 0.7548 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-05/0.6125, allocations: 39.94 kB / 0.7549 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.422e-05/0.6125, allocations: 27.94 kB / 0.7549 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.6142, allocations: 0.7885 MB / 0.7557 GB, free: 10.03 MB / 0.5606 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.005251/0.6195, allocations: 4.067 MB / 0.7596 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.6214, allocations: 0.8628 MB / 0.7605 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007718/0.6222, allocations: 435.3 kB / 0.7609 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008869/0.6231, allocations: 1.303 MB / 0.7622 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.6231, allocations: 43.16 kB / 0.7622 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=80): time 2.324e-06/0.6231, allocations: 3.938 kB / 0.7622 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of matching and sorting (n=80): time 0.005049/0.6282, allocations: 1.904 MB / 0.7641 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.6282, allocations: 64.06 kB / 0.7641 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006998/0.6289, allocations: 0.6177 MB / 0.7647 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.011e-05/0.629, allocations: 41.7 kB / 0.7648 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003317/0.6293, allocations: 428.1 kB / 0.7652 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.6296, allocations: 272 kB / 0.7655 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002507/0.6298, allocations: 154.6 kB / 0.7656 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.6299, allocations: 330 kB / 0.7659 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006727/0.6306, allocations: 317.8 kB / 0.7662 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007339/0.6314, allocations: 391.1 kB / 0.7666 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.6327, allocations: 0.6978 MB / 0.7673 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6327, allocations: 0 / 0.7673 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002937/0.6357, allocations: 1.217 MB / 0.7685 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.6357, allocations: 11.92 kB / 0.7685 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.6357, allocations: 4.062 kB / 0.7685 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007755/0.6365, allocations: 250.2 kB / 0.7687 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009378/0.6375, allocations: 203.7 kB / 0.7689 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005288/0.6428, allocations: 4.869 MB / 0.7737 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006137/0.6434, allocations: 91.38 kB / 0.7738 GB, free: 6.281 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.973e-05/0.6435, allocations: 59.97 kB / 0.7738 GB, free: 6.223 MB / 0.5762 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 (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0003695/0.6439, allocations: 211.2 kB / 0.774 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.6441, allocations: 86.88 kB / 0.7741 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004255/0.6483, allocations: 1.792 MB / 0.7758 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.6483, allocations: 19.92 kB / 0.7759 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6483, allocations: 0 / 0.7759 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.6484, allocations: 3.984 kB / 0.7759 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/0.6529, allocations: 2.436 MB / 0.7782 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.653, allocations: 7.938 kB / 0.7783 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009153/0.6539, allocations: 191.8 kB / 0.7784 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007104/0.6546, allocations: 250.4 kB / 0.7787 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.6547, allocations: 39.92 kB / 0.7787 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005286/0.66, allocations: 4.861 MB / 0.7835 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.66, allocations: 3.938 kB / 0.7835 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003643/0.6637, allocations: 1.702 MB / 0.7851 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003386/0.664, allocations: 235.8 kB / 0.7853 GB, free: 9.801 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.6641, allocations: 20 kB / 0.7854 GB, free: 9.781 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005707/0.6647, allocations: 55.89 kB / 0.7854 GB, free: 9.727 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.6649, allocations: 72.5 kB / 0.7855 GB, free: 9.656 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.665, allocations: 55.97 kB / 0.7855 GB, free: 9.602 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005058/0.6655, allocations: 443 kB / 0.786 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.41e-07/0.6655, allocations: 0 / 0.786 GB, free: 9.176 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001318/0.6668, allocations: 475.1 kB / 0.7864 GB, free: 8.711 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.004897/0.6717, allocations: 2.715 MB / 0.7891 GB, free: 5.953 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002565/0.6743, allocations: 1.24 MB / 0.7903 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.6743, allocations: 0 / 0.7903 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.676, allocations: 0.9021 MB / 0.7912 GB, free: 3.73 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.6772, allocations: 233.5 kB / 0.7914 GB, free: 3.504 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01442/0.6916, allocations: 8.49 MB / 0.7997 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007497/0.6924, allocations: 1.013 MB / 0.8007 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001462/0.6939, allocations: 0.6062 MB / 0.8013 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007158/0.6946, allocations: 443.2 kB / 0.8017 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of SimCode: time 8.82e-07/0.6946, allocations: 0 / 0.8017 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2444/0.939, allocations: 27.15 MB / 0.8282 GB, free: 241.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.9393, allocations: 278.7 kB / 0.8285 GB, free: 241 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.423/3.362, allocations: 1.812 kB / 0.8285 GB, free: 241 MB / 0.6231 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches