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.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.001773/0.001773, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002174/0.002174, allocations: 215 kB / 23.04 MB, free: 5.074 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 7.961 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.7918/0.7918, allocations: 100.3 MB / 413.5 MB, free: 3.633 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.CrossFlowNTU,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",fmuType="cs",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.002492/0.002492, allocations: 84.86 kB / 0.564 GB, free: 35.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1332, allocations: 74.47 MB / 0.6367 GB, free: 7.637 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.6/0.7331, allocations: 215.7 MB / 0.8474 GB, free: 4.305 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02261/0.7557, allocations: 17.61 MB / 0.8646 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.7572, allocations: 73.59 kB / 0.8647 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.7592, allocations: 0.6196 MB / 0.8653 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.00582/0.765, allocations: 1.803 MB / 0.8671 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005757/0.7708, allocations: 1.703 MB / 0.8687 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003774/0.7746, allocations: 1.721 MB / 0.8704 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000613/0.7752, allocations: 188 kB / 0.8706 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003193/0.7784, allocations: 1.255 MB / 0.8718 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.7794, allocations: 0.6384 MB / 0.8724 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.7796, allocations: 96.69 kB / 0.8725 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007923/0.7875, allocations: 3.559 MB / 0.876 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004019/0.7879, allocations: 250.8 kB / 0.8762 GB, free: 12.9 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0008988/0.7888, allocations: 0.6254 MB / 0.8769 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005845/0.7947, allocations: 2.394 MB / 0.8792 GB, free: 9.867 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.7947, allocations: 0 / 0.8792 GB, free: 9.867 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.552e-06/0.7947, allocations: 3.938 kB / 0.8792 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.994e-05/0.7947, allocations: 4 kB / 0.8792 GB, free: 9.859 MB / 0.6231 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.003936/0.7986, allocations: 1.818 MB / 0.881 GB, free: 8.004 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.7987, allocations: 12.03 kB / 0.881 GB, free: 7.992 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.486e-05/0.7987, allocations: 22 kB / 0.881 GB, free: 7.969 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001894/0.7989, allocations: 151.5 kB / 0.8812 GB, free: 7.812 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0021/0.801, allocations: 294.8 kB / 0.8814 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.8029, allocations: 0.8458 MB / 0.8823 GB, free: 6.645 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002861/0.8032, allocations: 277.8 kB / 0.8825 GB, free: 6.332 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.8034, allocations: 92 kB / 0.8826 GB, free: 6.242 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.8055, allocations: 1.009 MB / 0.8836 GB, free: 5.203 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.8055, allocations: 0 / 0.8836 GB, free: 5.203 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.8056, allocations: 40 kB / 0.8836 GB, free: 5.164 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.8056, allocations: 24 kB / 0.8837 GB, free: 5.141 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001791/0.8074, allocations: 0.7846 MB / 0.8844 GB, free: 4.359 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.005699/0.8131, allocations: 3.84 MB / 0.8882 GB, free: 240 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.8151, allocations: 0.8084 MB / 0.889 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008538/0.816, allocations: 396.3 kB / 0.8893 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003799/0.8164, allocations: 112.5 kB / 0.8894 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.8164, allocations: 39.22 kB / 0.8895 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=80): time 2.425e-06/0.8164, allocations: 0 / 0.8895 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of matching and sorting (n=80): time 0.0055/0.8219, allocations: 1.69 MB / 0.8911 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.822, allocations: 60.06 kB / 0.8912 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/0.8231, allocations: 0.7995 MB / 0.892 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.8232, allocations: 41.7 kB / 0.892 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.00044/0.8236, allocations: 0.5206 MB / 0.8925 GB, free: 11.7 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003074/0.8239, allocations: 289.5 kB / 0.8928 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002864/0.8242, allocations: 150.6 kB / 0.8929 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.8244, allocations: 341.9 kB / 0.8933 GB, free: 10.91 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007601/0.8252, allocations: 305.8 kB / 0.8936 GB, free: 10.62 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000833/0.826, allocations: 387.1 kB / 0.8939 GB, free: 10.22 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.8275, allocations: 0.6862 MB / 0.8946 GB, free: 9.523 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.8275, allocations: 4 kB / 0.8946 GB, free: 9.52 MB / 0.6387 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003485/0.831, allocations: 1.237 MB / 0.8958 GB, free: 8.27 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.8311, allocations: 8 kB / 0.8958 GB, free: 8.262 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.8311, allocations: 7.875 kB / 0.8958 GB, free: 8.254 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009567/0.832, allocations: 242.4 kB / 0.8961 GB, free: 8.008 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009732/0.833, allocations: 203.8 kB / 0.8963 GB, free: 7.809 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/0.8396, allocations: 4.924 MB / 0.9011 GB, free: 2.547 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008506/0.8404, allocations: 95.42 kB / 0.9011 GB, free: 2.453 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/0.8406, allocations: 55.97 kB / 0.9012 GB, free: 2.398 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 (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.0004835/0.8411, allocations: 225.7 kB / 0.9014 GB, free: 2.168 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000271/0.8414, allocations: 107.3 kB / 0.9015 GB, free: 2.062 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004495/0.8458, allocations: 1.821 MB / 0.9033 GB, free: 228 kB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.8459, allocations: 8 kB / 0.9033 GB, free: 220 kB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.8459, allocations: 11.92 kB / 0.9033 GB, free: 208 kB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.021e-05/0.8459, allocations: 11.92 kB / 0.9033 GB, free: 196 kB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00543/0.8513, allocations: 2.396 MB / 0.9057 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.8513, allocations: 4 kB / 0.9057 GB, free: 13.71 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.8523, allocations: 195.8 kB / 0.9059 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008237/0.8532, allocations: 266.4 kB / 0.9061 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.8533, allocations: 35.97 kB / 0.9061 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006404/0.8597, allocations: 4.917 MB / 0.9109 GB, free: 7.953 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.8597, allocations: 0 / 0.9109 GB, free: 7.953 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/0.8639, allocations: 1.733 MB / 0.9126 GB, free: 6.18 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005084/0.8645, allocations: 187 kB / 0.9128 GB, free: 5.996 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/0.8647, allocations: 20 kB / 0.9128 GB, free: 5.977 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000666/0.8653, allocations: 43.95 kB / 0.9129 GB, free: 5.934 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.8655, allocations: 76.81 kB / 0.913 GB, free: 5.859 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.8656, allocations: 51.97 kB / 0.913 GB, free: 5.809 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009353/0.8665, allocations: 0.5604 MB / 0.9136 GB, free: 5.238 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8665, allocations: 0 / 0.9136 GB, free: 5.238 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001542/0.8681, allocations: 482.8 kB / 0.914 GB, free: 4.766 MB / 0.6544 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.005653/0.8737, allocations: 2.732 MB / 0.9167 GB, free: 1.984 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003039/0.8768, allocations: 1.203 MB / 0.9179 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8768, allocations: 0 / 0.9179 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001983/0.8788, allocations: 0.8806 MB / 0.9187 GB, free: 15.82 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001554/0.8803, allocations: 280.9 kB / 0.919 GB, free: 15.56 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/0.8972, allocations: 8.622 MB / 0.9274 GB, free: 6.746 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/0.898, allocations: 1.088 MB / 0.9285 GB, free: 5.629 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001367/0.8994, allocations: 0.6302 MB / 0.9291 GB, free: 4.992 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00086/0.9003, allocations: 0.5187 MB / 0.9296 GB, free: 4.477 MB / 0.67 GB Notification: Performance of SimCode: time 1.112e-06/0.9003, allocations: 0 / 0.9296 GB, free: 4.477 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08278/0.983, allocations: 31.68 MB / 0.9605 GB, free: 5.051 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.14/15.12, allocations: 4 kB / 0.9605 GB, free: 5.047 MB / 0.7012 GB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.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: 18.91293771599885]