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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.005567/0.005567, allocations: 101 kB / 15.73 MB, free: 6.059 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.001339/0.001339, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6934/0.6934, allocations: 89.45 MB / 380 MB, free: 8.625 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002299/0.0023, allocations: 83.86 kB / 0.5139 GB, free: 7.176 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3265, allocations: 67.29 MB / 0.5796 GB, free: 15.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.5448/0.8714, allocations: 214.1 MB / 0.7887 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01983/0.8912, allocations: 17.33 MB / 0.8056 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.8928, allocations: 22.69 kB / 0.8056 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.8953, allocations: 0.6041 MB / 0.8062 GB, free: 0.6211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005999/0.9013, allocations: 1.663 MB / 0.8079 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005859/0.9072, allocations: 1.663 MB / 0.8095 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002816/0.91, allocations: 1.519 MB / 0.811 GB, free: 468 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006791/0.9107, allocations: 290.1 kB / 0.8112 GB, free: 384 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002704/0.9134, allocations: 1.094 MB / 0.8123 GB, free: 272 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008704/0.9143, allocations: 0.5983 MB / 0.8129 GB, free: 136 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.9145, allocations: 97.59 kB / 0.813 GB, free: 132 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008248/0.9228, allocations: 3.423 MB / 0.8163 GB, free: 36 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.9232, allocations: 239 kB / 0.8166 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008272/0.924, allocations: 0.5694 MB / 0.8171 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004595/0.9286, allocations: 2.208 MB / 0.8193 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.9286, allocations: 0 / 0.8193 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9287, allocations: 2.406 kB / 0.8193 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.594e-05/0.9287, allocations: 0 / 0.8193 GB, free: 14.9 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.003367/0.932, allocations: 1.703 MB / 0.8209 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.9321, allocations: 10.53 kB / 0.821 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001669/0.9323, allocations: 140.6 kB / 0.8211 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001951/0.9342, allocations: 286.7 kB / 0.8214 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.9354, allocations: 0.6383 MB / 0.822 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/0.9357, allocations: 192.7 kB / 0.8222 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.9358, allocations: 95.14 kB / 0.8223 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/0.9377, allocations: 1.003 MB / 0.8232 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.9378, allocations: 2.938 kB / 0.8232 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.499e-05/0.9379, allocations: 40.12 kB / 0.8233 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.9379, allocations: 24.62 kB / 0.8233 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/0.9395, allocations: 0.7907 MB / 0.8241 GB, free: 11.66 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.005305/0.9448, allocations: 4.044 MB / 0.828 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001894/0.9467, allocations: 0.8623 MB / 0.8289 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008457/0.9476, allocations: 430.8 kB / 0.8293 GB, free: 7.434 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001098/0.9487, allocations: 1.305 MB / 0.8306 GB, free: 5.898 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.9488, allocations: 39.28 kB / 0.8306 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 3.006e-06/0.9488, allocations: 0 / 0.8306 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005589/0.9544, allocations: 1.907 MB / 0.8325 GB, free: 3.918 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.9544, allocations: 60.06 kB / 0.8325 GB, free: 3.848 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008715/0.9553, allocations: 0.61 MB / 0.8331 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.231e-05/0.9554, allocations: 41.7 kB / 0.8331 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.9558, allocations: 436.3 kB / 0.8336 GB, free: 2.754 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.956, allocations: 284.7 kB / 0.8338 GB, free: 2.477 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/0.9563, allocations: 154.6 kB / 0.834 GB, free: 2.32 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.9565, allocations: 334 kB / 0.8343 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000738/0.9572, allocations: 315.1 kB / 0.8346 GB, free: 1.68 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008161/0.9581, allocations: 393.5 kB / 0.835 GB, free: 1.281 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.9596, allocations: 0.6887 MB / 0.8356 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.9596, allocations: 0 / 0.8356 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003253/0.9629, allocations: 1.213 MB / 0.8368 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.9629, allocations: 4 kB / 0.8368 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.9629, allocations: 0 / 0.8368 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009123/0.9639, allocations: 260.9 kB / 0.8371 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009506/0.9648, allocations: 195.6 kB / 0.8373 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006757/0.9716, allocations: 5.232 MB / 0.8424 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008359/0.9725, allocations: 91.52 kB / 0.8425 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.9726, allocations: 55.98 kB / 0.8425 GB, free: 9.141 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.0004689/0.9731, allocations: 215.9 kB / 0.8427 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.9733, allocations: 87.44 kB / 0.8428 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004305/0.9776, allocations: 1.82 MB / 0.8446 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.9776, allocations: 8 kB / 0.8446 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.9776, allocations: 0 / 0.8446 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.9776, allocations: 7.984 kB / 0.8446 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005092/0.9827, allocations: 2.429 MB / 0.847 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.9828, allocations: 0 / 0.847 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009852/0.9838, allocations: 199.6 kB / 0.8472 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008221/0.9846, allocations: 260.8 kB / 0.8474 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-05/0.9847, allocations: 35.97 kB / 0.8474 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006554/0.9913, allocations: 5.237 MB / 0.8526 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.9913, allocations: 4.062 kB / 0.8526 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004091/0.9954, allocations: 1.695 MB / 0.8542 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004231/0.9958, allocations: 252.2 kB / 0.8545 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.996, allocations: 23.94 kB / 0.8545 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005829/0.9966, allocations: 39.97 kB / 0.8545 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.9968, allocations: 71.34 kB / 0.8546 GB, free: 12.26 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.9969, allocations: 59.91 kB / 0.8546 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000649/0.9975, allocations: 443 kB / 0.8551 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9976, allocations: 0 / 0.8551 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001488/0.999, allocations: 478.8 kB / 0.8555 GB, free: 11.3 MB / 0.6231 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.005634/1.005, allocations: 2.735 MB / 0.8582 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002887/1.008, allocations: 1.247 MB / 0.8594 GB, free: 7.309 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.008, allocations: 4.125 kB / 0.8594 GB, free: 7.305 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001843/1.009, allocations: 0.9059 MB / 0.8603 GB, free: 6.375 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/1.011, allocations: 252.4 kB / 0.8605 GB, free: 6.137 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01599/1.027, allocations: 7.803 MB / 0.8682 GB, free: 14.2 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008465/1.028, allocations: 1.017 MB / 0.8692 GB, free: 13.15 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001471/1.029, allocations: 0.6112 MB / 0.8698 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008071/1.03, allocations: 443.2 kB / 0.8702 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of SimCode: time 6.01e-07/1.03, allocations: 0 / 0.8702 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07543/1.106, allocations: 28.3 MB / 0.8978 GB, free: 108 kB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.86, allocations: 15.09 kB / 0.8978 GB, free: 96 kB / 0.6544 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.csv","/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