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.005091/0.005095, allocations: 101.9 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.001143/0.001144, allocations: 193.4 kB / 16.67 MB, free: 5.922 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7054/0.7054, allocations: 91.2 MB / 381.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002804/0.002804, allocations: 79.88 kB / 0.5164 GB, free: 4.609 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3393, allocations: 67.69 MB / 0.5825 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.141/0.4804, allocations: 140.5 MB / 0.7197 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003224/0.4836, allocations: 3.303 MB / 0.7229 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002355/0.4839, allocations: 11.94 kB / 0.7229 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005267/0.4845, allocations: 131.1 kB / 0.723 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004588/0.4849, allocations: 178.9 kB / 0.7232 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004347/0.4854, allocations: 207.2 kB / 0.7234 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003371/0.4857, allocations: 338.5 kB / 0.7237 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.4859, allocations: 64.5 kB / 0.7238 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.4863, allocations: 211 kB / 0.724 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.4865, allocations: 119.4 kB / 0.7241 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.183e-05/0.4865, allocations: 12 kB / 0.7241 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005051/0.487, allocations: 255.5 kB / 0.7244 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.543e-05/0.4871, allocations: 39.78 kB / 0.7244 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.79e-05/0.4872, allocations: 111.3 kB / 0.7245 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004462/0.4877, allocations: 319.7 kB / 0.7248 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.4877, allocations: 0 / 0.7248 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4877, allocations: 0 / 0.7248 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.969e-06/0.4877, allocations: 0 / 0.7248 GB, free: 11.77 MB / 0.5762 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.0007523/0.4885, allocations: 0.5527 MB / 0.7254 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.4885, allocations: 8.031 kB / 0.7254 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.9e-05/0.4886, allocations: 50.67 kB / 0.7254 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.08e-05/0.4886, allocations: 36.75 kB / 0.7254 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.4892, allocations: 364.2 kB / 0.7258 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.4892, allocations: 8.609 kB / 0.7258 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.4892, allocations: 12.38 kB / 0.7258 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.4895, allocations: 154.6 kB / 0.726 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.4895, allocations: 3.938 kB / 0.726 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.4895, allocations: 8 kB / 0.726 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4895, allocations: 0 / 0.726 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.4896, allocations: 67.91 kB / 0.726 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007818/0.4904, allocations: 0.735 MB / 0.7268 GB, free: 9.609 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.4906, allocations: 89.09 kB / 0.7268 GB, free: 9.504 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.313e-05/0.4906, allocations: 29.72 kB / 0.7269 GB, free: 9.469 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001901/0.4908, allocations: 162.3 kB / 0.727 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.4909, allocations: 46.5 kB / 0.7271 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.4909, allocations: 0 / 0.7271 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.0007059/0.4916, allocations: 329.7 kB / 0.7274 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.4917, allocations: 77.11 kB / 0.7275 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.492, allocations: 325.6 kB / 0.7278 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.492, allocations: 29.7 kB / 0.7278 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.4921, allocations: 160 kB / 0.7279 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.4922, allocations: 27.8 kB / 0.728 GB, free: 8.207 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.022e-05/0.4922, allocations: 21.72 kB / 0.728 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.4923, allocations: 338.8 kB / 0.7283 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.199e-05/0.4924, allocations: 19.98 kB / 0.7283 GB, free: 7.82 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.447e-05/0.4925, allocations: 55.36 kB / 0.7284 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.776e-05/0.4926, allocations: 67.42 kB / 0.7285 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.4926, allocations: 7.938 kB / 0.7285 GB, free: 7.668 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002484/0.4928, allocations: 155.1 kB / 0.7286 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.4928, allocations: 8 kB / 0.7286 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.4929, allocations: 3.984 kB / 0.7286 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001866/0.4931, allocations: 41.64 kB / 0.7287 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.839e-05/0.4931, allocations: 12 kB / 0.7287 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/0.4951, allocations: 2.777 MB / 0.7314 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.966e-05/0.4952, allocations: 11.92 kB / 0.7314 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.4952, allocations: 4.156 kB / 0.7314 GB, free: 4.363 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.0001198/0.4953, allocations: 146.6 kB / 0.7315 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.4954, allocations: 31.75 kB / 0.7316 GB, free: 4.18 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.4957, allocations: 151.5 kB / 0.7317 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.4957, allocations: 4 kB / 0.7317 GB, free: 4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.4957, allocations: 0 / 0.7317 GB, free: 4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.4957, allocations: 4 kB / 0.7317 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.4963, allocations: 0.5244 MB / 0.7322 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4963, allocations: 0 / 0.7322 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.867e-05/0.4963, allocations: 7.938 kB / 0.7322 GB, free: 3.395 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.4964, allocations: 45.81 kB / 0.7323 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.4964, allocations: 0 / 0.7323 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001849/0.4983, allocations: 2.769 MB / 0.735 GB, free: 300 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4983, allocations: 4.031 kB / 0.735 GB, free: 296 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2457/0.7441, allocations: 327.8 kB / 0.7353 GB, free: 154 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.573e-05/0.7442, allocations: 105 kB / 0.7354 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.7442, allocations: 7.141 kB / 0.7354 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.7444, allocations: 2.219 kB / 0.7354 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.7444, allocations: 16.53 kB / 0.7354 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.7445, allocations: 2.906 kB / 0.7354 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002605/0.7447, allocations: 230.8 kB / 0.7357 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7447, allocations: 1 kB / 0.7357 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005042/0.7452, allocations: 47.8 kB / 0.7357 GB, free: 153.9 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.0005796/0.7458, allocations: 0.9116 MB / 0.7366 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003912/0.7462, allocations: 291.2 kB / 0.7369 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7462, allocations: 0.6875 kB / 0.7369 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.7464, allocations: 259 kB / 0.7371 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005744/0.747, allocations: 63.27 kB / 0.7372 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.7496, allocations: 2.615 MB / 0.7397 GB, free: 151.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000189/0.7498, allocations: 0.7522 MB / 0.7405 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.595e-05/0.7499, allocations: 29.81 kB / 0.7405 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/0.75, allocations: 76.66 kB / 0.7406 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/0.75, allocations: 0 / 0.7406 GB, free: 150.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02794/0.778, allocations: 6.645 MB / 0.7471 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.795/10.57, allocations: 5.406 kB / 0.7471 GB, free: 147.9 MB / 0.5762 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