Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",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.006312/0.006312, allocations: 96.7 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.001462/0.001462, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6171/0.6171, allocations: 91.2 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 79.88 kB / 0.5164 GB, free: 9.547 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1173, allocations: 67.69 MB / 0.5825 GB, free: 5.773 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.3776/0.495, allocations: 140.5 MB / 0.7197 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00335/0.4983, allocations: 3.289 MB / 0.7229 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.4987, allocations: 19.88 kB / 0.7229 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000533/0.4992, allocations: 131.1 kB / 0.723 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004856/0.4997, allocations: 182.9 kB / 0.7232 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.5002, allocations: 199.2 kB / 0.7234 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004071/0.5006, allocations: 342.5 kB / 0.7237 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.5008, allocations: 58.22 kB / 0.7238 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004362/0.5012, allocations: 203 kB / 0.724 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.5014, allocations: 127.3 kB / 0.7241 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.5015, allocations: 12 kB / 0.7241 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004479/0.5019, allocations: 259.5 kB / 0.7244 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.454e-05/0.502, allocations: 31.8 kB / 0.7244 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.5021, allocations: 115.3 kB / 0.7245 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004795/0.5026, allocations: 318.5 kB / 0.7248 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.5026, allocations: 0 / 0.7248 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.313e-06/0.5026, allocations: 0 / 0.7248 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.5026, allocations: 0 / 0.7248 GB, free: 6.762 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007234/0.5033, allocations: 0.5644 MB / 0.7253 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.5034, allocations: 12.03 kB / 0.7254 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.945e-05/0.5034, allocations: 35.62 kB / 0.7254 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.261e-05/0.5035, allocations: 32.75 kB / 0.7254 GB, free: 6.062 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.504, allocations: 368.2 kB / 0.7258 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.504, allocations: 16.53 kB / 0.7258 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.5041, allocations: 12.56 kB / 0.7258 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.5043, allocations: 162.6 kB / 0.726 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.5043, allocations: 0 / 0.726 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.5043, allocations: 8 kB / 0.726 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.5043, allocations: 8 kB / 0.726 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.5045, allocations: 67.91 kB / 0.726 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007267/0.5052, allocations: 0.73 MB / 0.7267 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.5053, allocations: 85.17 kB / 0.7268 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.477e-05/0.5054, allocations: 37.73 kB / 0.7269 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001403/0.5055, allocations: 162.2 kB / 0.727 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.5056, allocations: 38.5 kB / 0.7271 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.5056, allocations: 4 kB / 0.7271 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0006402/0.5062, allocations: 329.3 kB / 0.7274 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.5063, allocations: 77.11 kB / 0.7274 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.5066, allocations: 321.6 kB / 0.7278 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.5066, allocations: 29.7 kB / 0.7278 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.987e-05/0.5067, allocations: 164 kB / 0.7279 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.5067, allocations: 27.8 kB / 0.728 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.825e-05/0.5068, allocations: 25.72 kB / 0.728 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.5069, allocations: 338.8 kB / 0.7283 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.11e-05/0.5069, allocations: 19.94 kB / 0.7283 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.226e-05/0.507, allocations: 47.42 kB / 0.7284 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.655e-05/0.5071, allocations: 79.36 kB / 0.7285 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.5071, allocations: 0 / 0.7285 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002535/0.5073, allocations: 155.5 kB / 0.7286 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.5074, allocations: 14.59 kB / 0.7286 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.5074, allocations: 0 / 0.7286 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001932/0.5076, allocations: 41.77 kB / 0.7287 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.923e-05/0.5076, allocations: 15.98 kB / 0.7287 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.5093, allocations: 2.766 MB / 0.7314 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.814e-05/0.5094, allocations: 7.891 kB / 0.7314 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.5094, allocations: 4 kB / 0.7314 GB, free: 15.35 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.5095, allocations: 142.5 kB / 0.7315 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.5096, allocations: 32.62 kB / 0.7316 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.5099, allocations: 161 kB / 0.7317 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.5099, allocations: 0 / 0.7317 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.5099, allocations: 0 / 0.7317 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.5099, allocations: 0 / 0.7317 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004611/0.5104, allocations: 0.5321 MB / 0.7322 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.5104, allocations: 0 / 0.7322 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.831e-05/0.5104, allocations: 5.25 kB / 0.7322 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.5105, allocations: 45.81 kB / 0.7323 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.5105, allocations: 4 kB / 0.7323 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.5121, allocations: 2.757 MB / 0.735 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5121, allocations: 7.969 kB / 0.735 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002797/0.5124, allocations: 338 kB / 0.7353 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/0.5125, allocations: 112.9 kB / 0.7354 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.5125, allocations: 4 kB / 0.7354 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.5126, allocations: 0 / 0.7354 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.5126, allocations: 19.95 kB / 0.7354 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.5127, allocations: 4 kB / 0.7354 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001901/0.5128, allocations: 227.2 kB / 0.7357 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5129, allocations: 4 kB / 0.7357 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003461/0.5132, allocations: 43.98 kB / 0.7357 GB, free: 10.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (sink1.inlet.m_flow,sink.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 (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006223/0.5138, allocations: 0.9273 MB / 0.7366 GB, free: 9.539 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003816/0.5142, allocations: 281.2 kB / 0.7369 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5142, allocations: 4.125 kB / 0.7369 GB, free: 9.234 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.5145, allocations: 249.4 kB / 0.7371 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005434/0.515, allocations: 73.06 kB / 0.7372 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.5177, allocations: 2.608 MB / 0.7397 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.518, allocations: 0.7518 MB / 0.7405 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.984e-05/0.5181, allocations: 34.2 kB / 0.7405 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.631e-05/0.5182, allocations: 79.41 kB / 0.7406 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of SimCode: time 3.61e-07/0.5182, allocations: 0 / 0.7406 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.822/1.34, allocations: 6.654 MB / 0.7471 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.791/11.13, allocations: 0 / 0.7471 GB, free: 14.76 MB / 0.5919 GB (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches