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.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.CrossFlowNTU,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,fileNamePrefix="ThermofluidStream_dev_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.007826/0.007826, allocations: 98.91 kB / 15.73 MB, free: 6.055 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.001984/0.001984, allocations: 192.7 kB / 16.67 MB, free: 5.977 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7181/0.7181, allocations: 93.7 MB / 384.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002364/0.002364, allocations: 79.88 kB / 0.5199 GB, free: 6.297 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1323, allocations: 68.26 MB / 0.5866 GB, free: 1.953 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.5135/0.6459, allocations: 214.3 MB / 0.7959 GB, free: 12.15 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02095/0.6669, allocations: 17.42 MB / 0.8129 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.6681, allocations: 51.69 kB / 0.813 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.6698, allocations: 0.617 MB / 0.8136 GB, free: 10 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004685/0.6745, allocations: 1.741 MB / 0.8153 GB, free: 8.254 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.004392/0.6789, allocations: 1.663 MB / 0.8169 GB, free: 6.594 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.002465/0.6814, allocations: 1.728 MB / 0.8186 GB, free: 4.855 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004822/0.6819, allocations: 296.8 kB / 0.8189 GB, free: 4.559 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.6842, allocations: 1.191 MB / 0.8201 GB, free: 3.363 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007597/0.685, allocations: 0.6296 MB / 0.8207 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.6851, allocations: 96 kB / 0.8208 GB, free: 2.637 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006832/0.692, allocations: 3.424 MB / 0.8241 GB, free: 15.21 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002745/0.6923, allocations: 258.8 kB / 0.8244 GB, free: 14.95 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0007022/0.693, allocations: 0.6176 MB / 0.825 GB, free: 14.33 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.004262/0.6973, allocations: 2.371 MB / 0.8273 GB, free: 11.95 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.6973, allocations: 4 kB / 0.8273 GB, free: 11.95 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6973, allocations: 0 / 0.8273 GB, free: 11.95 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.47e-05/0.6973, allocations: 0 / 0.8273 GB, free: 11.95 MB / 0.67 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.003537/0.7008, allocations: 1.913 MB / 0.8291 GB, free: 9.977 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.7009, allocations: 8.031 kB / 0.8291 GB, free: 9.969 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001708/0.7011, allocations: 139.6 kB / 0.8293 GB, free: 9.824 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/0.7031, allocations: 301.5 kB / 0.8296 GB, free: 9.531 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/0.7048, allocations: 0.9296 MB / 0.8305 GB, free: 8.559 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/0.705, allocations: 200.7 kB / 0.8307 GB, free: 8.34 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.7052, allocations: 92 kB / 0.8308 GB, free: 8.25 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/0.7072, allocations: 1.016 MB / 0.8317 GB, free: 7.203 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.7072, allocations: 0 / 0.8317 GB, free: 7.203 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.569e-05/0.7073, allocations: 39.94 kB / 0.8318 GB, free: 7.164 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.7074, allocations: 20 kB / 0.8318 GB, free: 7.145 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.7091, allocations: 0.7768 MB / 0.8326 GB, free: 6.371 MB / 0.67 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.005371/0.7145, allocations: 4.121 MB / 0.8366 GB, free: 1.902 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001973/0.7165, allocations: 0.8511 MB / 0.8374 GB, free: 1.047 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008327/0.7173, allocations: 435.2 kB / 0.8378 GB, free: 0.6133 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009749/0.7183, allocations: 1.307 MB / 0.8391 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.7183, allocations: 43.16 kB / 0.8392 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=80): time 2.395e-06/0.7183, allocations: 0 / 0.8392 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of matching and sorting (n=80): time 0.005411/0.7238, allocations: 1.927 MB / 0.841 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.7238, allocations: 64.06 kB / 0.8411 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.7249, allocations: 0.7995 MB / 0.8419 GB, free: 12.06 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.093e-05/0.7249, allocations: 41.7 kB / 0.8419 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004296/0.7254, allocations: 0.5205 MB / 0.8424 GB, free: 11.49 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.7256, allocations: 289.5 kB / 0.8427 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.7259, allocations: 146.6 kB / 0.8428 GB, free: 11.05 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.726, allocations: 337.9 kB / 0.8432 GB, free: 10.72 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007631/0.7268, allocations: 313.8 kB / 0.8435 GB, free: 10.41 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008126/0.7276, allocations: 395 kB / 0.8438 GB, free: 10.01 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.7292, allocations: 0.6823 MB / 0.8445 GB, free: 9.32 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.7293, allocations: 0 / 0.8445 GB, free: 9.32 MB / 0.6856 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003286/0.7325, allocations: 1.233 MB / 0.8457 GB, free: 8.066 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.7326, allocations: 8 kB / 0.8457 GB, free: 8.059 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.7326, allocations: 0 / 0.8457 GB, free: 8.059 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008876/0.7335, allocations: 259.2 kB / 0.846 GB, free: 7.797 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000952/0.7344, allocations: 199.7 kB / 0.8462 GB, free: 7.602 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006647/0.7411, allocations: 5.233 MB / 0.8513 GB, free: 1.949 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006453/0.7418, allocations: 87.44 kB / 0.8514 GB, free: 1.863 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.7419, allocations: 55.98 kB / 0.8514 GB, free: 1.809 MB / 0.6856 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.0004199/0.7423, allocations: 227.2 kB / 0.8516 GB, free: 1.578 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.7425, allocations: 107.3 kB / 0.8517 GB, free: 1.473 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.287/1.029, allocations: 1.837 MB / 0.8535 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/1.03, allocations: 9.516 kB / 0.8535 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/1.03, allocations: 5.719 kB / 0.8535 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-05/1.03, allocations: 4.812 kB / 0.8535 GB, free: 239.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005579/1.035, allocations: 2.5 MB / 0.856 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/1.035, allocations: 2.094 kB / 0.856 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009711/1.036, allocations: 192.8 kB / 0.8562 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007569/1.037, allocations: 249.5 kB / 0.8564 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.863e-05/1.037, allocations: 36.16 kB / 0.8564 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005052/1.042, allocations: 5.241 MB / 0.8616 GB, free: 234.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.042, allocations: 2.125 kB / 0.8616 GB, free: 234.3 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004009/1.046, allocations: 1.737 MB / 0.8633 GB, free: 233.7 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003745/1.047, allocations: 260.3 kB / 0.8635 GB, free: 233.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/1.047, allocations: 22.84 kB / 0.8635 GB, free: 233.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005406/1.047, allocations: 42.67 kB / 0.8636 GB, free: 233.5 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/1.047, allocations: 75.61 kB / 0.8636 GB, free: 233.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/1.048, allocations: 51.38 kB / 0.8637 GB, free: 233.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0008965/1.048, allocations: 0.5568 MB / 0.8642 GB, free: 233.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/1.048, allocations: 1 kB / 0.8642 GB, free: 233.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001438/1.05, allocations: 480.9 kB / 0.8647 GB, free: 233.2 MB / 0.6856 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.00499/1.055, allocations: 2.745 MB / 0.8674 GB, free: 231.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002614/1.058, allocations: 1.252 MB / 0.8686 GB, free: 231.3 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/1.058, allocations: 2.625 kB / 0.8686 GB, free: 231.3 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001632/1.059, allocations: 0.9135 MB / 0.8695 GB, free: 230.8 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/1.06, allocations: 271.9 kB / 0.8697 GB, free: 230.7 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/1.076, allocations: 8.625 MB / 0.8782 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006777/1.077, allocations: 1.079 MB / 0.8792 GB, free: 226 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001492/1.079, allocations: 0.632 MB / 0.8798 GB, free: 225.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007261/1.079, allocations: 0.5236 MB / 0.8803 GB, free: 225.5 MB / 0.6856 GB Notification: Performance of SimCode: time 8.31e-07/1.079, allocations: 3.938 kB / 0.8804 GB, free: 225.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.869/3.949, allocations: 30.83 MB / 0.9105 GB, free: 210.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/19.33, allocations: 4.062 kB / 0.9105 GB, free: 210.6 MB / 0.6856 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) 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) Reference file matches