Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.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.CrossFlowNTU,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",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.00891/0.00891, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.002229/0.002229, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.603/1.603, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9129/0.9129, allocations: 93.69 MB / 384.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 83.88 kB / 0.5199 GB, free: 1.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4434/0.4458, allocations: 68.25 MB / 0.5866 GB, free: 10.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.8075/1.253, allocations: 214.4 MB / 0.7959 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02084/1.274, allocations: 17.42 MB / 0.8129 GB, free: 468 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/1.276, allocations: 48.34 kB / 0.813 GB, free: 468 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002241/1.279, allocations: 0.6199 MB / 0.8136 GB, free: 440 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006665/1.285, allocations: 1.748 MB / 0.8153 GB, free: 372 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006196/1.292, allocations: 1.655 MB / 0.8169 GB, free: 316 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004057/1.296, allocations: 1.735 MB / 0.8186 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005958/1.296, allocations: 291 kB / 0.8189 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003548/1.3, allocations: 1.202 MB / 0.8201 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00135/1.301, allocations: 0.6301 MB / 0.8207 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003428/1.302, allocations: 100.2 kB / 0.8208 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009514/1.311, allocations: 3.414 MB / 0.8241 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006447/1.312, allocations: 257.5 kB / 0.8243 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001269/1.313, allocations: 0.6179 MB / 0.825 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008593/1.322, allocations: 2.379 MB / 0.8273 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.361e-06/1.322, allocations: 0 / 0.8273 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.984e-06/1.322, allocations: 0 / 0.8273 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.255e-05/1.322, allocations: 0 / 0.8273 GB, free: 12.34 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.004777/1.327, allocations: 1.914 MB / 0.8291 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/1.327, allocations: 10.53 kB / 0.8292 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002045/1.327, allocations: 136.3 kB / 0.8293 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002259/1.329, allocations: 298.3 kB / 0.8296 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002305/1.331, allocations: 0.9272 MB / 0.8305 GB, free: 10 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002921/1.332, allocations: 207.3 kB / 0.8307 GB, free: 9.828 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002162/1.332, allocations: 95.95 kB / 0.8308 GB, free: 9.793 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00235/1.334, allocations: 1.007 MB / 0.8317 GB, free: 9.18 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/1.334, allocations: 4.156 kB / 0.8317 GB, free: 9.18 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.63e-05/1.334, allocations: 35.28 kB / 0.8318 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/1.334, allocations: 21.78 kB / 0.8318 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/1.336, allocations: 0.7871 MB / 0.8326 GB, free: 8.418 MB / 0.5919 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.006746/1.343, allocations: 4.107 MB / 0.8366 GB, free: 4.039 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/1.345, allocations: 0.868 MB / 0.8374 GB, free: 3.172 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009037/1.346, allocations: 425.3 kB / 0.8378 GB, free: 2.754 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001245/1.348, allocations: 1.298 MB / 0.8391 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.98e-05/1.348, allocations: 44.09 kB / 0.8391 GB, free: 1.117 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 6.532e-06/1.348, allocations: 4 kB / 0.8391 GB, free: 1.113 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.006128/1.354, allocations: 1.937 MB / 0.841 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/1.354, allocations: 60.06 kB / 0.8411 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/1.355, allocations: 0.8033 MB / 0.8419 GB, free: 14.22 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.979e-05/1.355, allocations: 33.7 kB / 0.8419 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004818/1.356, allocations: 0.5198 MB / 0.8424 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002965/1.356, allocations: 290.7 kB / 0.8427 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002976/1.356, allocations: 158.6 kB / 0.8429 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001885/1.357, allocations: 337.9 kB / 0.8432 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007874/1.357, allocations: 309.8 kB / 0.8435 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008952/1.358, allocations: 387.1 kB / 0.8438 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/1.36, allocations: 0.6854 MB / 0.8445 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/1.36, allocations: 0 / 0.8445 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003697/1.364, allocations: 1.241 MB / 0.8457 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/1.364, allocations: 12 kB / 0.8457 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/1.364, allocations: 4 kB / 0.8457 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/1.365, allocations: 242.3 kB / 0.846 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/1.366, allocations: 205.3 kB / 0.8462 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007492/1.373, allocations: 5.229 MB / 0.8513 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/1.375, allocations: 87.52 kB / 0.8514 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/1.375, allocations: 52.22 kB / 0.8514 GB, free: 4.023 MB / 0.6075 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.0007112/1.376, allocations: 224.7 kB / 0.8516 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/1.376, allocations: 115.2 kB / 0.8517 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004781/1.381, allocations: 1.843 MB / 0.8535 GB, free: 1.84 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/1.381, allocations: 8 kB / 0.8535 GB, free: 1.832 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/1.381, allocations: 128 / 0.8535 GB, free: 1.832 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/1.381, allocations: 15.91 kB / 0.8535 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00582/1.387, allocations: 2.501 MB / 0.856 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/1.387, allocations: 4 kB / 0.856 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/1.388, allocations: 194.2 kB / 0.8562 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008678/1.389, allocations: 253.5 kB / 0.8564 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/1.389, allocations: 39.97 kB / 0.8565 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007145/1.396, allocations: 5.229 MB / 0.8616 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.396, allocations: 4.031 kB / 0.8616 GB, free: 9.152 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004644/1.401, allocations: 1.738 MB / 0.8633 GB, free: 7.383 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005741/1.401, allocations: 252.1 kB / 0.8635 GB, free: 7.117 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/1.401, allocations: 28.3 kB / 0.8635 GB, free: 7.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/1.402, allocations: 39.97 kB / 0.8636 GB, free: 7.051 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/1.402, allocations: 76.09 kB / 0.8636 GB, free: 6.98 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/1.402, allocations: 47.92 kB / 0.8637 GB, free: 6.934 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008347/1.403, allocations: 0.5644 MB / 0.8642 GB, free: 6.359 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/1.403, allocations: 0 / 0.8642 GB, free: 6.359 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001704/1.405, allocations: 478.8 kB / 0.8647 GB, free: 5.891 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (78): * Single equations (assignments): 75 * 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.006413/1.411, allocations: 2.758 MB / 0.8674 GB, free: 3.133 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003223/1.415, allocations: 1.247 MB / 0.8686 GB, free: 1.859 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.415, allocations: 0 / 0.8686 GB, free: 1.859 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002188/1.417, allocations: 0.9181 MB / 0.8695 GB, free: 0.9297 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00172/1.419, allocations: 270.1 kB / 0.8698 GB, free: 0.6797 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01886/1.437, allocations: 8.625 MB / 0.8782 GB, free: 7.91 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009867/1.438, allocations: 1.08 MB / 0.8792 GB, free: 6.805 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001612/1.44, allocations: 0.6401 MB / 0.8799 GB, free: 6.176 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.441, allocations: 0.5226 MB / 0.8804 GB, free: 5.652 MB / 0.6387 GB Notification: Performance of SimCode: time 1.262e-06/1.441, allocations: 0 / 0.8804 GB, free: 5.652 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09265/1.534, allocations: 30.82 MB / 0.9105 GB, free: 7.117 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/16.11, allocations: 11.8 kB / 0.9105 GB, free: 7.105 MB / 0.67 GB (rm -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_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_CrossFlowNTU.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches