Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_dev_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.009251/0.009251, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.001853/0.001853, allocations: 188.8 kB / 16.67 MB, free: 5.969 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.623/1.623, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9238/0.9238, allocations: 93.69 MB / 384.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 83.86 kB / 0.5199 GB, free: 1.105 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4657/0.468, allocations: 68.25 MB / 0.5866 GB, free: 10.26 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.7773/1.245, allocations: 235 MB / 0.8161 GB, free: 292 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02835/1.274, allocations: 22.31 MB / 0.8379 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/1.276, allocations: 62.81 kB / 0.8379 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002908/1.279, allocations: 0.7952 MB / 0.8387 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008755/1.288, allocations: 2.052 MB / 0.8407 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.008146/1.296, allocations: 2.161 MB / 0.8428 GB, free: 9.648 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005589/1.302, allocations: 2.246 MB / 0.845 GB, free: 8.809 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009175/1.303, allocations: 417.5 kB / 0.8454 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003586/1.306, allocations: 1.391 MB / 0.8468 GB, free: 7.227 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/1.308, allocations: 0.8397 MB / 0.8476 GB, free: 6.434 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002306/1.308, allocations: 132 kB / 0.8477 GB, free: 6.305 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/1.319, allocations: 4.088 MB / 0.8517 GB, free: 2.488 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004916/1.319, allocations: 340.8 kB / 0.852 GB, free: 2.172 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001489/1.321, allocations: 0.8267 MB / 0.8529 GB, free: 1.359 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008754/1.329, allocations: 3.044 MB / 0.8558 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/1.329, allocations: 0 / 0.8558 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.934e-06/1.329, allocations: 0 / 0.8558 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.308e-05/1.329, allocations: 0 / 0.8558 GB, free: 14.52 MB / 0.6075 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.005789/1.335, allocations: 2.387 MB / 0.8582 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/1.335, allocations: 12.03 kB / 0.8582 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002579/1.336, allocations: 189.9 kB / 0.8584 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003255/1.339, allocations: 426.5 kB / 0.8588 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002628/1.341, allocations: 1.139 MB / 0.8599 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004332/1.342, allocations: 344.1 kB / 0.8602 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002336/1.342, allocations: 132 kB / 0.8603 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003245/1.345, allocations: 1.455 MB / 0.8617 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.581e-05/1.345, allocations: 3.984 kB / 0.8617 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/1.346, allocations: 55.98 kB / 0.8618 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/1.346, allocations: 28 kB / 0.8618 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00297/1.349, allocations: 1.186 MB / 0.863 GB, free: 7.074 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.009023/1.358, allocations: 5.468 MB / 0.8683 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0033/1.361, allocations: 1.308 MB / 0.8696 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/1.363, allocations: 0.7138 MB / 0.8703 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001728/1.364, allocations: 1.794 MB / 0.8721 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/1.365, allocations: 47.56 kB / 0.8721 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=113): time 5.44e-06/1.365, allocations: 0 / 0.8721 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of matching and sorting (n=113): time 0.009791/1.374, allocations: 3.053 MB / 0.8751 GB, free: 9.887 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/1.374, allocations: 62.94 kB / 0.8751 GB, free: 9.816 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/1.376, allocations: 0.9173 MB / 0.876 GB, free: 8.887 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001988/1.377, allocations: 49.64 kB / 0.8761 GB, free: 8.832 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006635/1.377, allocations: 0.6429 MB / 0.8767 GB, free: 8.184 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005082/1.378, allocations: 404.8 kB / 0.8771 GB, free: 7.793 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004166/1.378, allocations: 206.9 kB / 0.8773 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001696/1.378, allocations: 349.9 kB / 0.8776 GB, free: 7.238 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/1.38, allocations: 0.4905 MB / 0.8781 GB, free: 6.746 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/1.381, allocations: 0.588 MB / 0.8787 GB, free: 6.141 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/1.384, allocations: 1.052 MB / 0.8797 GB, free: 5.078 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/1.384, allocations: 4 kB / 0.8797 GB, free: 5.074 MB / 0.6231 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005875/1.39, allocations: 1.926 MB / 0.8816 GB, free: 3.145 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/1.39, allocations: 8 kB / 0.8816 GB, free: 3.137 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/1.39, allocations: 0 / 0.8816 GB, free: 3.137 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001504/1.391, allocations: 409.6 kB / 0.882 GB, free: 2.727 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/1.393, allocations: 298 kB / 0.8823 GB, free: 2.445 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/1.404, allocations: 7.427 MB / 0.8895 GB, free: 10.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/1.405, allocations: 139.3 kB / 0.8897 GB, free: 10.36 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/1.405, allocations: 75.97 kB / 0.8897 GB, free: 10.29 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.0006216/1.406, allocations: 263.9 kB / 0.89 GB, free: 10.03 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002911/1.406, allocations: 135.1 kB / 0.8901 GB, free: 9.895 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007141/1.413, allocations: 2.723 MB / 0.8928 GB, free: 7.168 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/1.413, allocations: 12 kB / 0.8928 GB, free: 7.156 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/1.413, allocations: 4 kB / 0.8928 GB, free: 7.152 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/1.413, allocations: 7.922 kB / 0.8928 GB, free: 7.145 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008629/1.422, allocations: 3.598 MB / 0.8963 GB, free: 3.496 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.422, allocations: 0 / 0.8963 GB, free: 3.496 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/1.424, allocations: 294.2 kB / 0.8966 GB, free: 3.219 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001457/1.425, allocations: 425.5 kB / 0.897 GB, free: 2.793 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/1.425, allocations: 51.91 kB / 0.897 GB, free: 2.742 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/1.436, allocations: 7.421 MB / 0.9043 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/1.436, allocations: 8.094 kB / 0.9043 GB, free: 10.79 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007518/1.444, allocations: 2.608 MB / 0.9068 GB, free: 8.152 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007441/1.445, allocations: 324 kB / 0.9072 GB, free: 7.816 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/1.445, allocations: 24 kB / 0.9072 GB, free: 7.793 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008519/1.446, allocations: 79.88 kB / 0.9073 GB, free: 7.715 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/1.446, allocations: 103.4 kB / 0.9074 GB, free: 7.617 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/1.446, allocations: 67.97 kB / 0.9074 GB, free: 7.551 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009544/1.447, allocations: 0.6273 MB / 0.908 GB, free: 6.918 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/1.447, allocations: 4 kB / 0.908 GB, free: 6.914 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002114/1.449, allocations: 0.6079 MB / 0.9086 GB, free: 6.305 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.008863/1.458, allocations: 3.752 MB / 0.9123 GB, free: 2.574 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00516/1.463, allocations: 1.897 MB / 0.9141 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.463, allocations: 0 / 0.9141 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.003373/1.467, allocations: 1.373 MB / 0.9155 GB, free: 15.24 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/1.468, allocations: 321.1 kB / 0.9158 GB, free: 14.93 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02465/1.493, allocations: 11.35 MB / 0.9269 GB, free: 3.445 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/1.494, allocations: 1.206 MB / 0.928 GB, free: 2.207 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.002044/1.496, allocations: 0.8387 MB / 0.9289 GB, free: 1.391 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/1.497, allocations: 0.6788 MB / 0.9295 GB, free: 0.7109 MB / 0.67 GB Notification: Performance of SimCode: time 1.694e-06/1.497, allocations: 0 / 0.9295 GB, free: 0.7109 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1331/1.63, allocations: 38.74 MB / 0.9674 GB, free: 10.23 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/16.54, allocations: 13.88 kB / 0.9674 GB, free: 10.22 MB / 0.7169 GB (rm -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches