Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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.001737/0.001737, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002022/0.002022, allocations: 216 kB / 22.25 MB, free: 4.855 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.876/1.876, allocations: 230.6 MB / 256 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 1.132/1.132, allocations: 94.62 MB / 407 MB, free: 8.84 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",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.002672/0.002672, allocations: 90.58 kB / 0.5549 GB, free: 38.38 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.232, allocations: 73.05 MB / 0.6263 GB, free: 164 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 1.009/1.241, allocations: 205.8 MB / 0.8273 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03719/1.278, allocations: 20.3 MB / 0.8471 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004399/1.282, allocations: 90.69 kB / 0.8472 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004466/1.287, allocations: 0.7057 MB / 0.8479 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01197/1.299, allocations: 2.093 MB / 0.8499 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.01006/1.309, allocations: 2.191 MB / 0.8521 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005985/1.315, allocations: 2.248 MB / 0.8543 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001039/1.316, allocations: 261.1 kB / 0.8545 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005023/1.321, allocations: 1.46 MB / 0.8559 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002642/1.324, allocations: 0.7742 MB / 0.8567 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000692/1.324, allocations: 131.9 kB / 0.8568 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01279/1.337, allocations: 3.944 MB / 0.8607 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001135/1.338, allocations: 347.7 kB / 0.861 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002648/1.341, allocations: 0.6682 MB / 0.8616 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01148/1.352, allocations: 3.032 MB / 0.8646 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/1.352, allocations: 0 / 0.8646 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.705e-06/1.352, allocations: 0 / 0.8646 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.401e-05/1.352, allocations: 0 / 0.8646 GB, free: 4.984 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.006139/1.359, allocations: 2.319 MB / 0.8669 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.356e-05/1.359, allocations: 8.031 kB / 0.8669 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003092/1.359, allocations: 188.4 kB / 0.8671 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003421/1.362, allocations: 434.4 kB / 0.8675 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003131/1.366, allocations: 1.028 MB / 0.8685 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006954/1.366, allocations: 0.4944 MB / 0.869 GB, free: 372 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002764/1.366, allocations: 131.9 kB / 0.8691 GB, free: 240 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003448/1.37, allocations: 1.454 MB / 0.8705 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.621e-05/1.37, allocations: 3.938 kB / 0.8705 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/1.37, allocations: 48 kB / 0.8706 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.928e-05/1.37, allocations: 28 kB / 0.8706 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/1.373, allocations: 1.188 MB / 0.8717 GB, free: 13.46 MB / 0.6231 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.008123/1.381, allocations: 3.652 MB / 0.8753 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003326/1.385, allocations: 1.236 MB / 0.8765 GB, free: 8.492 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/1.386, allocations: 0.6716 MB / 0.8772 GB, free: 7.816 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005448/1.387, allocations: 152.8 kB / 0.8773 GB, free: 7.668 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.554e-05/1.387, allocations: 47.56 kB / 0.8774 GB, free: 7.613 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=113): time 3.777e-06/1.387, allocations: 0 / 0.8774 GB, free: 7.613 MB / 0.6231 GB Notification: Performance of matching and sorting (n=113): time 0.009435/1.396, allocations: 2.743 MB / 0.88 GB, free: 4.852 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/1.396, allocations: 64.41 kB / 0.8801 GB, free: 4.777 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/1.398, allocations: 0.9173 MB / 0.881 GB, free: 3.848 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001263/1.398, allocations: 45.7 kB / 0.881 GB, free: 3.797 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006783/1.399, allocations: 0.6389 MB / 0.8817 GB, free: 3.152 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004973/1.399, allocations: 412.5 kB / 0.8821 GB, free: 2.746 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004157/1.4, allocations: 198.9 kB / 0.8822 GB, free: 2.547 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002625/1.4, allocations: 345.9 kB / 0.8826 GB, free: 2.203 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/1.401, allocations: 0.4905 MB / 0.8831 GB, free: 1.711 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/1.403, allocations: 0.584 MB / 0.8836 GB, free: 1.113 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002667/1.405, allocations: 1.058 MB / 0.8847 GB, free: 40 kB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/1.405, allocations: 0 / 0.8847 GB, free: 40 kB / 0.6231 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005946/1.411, allocations: 1.924 MB / 0.8865 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/1.411, allocations: 4 kB / 0.8865 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/1.411, allocations: 4 kB / 0.8865 GB, free: 14.08 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001496/1.413, allocations: 418.7 kB / 0.8869 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/1.414, allocations: 303.6 kB / 0.8872 GB, free: 13.37 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/1.426, allocations: 6.951 MB / 0.894 GB, free: 5.961 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/1.427, allocations: 139.3 kB / 0.8942 GB, free: 5.824 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001919/1.427, allocations: 77.09 kB / 0.8942 GB, free: 5.75 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.0007893/1.428, allocations: 257.7 kB / 0.8945 GB, free: 5.488 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000436/1.429, allocations: 139.1 kB / 0.8946 GB, free: 5.352 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007338/1.436, allocations: 2.719 MB / 0.8973 GB, free: 2.613 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.73e-05/1.436, allocations: 12 kB / 0.8973 GB, free: 2.602 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.124e-05/1.436, allocations: 4 kB / 0.8973 GB, free: 2.598 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/1.436, allocations: 11.92 kB / 0.8973 GB, free: 2.586 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008663/1.445, allocations: 3.326 MB / 0.9005 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/1.445, allocations: 4.875 kB / 0.9005 GB, free: 15.18 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/1.446, allocations: 295.7 kB / 0.9008 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/1.448, allocations: 415.4 kB / 0.9012 GB, free: 14.47 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/1.448, allocations: 55.91 kB / 0.9013 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/1.46, allocations: 6.97 MB / 0.9081 GB, free: 6.988 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.46, allocations: 0 / 0.9081 GB, free: 6.988 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007879/1.467, allocations: 2.607 MB / 0.9106 GB, free: 4.344 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008766/1.468, allocations: 234.7 kB / 0.9109 GB, free: 4.113 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/1.469, allocations: 35.98 kB / 0.9109 GB, free: 4.078 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000935/1.469, allocations: 71.88 kB / 0.911 GB, free: 4.008 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002653/1.47, allocations: 108.8 kB / 0.9111 GB, free: 3.902 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/1.47, allocations: 63.97 kB / 0.9111 GB, free: 3.84 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001247/1.471, allocations: 0.6273 MB / 0.9117 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9e-08/1.471, allocations: 0 / 0.9117 GB, free: 3.207 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002355/1.474, allocations: 0.6157 MB / 0.9123 GB, free: 2.59 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.009286/1.483, allocations: 3.729 MB / 0.916 GB, free: 14.81 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005326/1.488, allocations: 1.827 MB / 0.9178 GB, free: 12.93 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-05/1.488, allocations: 4 kB / 0.9178 GB, free: 12.93 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003321/1.491, allocations: 1.336 MB / 0.9191 GB, free: 11.54 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/1.493, allocations: 312.5 kB / 0.9194 GB, free: 11.25 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02669/1.52, allocations: 11.34 MB / 0.9304 GB, free: 15.68 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/1.521, allocations: 0.621 MB / 0.931 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.002623/1.524, allocations: 0.8395 MB / 0.9319 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/1.525, allocations: 0.6788 MB / 0.9325 GB, free: 13.52 MB / 0.6856 GB Notification: Performance of SimCode: time 9.82e-07/1.525, allocations: 0 / 0.9325 GB, free: 13.52 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1251/1.65, allocations: 41.17 MB / 0.9727 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.01/17.66, allocations: 11.08 kB / 0.9727 GB, free: 4.73 MB / 0.7169 GB " [Timeout remaining time 642] (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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: 22.745260457973927]