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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002538/0.002538, allocations: 210.4 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8001/0.8001, allocations: 100.9 MB / 413.3 MB, free: 2.887 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002602/0.002602, allocations: 86.98 kB / 0.5641 GB, free: 35.56 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1375, allocations: 74.62 MB / 0.6369 GB, free: 6.477 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5485/0.686, allocations: 187.2 MB / 0.8198 GB, free: 164 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02289/0.7089, allocations: 15.83 MB / 0.8352 GB, free: 4.973 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.7104, allocations: 71.16 kB / 0.8353 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001937/0.7123, allocations: 0.5524 MB / 0.8358 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005435/0.7178, allocations: 1.785 MB / 0.8376 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.004827/0.7226, allocations: 1.675 MB / 0.8392 GB, free: 1.984 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002402/0.725, allocations: 1.726 MB / 0.8409 GB, free: 0.9453 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003882/0.7254, allocations: 172.7 kB / 0.8411 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.7278, allocations: 1.257 MB / 0.8423 GB, free: 124 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007568/0.7286, allocations: 0.5768 MB / 0.8429 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.7287, allocations: 97.33 kB / 0.8429 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005901/0.7346, allocations: 3.326 MB / 0.8462 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003407/0.7349, allocations: 256.1 kB / 0.8464 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007513/0.7357, allocations: 0.4988 MB / 0.8469 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.005011/0.7407, allocations: 2.373 MB / 0.8492 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.7407, allocations: 0 / 0.8492 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.814e-06/0.7407, allocations: 0 / 0.8492 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.605e-05/0.7407, allocations: 0 / 0.8492 GB, free: 12.29 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.003538/0.7443, allocations: 1.821 MB / 0.851 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.7443, allocations: 9.531 kB / 0.851 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.7445, allocations: 140.4 kB / 0.8512 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00197/0.7464, allocations: 303.5 kB / 0.8515 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.7483, allocations: 0.8461 MB / 0.8523 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002941/0.7486, allocations: 305 kB / 0.8526 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.7488, allocations: 90.47 kB / 0.8527 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.7506, allocations: 0.9925 MB / 0.8536 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.7506, allocations: 7.875 kB / 0.8536 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.268e-05/0.7507, allocations: 35.88 kB / 0.8537 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.7507, allocations: 23.88 kB / 0.8537 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.7524, allocations: 0.8255 MB / 0.8545 GB, free: 8.691 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.004831/0.7573, allocations: 2.652 MB / 0.8571 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.7593, allocations: 0.8161 MB / 0.8579 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000751/0.76, allocations: 392 kB / 0.8583 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003629/0.7604, allocations: 106.2 kB / 0.8584 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.7604, allocations: 42.12 kB / 0.8584 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=80): time 2.615e-06/0.7604, allocations: 0 / 0.8584 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=80): time 0.005469/0.7659, allocations: 1.746 MB / 0.8601 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.042e-05/0.7659, allocations: 59.59 kB / 0.8602 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.7672, allocations: 0.8044 MB / 0.8609 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.531e-05/0.7673, allocations: 41.7 kB / 0.861 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004303/0.7677, allocations: 0.5128 MB / 0.8615 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002671/0.768, allocations: 293.4 kB / 0.8618 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.7682, allocations: 154.6 kB / 0.8619 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.7684, allocations: 334 kB / 0.8622 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.7691, allocations: 293.8 kB / 0.8625 GB, free: 2.773 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000759/0.7698, allocations: 374 kB / 0.8629 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.7713, allocations: 0.6705 MB / 0.8635 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.7713, allocations: 0 / 0.8635 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003067/0.7744, allocations: 1.155 MB / 0.8647 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.7744, allocations: 7.938 kB / 0.8647 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.7744, allocations: 7.938 kB / 0.8647 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000979/0.7754, allocations: 230.4 kB / 0.8649 GB, free: 296 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007631/0.7761, allocations: 179.8 kB / 0.8651 GB, free: 116 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006353/0.7825, allocations: 4.851 MB / 0.8698 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008728/0.7834, allocations: 83.52 kB / 0.8699 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.7835, allocations: 55.98 kB / 0.8699 GB, free: 10.79 MB / 0.6231 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 {(2,2,100.0%), (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.0005107/0.784, allocations: 225.6 kB / 0.8701 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/0.7843, allocations: 115.2 kB / 0.8703 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00394/0.7882, allocations: 1.738 MB / 0.872 GB, free: 8.695 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.7882, allocations: 8 kB / 0.872 GB, free: 8.688 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.7883, allocations: 4 kB / 0.872 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.7883, allocations: 11.95 kB / 0.872 GB, free: 8.672 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005109/0.7934, allocations: 2.123 MB / 0.874 GB, free: 6.473 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.7934, allocations: 0 / 0.874 GB, free: 6.473 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007495/0.7941, allocations: 167.8 kB / 0.8742 GB, free: 6.309 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000801/0.7949, allocations: 230.4 kB / 0.8744 GB, free: 6.074 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.795, allocations: 39.97 kB / 0.8745 GB, free: 6.035 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006363/0.8014, allocations: 4.847 MB / 0.8792 GB, free: 0.8438 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.8014, allocations: 0 / 0.8792 GB, free: 0.8438 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004172/0.8056, allocations: 1.673 MB / 0.8808 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006065/0.8062, allocations: 187 kB / 0.881 GB, free: 14.94 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.8065, allocations: 20 kB / 0.881 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000683/0.8071, allocations: 43.91 kB / 0.8811 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.8073, allocations: 72.52 kB / 0.8811 GB, free: 14.81 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.8074, allocations: 59.92 kB / 0.8812 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008813/0.8083, allocations: 0.5527 MB / 0.8817 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of sort global known variables: time 9e-08/0.8083, allocations: 0 / 0.8817 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001629/0.8099, allocations: 482.8 kB / 0.8822 GB, free: 13.71 MB / 0.6387 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%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005446/0.8154, allocations: 2.674 MB / 0.8848 GB, free: 11 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002541/0.8179, allocations: 1.146 MB / 0.8859 GB, free: 9.812 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.8179, allocations: 3.938 kB / 0.8859 GB, free: 9.809 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.8194, allocations: 0.8084 MB / 0.8867 GB, free: 8.961 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.8209, allocations: 270.5 kB / 0.887 GB, free: 8.703 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/0.8367, allocations: 8.517 MB / 0.8953 GB, free: 15.98 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/0.8372, allocations: 491.2 kB / 0.8958 GB, free: 15.47 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001415/0.8386, allocations: 0.6437 MB / 0.8964 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008121/0.8394, allocations: 0.5187 MB / 0.8969 GB, free: 14.31 MB / 0.6544 GB Notification: Performance of SimCode: time 1.382e-06/0.8395, allocations: 4 kB / 0.8969 GB, free: 14.31 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08307/0.9225, allocations: 32.64 MB / 0.9288 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/15.35, allocations: 19.09 kB / 0.9288 GB, free: 14 MB / 0.6856 GB " [Timeout remaining time 645] (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 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) [Timeout 1260.0] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.181679581291974]