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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005678/0.005678, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001832/0.001833, allocations: 195.2 kB / 16.67 MB, free: 5.934 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6791/0.6791, allocations: 89.47 MB / 380 MB, free: 8.609 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002563/0.002563, allocations: 87.86 kB / 0.5139 GB, free: 7.164 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3404, allocations: 67.29 MB / 0.5796 GB, free: 15.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.5401/0.8806, allocations: 234.7 MB / 0.8088 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02037/0.901, allocations: 22.19 MB / 0.8305 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.9028, allocations: 28.78 kB / 0.8305 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00244/0.9053, allocations: 0.7797 MB / 0.8313 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005977/0.9113, allocations: 1.947 MB / 0.8332 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006581/0.9179, allocations: 2.176 MB / 0.8353 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003293/0.9212, allocations: 2.015 MB / 0.8373 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006462/0.9219, allocations: 410 kB / 0.8377 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002594/0.9245, allocations: 1.285 MB / 0.8389 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.9256, allocations: 0.7982 MB / 0.8397 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001885/0.9258, allocations: 136.5 kB / 0.8398 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008854/0.9346, allocations: 4.076 MB / 0.8438 GB, free: 6.797 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004732/0.9351, allocations: 332.5 kB / 0.8441 GB, free: 6.492 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.9365, allocations: 0.7678 MB / 0.8449 GB, free: 5.738 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00873/0.9452, allocations: 2.825 MB / 0.8477 GB, free: 3.109 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.9453, allocations: 0 / 0.8477 GB, free: 3.109 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.413e-06/0.9453, allocations: 0 / 0.8477 GB, free: 3.109 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.885e-05/0.9453, allocations: 0 / 0.8477 GB, free: 3.109 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: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.006712/0.9521, allocations: 2.166 MB / 0.8498 GB, free: 0.9023 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.9521, allocations: 12.03 kB / 0.8498 GB, free: 0.8906 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003295/0.9525, allocations: 193.8 kB / 0.85 GB, free: 0.6914 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005114/0.9576, allocations: 398.7 kB / 0.8503 GB, free: 308 kB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002405/0.9601, allocations: 0.7829 MB / 0.8511 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005942/0.9607, allocations: 348.1 kB / 0.8514 GB, free: 15.13 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003393/0.961, allocations: 134.5 kB / 0.8516 GB, free: 15 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004785/0.9658, allocations: 1.454 MB / 0.853 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.143e-05/0.9659, allocations: 3.938 kB / 0.853 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001831/0.9661, allocations: 52 kB / 0.853 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.002e-05/0.9661, allocations: 28 kB / 0.8531 GB, free: 13.42 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004269/0.9704, allocations: 1.192 MB / 0.8542 GB, free: 12.23 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.01138/0.9818, allocations: 5.387 MB / 0.8595 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00478/0.9866, allocations: 1.308 MB / 0.8608 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00238/0.9891, allocations: 0.7099 MB / 0.8615 GB, free: 4.492 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001872/0.991, allocations: 1.787 MB / 0.8632 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.913e-05/0.991, allocations: 47.56 kB / 0.8633 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=113): time 4.699e-06/0.9911, allocations: 2.625 kB / 0.8633 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113): time 0.01052/1.002, allocations: 3.023 MB / 0.8662 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/1.002, allocations: 67.03 kB / 0.8663 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000971/1.003, allocations: 0.6886 MB / 0.8669 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001291/1.003, allocations: 45.7 kB / 0.867 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004396/1.003, allocations: 0.5285 MB / 0.8675 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003765/1.004, allocations: 414.4 kB / 0.8679 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003654/1.004, allocations: 202.9 kB / 0.8681 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001784/1.004, allocations: 345.9 kB / 0.8684 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/1.005, allocations: 498.3 kB / 0.8689 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/1.007, allocations: 0.588 MB / 0.8695 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002595/1.009, allocations: 1.059 MB / 0.8705 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/1.009, allocations: 0 / 0.8705 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005597/1.015, allocations: 1.903 MB / 0.8724 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/1.015, allocations: 4 kB / 0.8724 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/1.015, allocations: 0 / 0.8724 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/1.017, allocations: 417.7 kB / 0.8728 GB, free: 8.355 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/1.018, allocations: 301.9 kB / 0.8731 GB, free: 8.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/1.029, allocations: 7.423 MB / 0.8803 GB, free: 124 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/1.03, allocations: 123.3 kB / 0.8804 GB, free: 0 / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/1.03, allocations: 75.97 kB / 0.8805 GB, free: 15.93 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.0005201/1.031, allocations: 259.9 kB / 0.8807 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002369/1.031, allocations: 115.3 kB / 0.8809 GB, free: 15.56 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006839/1.038, allocations: 2.694 MB / 0.8835 GB, free: 12.86 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/1.038, allocations: 16 kB / 0.8835 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/1.038, allocations: 4 kB / 0.8835 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/1.038, allocations: 7.969 kB / 0.8835 GB, free: 12.83 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008077/1.046, allocations: 3.53 MB / 0.887 GB, free: 9.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/1.046, allocations: 4 kB / 0.887 GB, free: 9.246 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/1.048, allocations: 294.2 kB / 0.8872 GB, free: 8.969 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/1.049, allocations: 421.5 kB / 0.8876 GB, free: 8.547 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/1.049, allocations: 43.97 kB / 0.8877 GB, free: 8.504 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/1.059, allocations: 7.423 MB / 0.8949 GB, free: 0.5586 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.059, allocations: 0 / 0.8949 GB, free: 0.5586 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006875/1.066, allocations: 2.592 MB / 0.8975 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005685/1.067, allocations: 300.2 kB / 0.8978 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/1.067, allocations: 24 kB / 0.8978 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007863/1.068, allocations: 75.92 kB / 0.8978 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002247/1.068, allocations: 103.4 kB / 0.8979 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/1.068, allocations: 75.83 kB / 0.898 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000647/1.069, allocations: 491 kB / 0.8985 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/1.069, allocations: 0 / 0.8985 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001638/1.071, allocations: 0.604 MB / 0.8991 GB, free: 12.27 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.008364/1.079, allocations: 3.721 MB / 0.9027 GB, free: 8.582 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.004657/1.084, allocations: 1.901 MB / 0.9046 GB, free: 6.641 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.084, allocations: 0 / 0.9046 GB, free: 6.641 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.003231/1.087, allocations: 1.373 MB / 0.9059 GB, free: 5.242 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/1.088, allocations: 284 kB / 0.9062 GB, free: 4.98 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/1.11, allocations: 10.38 MB / 0.9163 GB, free: 10.47 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000834/1.111, allocations: 1.121 MB / 0.9174 GB, free: 9.316 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001794/1.113, allocations: 0.8113 MB / 0.9182 GB, free: 8.527 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009714/1.114, allocations: 0.5812 MB / 0.9188 GB, free: 7.945 MB / 0.67 GB Notification: Performance of SimCode: time 8.31e-07/1.114, allocations: 0 / 0.9188 GB, free: 7.945 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08566/1.199, allocations: 35.76 MB / 0.9537 GB, free: 4.469 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/13.11, allocations: 9.844 kB / 0.9537 GB, free: 4.465 MB / 0.7012 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) 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) Reference file matches