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.001028/0.001028, allocations: 108 kB / 16.37 MB, free: 6.477 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.001005/0.001005, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6799/0.6799, allocations: 89.49 MB / 380.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00245/0.00245, allocations: 75.89 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1502, allocations: 67.3 MB / 0.5146 GB, free: 7.215 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3549/0.505, allocations: 140.4 MB / 0.6517 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00225/0.5073, allocations: 2.069 MB / 0.6537 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.5075, allocations: 7.938 kB / 0.6537 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004429/0.508, allocations: 118.4 kB / 0.6539 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003723/0.5084, allocations: 113.8 kB / 0.654 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004515/0.5089, allocations: 175.4 kB / 0.6541 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003361/0.5092, allocations: 247.5 kB / 0.6544 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.5094, allocations: 74.88 kB / 0.6544 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003837/0.5098, allocations: 163.3 kB / 0.6546 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.51, allocations: 115.5 kB / 0.6547 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.51, allocations: 12 kB / 0.6547 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003868/0.5104, allocations: 207.6 kB / 0.6549 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.054e-05/0.5104, allocations: 35.83 kB / 0.6549 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.171e-05/0.5105, allocations: 80.36 kB / 0.655 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.5109, allocations: 245 kB / 0.6553 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.5109, allocations: 4 kB / 0.6553 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.483e-06/0.511, allocations: 0 / 0.6553 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.511, allocations: 0 / 0.6553 GB, free: 7.301 MB / 0.4981 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.0007961/0.5118, allocations: 0.5084 MB / 0.6558 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.5118, allocations: 8.031 kB / 0.6558 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.177e-05/0.5119, allocations: 16.75 kB / 0.6558 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002121/0.5121, allocations: 224.9 kB / 0.656 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.5121, allocations: 16.36 kB / 0.656 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.767e-05/0.5122, allocations: 12.38 kB / 0.656 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.5125, allocations: 162.9 kB / 0.6562 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.5125, allocations: 0 / 0.6562 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.5125, allocations: 11.94 kB / 0.6562 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.5125, allocations: 7.984 kB / 0.6562 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.5128, allocations: 91.94 kB / 0.6563 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009196/0.5137, allocations: 0.8842 MB / 0.6571 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.514, allocations: 86.53 kB / 0.6572 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.5142, allocations: 44.89 kB / 0.6573 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.548e-05/0.5143, allocations: 85.94 kB / 0.6574 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.5145, allocations: 83.36 kB / 0.6574 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 2.595e-06/0.5145, allocations: 0.8906 kB / 0.6574 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.000447/0.5149, allocations: 157.3 kB / 0.6576 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.515, allocations: 55.34 kB / 0.6576 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.5152, allocations: 199.7 kB / 0.6578 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.5152, allocations: 29.69 kB / 0.6579 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.154e-05/0.5153, allocations: 139.6 kB / 0.658 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.5153, allocations: 24.36 kB / 0.658 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.714e-05/0.5154, allocations: 37.7 kB / 0.658 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.696e-05/0.5155, allocations: 326.8 kB / 0.6584 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.5156, allocations: 43.97 kB / 0.6584 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.5158, allocations: 81.11 kB / 0.6585 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/0.5161, allocations: 146.7 kB / 0.6586 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.5161, allocations: 4 kB / 0.6586 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003948/0.5165, allocations: 200 kB / 0.6588 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.5165, allocations: 41.69 kB / 0.6589 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.5165, allocations: 0 / 0.6589 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.5165, allocations: 7.938 kB / 0.6589 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.5167, allocations: 27.92 kB / 0.6589 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.5167, allocations: 4 kB / 0.6589 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.5169, allocations: 23.98 kB / 0.6589 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.5169, allocations: 8 kB / 0.6589 GB, free: 3.191 MB / 0.4981 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 9.976e-05/0.517, allocations: 139.3 kB / 0.6591 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.517, allocations: 11.81 kB / 0.6591 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003203/0.5173, allocations: 127.6 kB / 0.6592 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.5174, allocations: 6.562 kB / 0.6592 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.5174, allocations: 0.9375 kB / 0.6592 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.5174, allocations: 4 kB / 0.6592 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001674/0.5175, allocations: 221.5 kB / 0.6594 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.5176, allocations: 4.438 kB / 0.6594 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.5177, allocations: 23.92 kB / 0.6594 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.5177, allocations: 0 / 0.6594 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.5177, allocations: 0.9375 kB / 0.6594 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5177, allocations: 3.938 kB / 0.6594 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.5177, allocations: 0 / 0.6594 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004067/0.5181, allocations: 181.6 kB / 0.6596 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.5182, allocations: 93.8 kB / 0.6597 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.5182, allocations: 3.984 kB / 0.6597 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.5183, allocations: 15.92 kB / 0.6597 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.5184, allocations: 12.8 kB / 0.6597 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.5184, allocations: 0 / 0.6597 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001073/0.5185, allocations: 145.5 kB / 0.6599 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5185, allocations: 4.062 kB / 0.6599 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002496/0.5188, allocations: 43.91 kB / 0.6599 GB, free: 2.078 MB / 0.4981 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.0001853/0.519, allocations: 135.7 kB / 0.66 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000347/0.5193, allocations: 162.7 kB / 0.6602 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5193, allocations: 0 / 0.6602 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.5195, allocations: 39.95 kB / 0.6602 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.5198, allocations: 44.2 kB / 0.6603 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006375/0.5204, allocations: 375 kB / 0.6606 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.5207, allocations: 0.7162 MB / 0.6613 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.454e-05/0.5207, allocations: 18.52 kB / 0.6614 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.397e-05/0.5208, allocations: 15.44 kB / 0.6614 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.5208, allocations: 3.938 kB / 0.6614 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of Templates: time 0.005156/0.5259, allocations: 2.328 MB / 0.6637 GB, free: 14.3 MB / 0.5137 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches