Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",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.007311/0.007311, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.00171/0.00171, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6944/0.6944, allocations: 91.19 MB / 381.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 71.89 kB / 0.5164 GB, free: 4.637 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3406, allocations: 67.69 MB / 0.5825 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1541/0.4948, allocations: 140.5 MB / 0.7196 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002836/0.4977, allocations: 2.103 MB / 0.7217 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003184/0.498, allocations: 15.88 kB / 0.7217 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005629/0.4986, allocations: 115.3 kB / 0.7218 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005169/0.4992, allocations: 143 kB / 0.7219 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004814/0.4997, allocations: 175.4 kB / 0.7221 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000443/0.5001, allocations: 298.7 kB / 0.7224 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.5003, allocations: 72.81 kB / 0.7225 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005047/0.5008, allocations: 195.2 kB / 0.7227 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.5011, allocations: 135.4 kB / 0.7228 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.5011, allocations: 12 kB / 0.7228 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004388/0.5016, allocations: 211.6 kB / 0.723 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.762e-05/0.5016, allocations: 31.8 kB / 0.723 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.5018, allocations: 107.3 kB / 0.7231 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004993/0.5023, allocations: 283.9 kB / 0.7234 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.5023, allocations: 0 / 0.7234 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.355e-06/0.5023, allocations: 4 kB / 0.7234 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.826e-06/0.5023, allocations: 3.938 kB / 0.7234 GB, free: 13.35 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001004/0.5033, allocations: 0.5701 MB / 0.724 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.5034, allocations: 12.03 kB / 0.724 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.886e-05/0.5034, allocations: 46.73 kB / 0.724 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.926e-05/0.5035, allocations: 32.69 kB / 0.7241 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005565/0.5041, allocations: 307.8 kB / 0.7243 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.5041, allocations: 8.375 kB / 0.7244 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.5042, allocations: 16.38 kB / 0.7244 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.5046, allocations: 168.9 kB / 0.7245 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.5046, allocations: 4 kB / 0.7245 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.5046, allocations: 8 kB / 0.7245 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.5046, allocations: 0 / 0.7245 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.505, allocations: 99.86 kB / 0.7246 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.5062, allocations: 0.9105 MB / 0.7255 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.5065, allocations: 78.53 kB / 0.7256 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.5067, allocations: 40.95 kB / 0.7256 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001209/0.5068, allocations: 89.09 kB / 0.7257 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002751/0.5071, allocations: 95.28 kB / 0.7258 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.813e-06/0.5071, allocations: 0 / 0.7258 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005489/0.5077, allocations: 153.4 kB / 0.726 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.5078, allocations: 63.39 kB / 0.726 GB, free: 10.39 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.508, allocations: 259 kB / 0.7263 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.5081, allocations: 25.7 kB / 0.7263 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.5082, allocations: 175.7 kB / 0.7265 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.5082, allocations: 19.86 kB / 0.7265 GB, free: 9.902 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.935e-05/0.5083, allocations: 33.66 kB / 0.7265 GB, free: 9.863 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.5085, allocations: 338.8 kB / 0.7268 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.5086, allocations: 43.97 kB / 0.7269 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.5088, allocations: 90.14 kB / 0.727 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.5091, allocations: 142.8 kB / 0.7271 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5091, allocations: 0 / 0.7271 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004361/0.5096, allocations: 207.1 kB / 0.7273 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.5096, allocations: 37.8 kB / 0.7273 GB, free: 8.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.5096, allocations: 11.88 kB / 0.7273 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.5096, allocations: 3.984 kB / 0.7273 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.5098, allocations: 31.92 kB / 0.7274 GB, free: 8.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.5098, allocations: 0 / 0.7274 GB, free: 8.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.51, allocations: 27.88 kB / 0.7274 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.51, allocations: 8 kB / 0.7274 GB, free: 8.871 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.5102, allocations: 138.6 kB / 0.7275 GB, free: 8.727 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.5102, allocations: 23.86 kB / 0.7276 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003709/0.5106, allocations: 147.2 kB / 0.7277 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.5106, allocations: 0 / 0.7277 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.5106, allocations: 0 / 0.7277 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.5106, allocations: 0 / 0.7277 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.5108, allocations: 237.5 kB / 0.7279 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.5108, allocations: 0 / 0.7279 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.511, allocations: 15.98 kB / 0.7279 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.511, allocations: 4 kB / 0.728 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.511, allocations: 11.92 kB / 0.728 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.511, allocations: 0 / 0.728 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.511, allocations: 0 / 0.728 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004698/0.5115, allocations: 188.9 kB / 0.7281 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.448e-05/0.5116, allocations: 96.97 kB / 0.7282 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.5116, allocations: 8 kB / 0.7282 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.5117, allocations: 11.98 kB / 0.7283 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.5118, allocations: 11.98 kB / 0.7283 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.5118, allocations: 0 / 0.7283 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001628/0.512, allocations: 186 kB / 0.7284 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.1e-07/0.512, allocations: 0 / 0.7284 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002595/0.5122, allocations: 43.94 kB / 0.7285 GB, free: 7.668 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008179/0.5131, allocations: 0.7728 MB / 0.7292 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003854/0.5135, allocations: 163.3 kB / 0.7294 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5135, allocations: 0 / 0.7294 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.5136, allocations: 43.91 kB / 0.7294 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.514, allocations: 51.92 kB / 0.7295 GB, free: 6.602 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.5167, allocations: 2.246 MB / 0.7317 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.517, allocations: 0.7359 MB / 0.7324 GB, free: 3.48 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.677e-05/0.5171, allocations: 25.94 kB / 0.7324 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.958e-05/0.5172, allocations: 71.41 kB / 0.7325 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of SimCode: time 2.51e-07/0.5172, allocations: 0 / 0.7325 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2959/0.8131, allocations: 5.106 MB / 0.7375 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.744, allocations: 7.031 kB / 0.7375 GB, free: 153.9 MB / 0.5762 GB (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches