Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_dev_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.005951/0.005951, allocations: 99.69 kB / 15.73 MB, free: 6.043 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.001574/0.001574, allocations: 192.3 kB / 16.67 MB, free: 5.953 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.504/1.504, 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.7693/0.7693, allocations: 93.71 MB / 384.2 MB, free: 5.234 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002573/0.002573, allocations: 87.88 kB / 0.52 GB, free: 1.074 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3744, allocations: 68.25 MB / 0.5866 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5526/0.9271, allocations: 214.4 MB / 0.7959 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01723/0.9444, allocations: 17.42 MB / 0.8129 GB, free: 432 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.9461, allocations: 48.72 kB / 0.813 GB, free: 432 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.9479, allocations: 0.6262 MB / 0.8136 GB, free: 404 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004895/0.9528, allocations: 1.752 MB / 0.8153 GB, free: 328 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004502/0.9574, allocations: 1.656 MB / 0.8169 GB, free: 272 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002458/0.9598, allocations: 1.727 MB / 0.8186 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006203/0.9605, allocations: 301.5 kB / 0.8189 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002805/0.9633, allocations: 1.194 MB / 0.8201 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.9645, allocations: 0.6389 MB / 0.8207 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003084/0.9649, allocations: 93.41 kB / 0.8208 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007497/0.9724, allocations: 3.418 MB / 0.8241 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004089/0.9728, allocations: 258.3 kB / 0.8244 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001286/0.9741, allocations: 0.6155 MB / 0.825 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006885/0.981, allocations: 2.387 MB / 0.8273 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.981, allocations: 0 / 0.8273 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 3.367e-06/0.9811, allocations: 0 / 0.8273 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.957e-05/0.9812, allocations: 0 / 0.8273 GB, free: 12.3 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.004827/0.986, allocations: 1.907 MB / 0.8292 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.9861, allocations: 9.625 kB / 0.8292 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003674/0.9864, allocations: 145.3 kB / 0.8293 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002264/0.9887, allocations: 297.2 kB / 0.8296 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.9907, allocations: 0.9268 MB / 0.8305 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/0.991, allocations: 200.2 kB / 0.8307 GB, free: 9.793 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001973/0.9912, allocations: 97.58 kB / 0.8308 GB, free: 9.758 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/0.9937, allocations: 1.012 MB / 0.8318 GB, free: 9.141 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.9937, allocations: 1.219 kB / 0.8318 GB, free: 9.141 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.29e-05/0.9938, allocations: 35.34 kB / 0.8318 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.9938, allocations: 22.16 kB / 0.8318 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002028/0.9959, allocations: 0.7923 MB / 0.8326 GB, free: 8.344 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.006447/1.002, allocations: 4.127 MB / 0.8366 GB, free: 3.949 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002186/1.005, allocations: 0.8623 MB / 0.8375 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009392/1.005, allocations: 435.2 kB / 0.8379 GB, free: 2.656 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001079/1.007, allocations: 1.303 MB / 0.8392 GB, free: 1.066 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/1.007, allocations: 39.22 kB / 0.8392 GB, free: 1.02 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 2.926e-06/1.007, allocations: 4 kB / 0.8392 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005921/1.013, allocations: 1.937 MB / 0.8411 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/1.013, allocations: 60.06 kB / 0.8411 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/1.014, allocations: 0.8072 MB / 0.8419 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.479e-05/1.014, allocations: 41.7 kB / 0.842 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004803/1.015, allocations: 0.5202 MB / 0.8425 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002894/1.015, allocations: 286.4 kB / 0.8428 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/1.015, allocations: 162.6 kB / 0.8429 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002101/1.015, allocations: 333.9 kB / 0.8432 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008399/1.016, allocations: 313.8 kB / 0.8435 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009006/1.017, allocations: 394.2 kB / 0.8439 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/1.019, allocations: 0.6932 MB / 0.8446 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/1.019, allocations: 4 kB / 0.8446 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003603/1.023, allocations: 1.249 MB / 0.8458 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/1.023, allocations: 8 kB / 0.8458 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/1.023, allocations: 0 / 0.8458 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000944/1.024, allocations: 242.4 kB / 0.846 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/1.025, allocations: 209.2 kB / 0.8462 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/1.032, allocations: 5.231 MB / 0.8514 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008497/1.033, allocations: 83.53 kB / 0.8514 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/1.033, allocations: 51.97 kB / 0.8515 GB, free: 3.895 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.0005367/1.033, allocations: 224.1 kB / 0.8517 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003165/1.034, allocations: 115.2 kB / 0.8518 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004657/1.038, allocations: 1.828 MB / 0.8536 GB, free: 1.727 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/1.038, allocations: 8 kB / 0.8536 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/1.038, allocations: 4 kB / 0.8536 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/1.038, allocations: 11.91 kB / 0.8536 GB, free: 1.703 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005671/1.044, allocations: 2.491 MB / 0.856 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/1.044, allocations: 7.094 kB / 0.8561 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/1.045, allocations: 190.2 kB / 0.8562 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008683/1.046, allocations: 254.4 kB / 0.8565 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.546e-05/1.046, allocations: 35.98 kB / 0.8565 GB, free: 14.67 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006811/1.053, allocations: 5.238 MB / 0.8616 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/1.053, allocations: 0 / 0.8616 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004399/1.057, allocations: 1.73 MB / 0.8633 GB, free: 7.285 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004621/1.058, allocations: 260.1 kB / 0.8636 GB, free: 7.012 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/1.058, allocations: 20 kB / 0.8636 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005759/1.059, allocations: 44.27 kB / 0.8636 GB, free: 6.949 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/1.059, allocations: 71.75 kB / 0.8637 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/1.059, allocations: 59.92 kB / 0.8637 GB, free: 6.824 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008086/1.06, allocations: 0.5605 MB / 0.8643 GB, free: 6.254 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/1.06, allocations: 0 / 0.8643 GB, free: 6.254 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001419/1.061, allocations: 474.9 kB / 0.8647 GB, free: 5.789 MB / 0.6231 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.005636/1.067, allocations: 2.751 MB / 0.8674 GB, free: 3.043 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002996/1.07, allocations: 1.245 MB / 0.8687 GB, free: 1.77 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.07, allocations: 0 / 0.8687 GB, free: 1.77 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001885/1.072, allocations: 0.9058 MB / 0.8695 GB, free: 0.8359 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/1.073, allocations: 272.5 kB / 0.8698 GB, free: 0.5859 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01694/1.09, allocations: 8.632 MB / 0.8782 GB, free: 7.828 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008308/1.091, allocations: 1.08 MB / 0.8793 GB, free: 6.723 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001507/1.092, allocations: 0.6417 MB / 0.8799 GB, free: 6.09 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008775/1.093, allocations: 0.5187 MB / 0.8804 GB, free: 5.57 MB / 0.6387 GB Notification: Performance of SimCode: time 5.41e-07/1.093, allocations: 0 / 0.8804 GB, free: 5.57 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08058/1.174, allocations: 30.65 MB / 0.9103 GB, free: 7.195 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/13.68, allocations: 16.3 kB / 0.9104 GB, free: 7.184 MB / 0.67 GB (rm -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches