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: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005937/0.005937, allocations: 101.5 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.001134/0.001134, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7881/0.7881, allocations: 91.19 MB / 381.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 84.06 kB / 0.5168 GB, free: 4.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3456, allocations: 67.68 MB / 0.5829 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1527/0.4984, allocations: 140.5 MB / 0.7201 GB, free: 1.137 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002469/0.5009, allocations: 2.107 MB / 0.7222 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.5011, allocations: 11.94 kB / 0.7222 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005088/0.5016, allocations: 123.2 kB / 0.7223 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000364/0.502, allocations: 139.1 kB / 0.7224 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.5025, allocations: 167.4 kB / 0.7226 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003432/0.5028, allocations: 306.7 kB / 0.7229 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.503, allocations: 65.02 kB / 0.7229 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.5035, allocations: 203.1 kB / 0.7231 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.5037, allocations: 127.4 kB / 0.7232 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.5037, allocations: 12 kB / 0.7233 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000405/0.5041, allocations: 207.6 kB / 0.7235 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.489e-05/0.5042, allocations: 35.8 kB / 0.7235 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.5043, allocations: 103.4 kB / 0.7236 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.5048, allocations: 292.7 kB / 0.7239 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.5048, allocations: 7.938 kB / 0.7239 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5048, allocations: 3.938 kB / 0.7239 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.5048, allocations: 0 / 0.7239 GB, free: 13.25 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.0009845/0.5058, allocations: 0.5663 MB / 0.7244 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.5058, allocations: 8.031 kB / 0.7244 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.308e-05/0.5059, allocations: 24.66 kB / 0.7245 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.5064, allocations: 303.5 kB / 0.7248 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.5064, allocations: 16.36 kB / 0.7248 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.5064, allocations: 12.38 kB / 0.7248 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.5068, allocations: 173.2 kB / 0.7249 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.5068, allocations: 0 / 0.7249 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.5068, allocations: 4 kB / 0.725 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.5068, allocations: 11.92 kB / 0.725 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.5071, allocations: 91.94 kB / 0.7251 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009945/0.5081, allocations: 0.9026 MB / 0.7259 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.5084, allocations: 90.52 kB / 0.726 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.5085, allocations: 48.89 kB / 0.7261 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.5087, allocations: 77.11 kB / 0.7261 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002204/0.5089, allocations: 87.27 kB / 0.7262 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.5089, allocations: 8 kB / 0.7262 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0004896/0.5094, allocations: 149.4 kB / 0.7264 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.5094, allocations: 55.34 kB / 0.7264 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.5097, allocations: 266.9 kB / 0.7267 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.5097, allocations: 29.7 kB / 0.7267 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.5099, allocations: 167.6 kB / 0.7269 GB, free: 9.898 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.5099, allocations: 23.7 kB / 0.7269 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/0.51, allocations: 33.72 kB / 0.7269 GB, free: 9.836 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5101, allocations: 334.8 kB / 0.7272 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.5103, allocations: 39.97 kB / 0.7273 GB, free: 9.461 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.5104, allocations: 86.2 kB / 0.7274 GB, free: 9.359 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.5107, allocations: 154.7 kB / 0.7275 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5107, allocations: 0 / 0.7275 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004063/0.5112, allocations: 206.9 kB / 0.7277 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.5112, allocations: 37.64 kB / 0.7277 GB, free: 8.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.5112, allocations: 0 / 0.7277 GB, free: 8.926 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.5112, allocations: 7.938 kB / 0.7277 GB, free: 8.918 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.5114, allocations: 31.92 kB / 0.7278 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.5114, allocations: 4 kB / 0.7278 GB, free: 8.883 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.5116, allocations: 27.89 kB / 0.7278 GB, free: 8.855 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.5116, allocations: 8 kB / 0.7278 GB, free: 8.848 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.000139/0.5117, allocations: 149.6 kB / 0.728 GB, free: 8.691 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.5118, allocations: 19.81 kB / 0.728 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003385/0.5121, allocations: 127.4 kB / 0.7281 GB, free: 8.539 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.5121, allocations: 7.969 kB / 0.7281 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.5121, allocations: 0 / 0.7281 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.5122, allocations: 4 kB / 0.7281 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.5124, allocations: 245.5 kB / 0.7283 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.5124, allocations: 0 / 0.7283 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.5125, allocations: 19.98 kB / 0.7284 GB, free: 8.219 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.5125, allocations: 3.938 kB / 0.7284 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.5125, allocations: 3.938 kB / 0.7284 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.5125, allocations: 0 / 0.7284 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.5125, allocations: 0 / 0.7284 GB, free: 8.211 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004283/0.513, allocations: 188.8 kB / 0.7286 GB, free: 8.008 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.658e-05/0.513, allocations: 92.86 kB / 0.7286 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.5131, allocations: 11.92 kB / 0.7287 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.5132, allocations: 7.984 kB / 0.7287 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.908e-05/0.5132, allocations: 11.98 kB / 0.7287 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.5133, allocations: 4 kB / 0.7287 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001686/0.5134, allocations: 186 kB / 0.7289 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5134, allocations: 0 / 0.7289 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000259/0.5137, allocations: 43.94 kB / 0.7289 GB, free: 7.641 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.0002107/0.5139, allocations: 147.2 kB / 0.729 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003711/0.5143, allocations: 155.3 kB / 0.7292 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5143, allocations: 0 / 0.7292 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.5144, allocations: 43.91 kB / 0.7292 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.5148, allocations: 60.53 kB / 0.7293 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008034/0.5156, allocations: 437.9 kB / 0.7297 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.516, allocations: 0.732 MB / 0.7304 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.728e-05/0.516, allocations: 25.94 kB / 0.7304 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.191e-05/0.5161, allocations: 19.44 kB / 0.7305 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of SimCode: time 1.443e-06/0.5161, allocations: 0 / 0.7305 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of Templates: time 0.005934/0.522, allocations: 2.486 MB / 0.7329 GB, free: 3.512 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (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 & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches