Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,fileNamePrefix="ThermofluidStream_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.0008111/0.0008111, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005018/0.005018, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.232/1.232, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.567/0.567, allocations: 89.64 MB / 381.1 MB, free: 11.33 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003033, allocations: 8.656 kB / 460.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09234/0.09266, allocations: 68.83 MB / 0.5172 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.3756/0.4683, allocations: 209.8 MB / 0.722 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01739/0.4857, allocations: 17.26 MB / 0.7389 GB, free: 8.324 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008214/0.4866, allocations: 23.88 kB / 0.7389 GB, free: 8.301 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001341/0.4879, allocations: 0.5207 MB / 0.7394 GB, free: 7.777 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003638/0.4916, allocations: 1.509 MB / 0.7409 GB, free: 6.262 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003353/0.495, allocations: 1.443 MB / 0.7423 GB, free: 4.82 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00185/0.4968, allocations: 1.759 MB / 0.744 GB, free: 3.055 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003865/0.4972, allocations: 250.7 kB / 0.7443 GB, free: 2.797 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001731/0.499, allocations: 1.043 MB / 0.7453 GB, free: 1.75 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006208/0.4996, allocations: 0.5519 MB / 0.7458 GB, free: 1.195 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.4997, allocations: 48 kB / 0.7459 GB, free: 1.148 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005103/0.5048, allocations: 3.56 MB / 0.7493 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.505, allocations: 191.1 kB / 0.7495 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004499/0.5054, allocations: 0.5378 MB / 0.7501 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002682/0.5081, allocations: 2.123 MB / 0.7521 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.5081, allocations: 0 / 0.7521 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5082, allocations: 3.938 kB / 0.7521 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.238e-06/0.5082, allocations: 0 / 0.7521 GB, free: 10.71 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.002477/0.5107, allocations: 1.481 MB / 0.7536 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.5107, allocations: 8.031 kB / 0.7536 GB, free: 9.172 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.5108, allocations: 143.6 kB / 0.7537 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00174/0.5126, allocations: 266.3 kB / 0.754 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007763/0.5134, allocations: 0.6215 MB / 0.7546 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.5136, allocations: 204.7 kB / 0.7548 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.5137, allocations: 92 kB / 0.7549 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.5154, allocations: 1.032 MB / 0.7559 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.5155, allocations: 7.938 kB / 0.7559 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.112e-05/0.5156, allocations: 39.94 kB / 0.7559 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.5156, allocations: 20 kB / 0.7559 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.5171, allocations: 0.8159 MB / 0.7567 GB, free: 5.844 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.004346/0.5215, allocations: 4.083 MB / 0.7607 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/0.5233, allocations: 0.8979 MB / 0.7616 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007735/0.5241, allocations: 451.3 kB / 0.762 GB, free: 68 kB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007711/0.5249, allocations: 1.307 MB / 0.7633 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.5249, allocations: 51.2 kB / 0.7634 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=80): time 1.018e-05/0.5249, allocations: 0 / 0.7634 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of matching and sorting (n=80): time 0.004975/0.5299, allocations: 2.111 MB / 0.7654 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.5299, allocations: 60.06 kB / 0.7655 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000615/0.5306, allocations: 0.6178 MB / 0.7661 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.823e-05/0.5306, allocations: 37.7 kB / 0.7661 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.5309, allocations: 428.1 kB / 0.7665 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.5311, allocations: 275.9 kB / 0.7668 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.876e-05/0.5312, allocations: 61.69 kB / 0.7668 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.5313, allocations: 337.9 kB / 0.7672 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006741/0.532, allocations: 329.8 kB / 0.7675 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007141/0.5327, allocations: 423 kB / 0.7679 GB, free: 9.633 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.5341, allocations: 0.737 MB / 0.7686 GB, free: 8.883 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5341, allocations: 0 / 0.7686 GB, free: 8.883 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002927/0.537, allocations: 1.326 MB / 0.7699 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.5371, allocations: 4 kB / 0.7699 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.5371, allocations: 4 kB / 0.7699 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007891/0.5379, allocations: 294.3 kB / 0.7702 GB, free: 7.23 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008518/0.5387, allocations: 203.8 kB / 0.7704 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005275/0.544, allocations: 5.045 MB / 0.7753 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000552/0.5446, allocations: 115.2 kB / 0.7754 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.29e-05/0.5447, allocations: 51.98 kB / 0.7755 GB, free: 1.43 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.0002829/0.545, allocations: 205.7 kB / 0.7757 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.5451, allocations: 82.97 kB / 0.7757 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00406/0.5492, allocations: 1.941 MB / 0.7776 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.5492, allocations: 8 kB / 0.7776 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.5492, allocations: 4 kB / 0.7776 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.5492, allocations: 3.984 kB / 0.7777 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004354/0.5536, allocations: 2.57 MB / 0.7802 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.5536, allocations: 160 / 0.7802 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008914/0.5545, allocations: 203.8 kB / 0.7804 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007226/0.5552, allocations: 290.3 kB / 0.7806 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.221e-05/0.5553, allocations: 39.91 kB / 0.7807 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005194/0.5605, allocations: 5.044 MB / 0.7856 GB, free: 6.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5605, allocations: 8.062 kB / 0.7856 GB, free: 6.492 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003588/0.5641, allocations: 1.82 MB / 0.7874 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000262/0.5644, allocations: 255.7 kB / 0.7876 GB, free: 4.359 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.5645, allocations: 24 kB / 0.7876 GB, free: 4.336 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005499/0.565, allocations: 63.95 kB / 0.7877 GB, free: 4.273 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.5652, allocations: 72.84 kB / 0.7878 GB, free: 4.203 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/0.5652, allocations: 43.98 kB / 0.7878 GB, free: 4.16 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004546/0.5657, allocations: 459 kB / 0.7883 GB, free: 3.719 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5657, allocations: 0 / 0.7883 GB, free: 3.719 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009487/0.5667, allocations: 467.1 kB / 0.7887 GB, free: 3.262 MB / 0.5919 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.00464/0.5713, allocations: 2.869 MB / 0.7915 GB, free: 356 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002354/0.5737, allocations: 1.329 MB / 0.7928 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.5737, allocations: 0 / 0.7928 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.5753, allocations: 0.9781 MB / 0.7938 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.5765, allocations: 237.8 kB / 0.794 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.5893, allocations: 8.88 MB / 0.8027 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.5898, allocations: 1.013 MB / 0.8036 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001298/0.5911, allocations: 0.6297 MB / 0.8043 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006495/0.5918, allocations: 439.2 kB / 0.8047 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.5918, allocations: 0 / 0.8047 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.307/4.899, allocations: 27.03 MB / 0.8311 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/4.899, allocations: 278.2 kB / 0.8313 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.748/7.647, allocations: 0 / 0.8313 GB, free: 219.8 MB / 0.6075 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches