Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",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.007044/0.007044, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.001634/0.001634, allocations: 189.4 kB / 16.67 MB, free: 5.973 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7029/0.7029, allocations: 91.19 MB / 381.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 75.88 kB / 0.5164 GB, free: 4.617 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3078, allocations: 67.68 MB / 0.5825 GB, free: 13.83 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.5476/0.8555, allocations: 235 MB / 0.8119 GB, free: 500 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02422/0.8798, allocations: 22.28 MB / 0.8337 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002271/0.8821, allocations: 58.25 kB / 0.8337 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002333/0.8844, allocations: 0.7927 MB / 0.8345 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006255/0.8907, allocations: 2.052 MB / 0.8365 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005695/0.8965, allocations: 2.178 MB / 0.8386 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002922/0.8994, allocations: 2.189 MB / 0.8408 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005707/0.9, allocations: 423.3 kB / 0.8412 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002903/0.9029, allocations: 1.395 MB / 0.8425 GB, free: 9.391 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.904, allocations: 0.83 MB / 0.8434 GB, free: 8.695 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001809/0.9042, allocations: 136 kB / 0.8435 GB, free: 8.562 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008749/0.9129, allocations: 4.083 MB / 0.8475 GB, free: 4.75 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003242/0.9133, allocations: 351.8 kB / 0.8478 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.9144, allocations: 0.8082 MB / 0.8486 GB, free: 3.629 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00641/0.9208, allocations: 3.009 MB / 0.8515 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.9208, allocations: 0 / 0.8515 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9208, allocations: 8 kB / 0.8515 GB, free: 0.8203 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.458e-05/0.9209, allocations: 0 / 0.8515 GB, free: 0.8203 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.004488/0.9254, allocations: 2.36 MB / 0.8538 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.9254, allocations: 14.66 kB / 0.8539 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/0.9256, allocations: 185.9 kB / 0.854 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003071/0.9287, allocations: 426.5 kB / 0.8544 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.9306, allocations: 1.088 MB / 0.8555 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004068/0.931, allocations: 353.9 kB / 0.8558 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001963/0.9312, allocations: 135.9 kB / 0.856 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0028/0.934, allocations: 1.444 MB / 0.8574 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.9341, allocations: 0 / 0.8574 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001654/0.9342, allocations: 52 kB / 0.8574 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.069e-05/0.9343, allocations: 32 kB / 0.8575 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002735/0.937, allocations: 1.188 MB / 0.8586 GB, free: 9.441 MB / 0.6075 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.007296/0.9444, allocations: 5.441 MB / 0.8639 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002991/0.9474, allocations: 1.319 MB / 0.8652 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.9488, allocations: 0.7099 MB / 0.8659 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001235/0.9501, allocations: 1.792 MB / 0.8677 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.9501, allocations: 43.56 kB / 0.8677 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=113): time 2.946e-06/0.9501, allocations: 0 / 0.8677 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of matching and sorting (n=113): time 0.008987/0.9591, allocations: 3.056 MB / 0.8707 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.9592, allocations: 64.41 kB / 0.8708 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.9603, allocations: 0.878 MB / 0.8716 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.9604, allocations: 41.7 kB / 0.8717 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005272/0.961, allocations: 0.6192 MB / 0.8723 GB, free: 10.63 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003265/0.9613, allocations: 412.8 kB / 0.8727 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003677/0.9617, allocations: 198.9 kB / 0.8728 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.9618, allocations: 345.9 kB / 0.8732 GB, free: 9.691 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.9631, allocations: 0.4944 MB / 0.8737 GB, free: 9.195 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.9644, allocations: 0.584 MB / 0.8742 GB, free: 8.598 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002481/0.9669, allocations: 1.056 MB / 0.8753 GB, free: 7.535 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.9669, allocations: 0 / 0.8753 GB, free: 7.535 MB / 0.6231 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005294/0.9722, allocations: 1.922 MB / 0.8771 GB, free: 5.609 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.9723, allocations: 8 kB / 0.8771 GB, free: 5.602 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.9723, allocations: 0 / 0.8771 GB, free: 5.602 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.9737, allocations: 417.6 kB / 0.8775 GB, free: 5.184 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.9752, allocations: 302 kB / 0.8778 GB, free: 4.898 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009911/0.9851, allocations: 7.422 MB / 0.8851 GB, free: 12.95 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.9862, allocations: 131.3 kB / 0.8852 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002859/0.9865, allocations: 71.97 kB / 0.8853 GB, free: 12.75 MB / 0.6387 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,1,88.9%), (3,1,88.9%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005997/0.9871, allocations: 270.1 kB / 0.8855 GB, free: 12.49 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003349/0.9875, allocations: 131.2 kB / 0.8857 GB, free: 12.36 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00685/0.9943, allocations: 2.728 MB / 0.8883 GB, free: 9.625 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.9944, allocations: 16 kB / 0.8883 GB, free: 9.609 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.9944, allocations: 0 / 0.8883 GB, free: 9.609 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.9944, allocations: 11.92 kB / 0.8883 GB, free: 9.598 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008059/1.002, allocations: 3.588 MB / 0.8918 GB, free: 5.961 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.002, allocations: 4 kB / 0.8918 GB, free: 5.957 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/1.004, allocations: 290 kB / 0.8921 GB, free: 5.684 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/1.005, allocations: 425.5 kB / 0.8925 GB, free: 5.258 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/1.005, allocations: 47.97 kB / 0.8926 GB, free: 5.211 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009694/1.015, allocations: 7.414 MB / 0.8998 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.015, allocations: 2.625 kB / 0.8998 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006642/1.022, allocations: 2.616 MB / 0.9024 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005352/1.022, allocations: 323.7 kB / 0.9027 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003262/1.023, allocations: 20 kB / 0.9027 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008411/1.024, allocations: 75.86 kB / 0.9028 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/1.024, allocations: 103.4 kB / 0.9029 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/1.024, allocations: 71.89 kB / 0.9029 GB, free: 10.03 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007838/1.025, allocations: 0.6064 MB / 0.9035 GB, free: 9.414 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.31e-07/1.025, allocations: 0 / 0.9035 GB, free: 9.414 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001684/1.027, allocations: 0.604 MB / 0.9041 GB, free: 8.809 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.h_out_A,counterFlowNTU1.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 (106): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,5,100.0%), (3,1,88.9%), (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.008164/1.035, allocations: 3.745 MB / 0.9078 GB, free: 5.094 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.004612/1.039, allocations: 1.895 MB / 0.9096 GB, free: 3.16 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/1.039, allocations: 0 / 0.9096 GB, free: 3.16 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.003097/1.042, allocations: 1.37 MB / 0.911 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/1.044, allocations: 311.7 kB / 0.9113 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02391/1.068, allocations: 11.2 MB / 0.9222 GB, free: 6.121 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009019/1.069, allocations: 1.194 MB / 0.9234 GB, free: 4.895 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001745/1.071, allocations: 0.8376 MB / 0.9242 GB, free: 4.082 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000975/1.072, allocations: 0.6593 MB / 0.9248 GB, free: 3.422 MB / 0.67 GB Notification: Performance of SimCode: time 1.263e-06/1.072, allocations: 0 / 0.9248 GB, free: 3.422 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08154/1.153, allocations: 38.28 MB / 0.9622 GB, free: 13.43 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/13.47, allocations: 19.69 kB / 0.9622 GB, free: 13.41 MB / 0.7169 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches