Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.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_zeroMassFlow,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",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.00468/0.004681, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001291/0.001291, allocations: 202.5 kB / 16.68 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6677/0.6677, allocations: 89.47 MB / 380 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002156/0.002156, allocations: 79.88 kB / 0.5139 GB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1286, allocations: 67.29 MB / 0.5797 GB, free: 8.363 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow): time 0.4772/0.6058, allocations: 201.6 MB / 0.7766 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01671/0.6225, allocations: 14.96 MB / 0.7912 GB, free: 3.336 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000689/0.6232, allocations: 19.88 kB / 0.7912 GB, free: 3.316 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.6246, allocations: 0.5006 MB / 0.7917 GB, free: 2.816 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.6277, allocations: 1.263 MB / 0.7929 GB, free: 1.547 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003547/0.6313, allocations: 1.468 MB / 0.7943 GB, free: 80 kB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.001543/0.6329, allocations: 1.215 MB / 0.7955 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003759/0.6332, allocations: 248 kB / 0.7958 GB, free: 14.61 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.6351, allocations: 1.01 MB / 0.7968 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00055/0.6357, allocations: 489.8 kB / 0.7972 GB, free: 13.11 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.6358, allocations: 80 kB / 0.7973 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004927/0.6407, allocations: 2.598 MB / 0.7998 GB, free: 10.43 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.641, allocations: 195.2 kB / 0.8 GB, free: 10.24 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0005068/0.6415, allocations: 473.5 kB / 0.8005 GB, free: 9.777 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003525/0.645, allocations: 1.818 MB / 0.8022 GB, free: 7.953 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.645, allocations: 4 kB / 0.8023 GB, free: 7.949 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.503e-06/0.645, allocations: 4 kB / 0.8023 GB, free: 7.945 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.159e-05/0.6451, allocations: 0 / 0.8023 GB, free: 7.945 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002595/0.6477, allocations: 1.436 MB / 0.8037 GB, free: 6.457 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.6477, allocations: 8.031 kB / 0.8037 GB, free: 6.449 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.6479, allocations: 122.5 kB / 0.8038 GB, free: 6.32 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001627/0.6495, allocations: 231.2 kB / 0.804 GB, free: 6.094 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008477/0.6504, allocations: 0.5376 MB / 0.8045 GB, free: 5.516 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/0.6506, allocations: 184.7 kB / 0.8047 GB, free: 5.309 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.6507, allocations: 75.98 kB / 0.8048 GB, free: 5.234 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.6523, allocations: 0.8258 MB / 0.8056 GB, free: 4.395 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.6524, allocations: 3.938 kB / 0.8056 GB, free: 4.391 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.006e-05/0.6524, allocations: 28 kB / 0.8056 GB, free: 4.363 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.6525, allocations: 16 kB / 0.8056 GB, free: 4.348 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.654, allocations: 0.6597 MB / 0.8063 GB, free: 3.688 MB / 0.6387 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.004181/0.6581, allocations: 3.138 MB / 0.8093 GB, free: 284 kB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.6596, allocations: 0.6035 MB / 0.8099 GB, free: 15.66 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007244/0.6603, allocations: 351.2 kB / 0.8103 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006739/0.661, allocations: 0.8991 MB / 0.8111 GB, free: 14.22 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.661, allocations: 35.12 kB / 0.8112 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=58): time 2.194e-06/0.661, allocations: 4 kB / 0.8112 GB, free: 14.17 MB / 0.6544 GB Notification: Performance of matching and sorting (n=58): time 0.004886/0.6659, allocations: 1.675 MB / 0.8128 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.666, allocations: 55.97 kB / 0.8129 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006359/0.6666, allocations: 0.5187 MB / 0.8134 GB, free: 11.83 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.268e-05/0.6667, allocations: 33.7 kB / 0.8134 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002708/0.667, allocations: 372.8 kB / 0.8138 GB, free: 11.42 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.6672, allocations: 214.1 kB / 0.814 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002012/0.6674, allocations: 114.2 kB / 0.8141 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.6676, allocations: 374.8 kB / 0.8144 GB, free: 10.72 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006501/0.6682, allocations: 257 kB / 0.8147 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006983/0.6689, allocations: 312.6 kB / 0.815 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.6703, allocations: 0.5406 MB / 0.8155 GB, free: 9.602 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.6703, allocations: 0 / 0.8155 GB, free: 9.602 MB / 0.6544 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00286/0.6731, allocations: 1.012 MB / 0.8165 GB, free: 8.574 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.6732, allocations: 5.719 kB / 0.8165 GB, free: 8.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-06/0.6732, allocations: 4.547 kB / 0.8165 GB, free: 8.566 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008379/0.674, allocations: 234.4 kB / 0.8167 GB, free: 8.328 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007281/0.6748, allocations: 151.8 kB / 0.8169 GB, free: 8.18 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00619/0.681, allocations: 5.094 MB / 0.8218 GB, free: 2.664 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.6816, allocations: 87.44 kB / 0.8219 GB, free: 2.578 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.236e-05/0.6817, allocations: 39.98 kB / 0.822 GB, free: 2.539 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (58): * Single equations (assignments): 55 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003523/0.6821, allocations: 193.7 kB / 0.8221 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.6822, allocations: 71.52 kB / 0.8222 GB, free: 2.27 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/0.6858, allocations: 1.38 MB / 0.8236 GB, free: 0.8867 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.6858, allocations: 7.984 kB / 0.8236 GB, free: 0.8789 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.6858, allocations: 7.562 kB / 0.8236 GB, free: 0.875 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/0.6858, allocations: 7.922 kB / 0.8236 GB, free: 0.8672 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004344/0.6902, allocations: 2.036 MB / 0.8256 GB, free: 14.72 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.6902, allocations: 8.156 kB / 0.8256 GB, free: 14.71 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007402/0.691, allocations: 127.8 kB / 0.8257 GB, free: 14.59 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007749/0.6918, allocations: 230.3 kB / 0.8259 GB, free: 14.36 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.764e-05/0.6918, allocations: 23.98 kB / 0.8259 GB, free: 14.33 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006174/0.698, allocations: 5.107 MB / 0.8309 GB, free: 8.805 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.698, allocations: 0 / 0.8309 GB, free: 8.805 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00352/0.7016, allocations: 1.398 MB / 0.8323 GB, free: 7.363 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003093/0.7019, allocations: 200.5 kB / 0.8325 GB, free: 7.148 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.702, allocations: 15.95 kB / 0.8325 GB, free: 7.133 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.7025, allocations: 43.91 kB / 0.8325 GB, free: 7.09 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.7026, allocations: 52.36 kB / 0.8326 GB, free: 7.039 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.844e-05/0.7027, allocations: 31.98 kB / 0.8326 GB, free: 7.008 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00048/0.7032, allocations: 382.8 kB / 0.833 GB, free: 6.637 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7032, allocations: 0 / 0.833 GB, free: 6.637 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001096/0.7043, allocations: 399 kB / 0.8334 GB, free: 6.246 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,flowResistanceB.inlet.m_flow,flowResistanceA.inlet.m_flow) * 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 (50): * Single equations (assignments): 47 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004781/0.7091, allocations: 2.349 MB / 0.8357 GB, free: 3.863 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002506/0.7116, allocations: 1.065 MB / 0.8367 GB, free: 2.758 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.7117, allocations: 4 kB / 0.8367 GB, free: 2.754 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.7133, allocations: 0.7915 MB / 0.8375 GB, free: 1.922 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.7144, allocations: 197.9 kB / 0.8377 GB, free: 1.738 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2658/0.9802, allocations: 6.52 MB / 0.844 GB, free: 227.9 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.9806, allocations: 0.9395 MB / 0.845 GB, free: 227.2 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0009577/0.9816, allocations: 425.3 kB / 0.8454 GB, free: 227.2 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004721/0.9821, allocations: 340.7 kB / 0.8457 GB, free: 227 MB / 0.67 GB Notification: Performance of SimCode: time 7.32e-07/0.9821, allocations: 0 / 0.8457 GB, free: 227 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06123/1.043, allocations: 23.54 MB / 0.8687 GB, free: 220.6 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.78, allocations: 10.11 kB / 0.8687 GB, free: 220.6 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_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_CounterFlowNTU_zeroMassFlow.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches