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.001437/0.001437, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001699/0.0017, allocations: 195.8 kB / 16.14 MB, free: 6.645 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.396/1.396, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7068/0.7068, allocations: 91.19 MB / 381.2 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 82.66 kB / 459.6 MB, free: 23.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1122, allocations: 67.69 MB / 0.515 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.3698/0.4821, allocations: 138.6 MB / 0.6503 GB, free: 11.14 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.4844, allocations: 2.145 MB / 0.6524 GB, free: 9.527 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002045/0.4847, allocations: 16.12 kB / 0.6524 GB, free: 9.52 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004176/0.4851, allocations: 105.9 kB / 0.6525 GB, free: 9.438 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002826/0.4854, allocations: 119.4 kB / 0.6527 GB, free: 9.34 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.4858, allocations: 161.9 kB / 0.6528 GB, free: 9.219 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.4861, allocations: 332.7 kB / 0.6531 GB, free: 9.031 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.4863, allocations: 62.81 kB / 0.6532 GB, free: 8.996 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004307/0.4867, allocations: 183.2 kB / 0.6534 GB, free: 8.883 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.4869, allocations: 127.2 kB / 0.6535 GB, free: 8.805 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.4869, allocations: 10.09 kB / 0.6535 GB, free: 8.805 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003658/0.4873, allocations: 201 kB / 0.6537 GB, free: 8.715 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.237e-05/0.4873, allocations: 35.19 kB / 0.6537 GB, free: 8.688 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.4875, allocations: 99.58 kB / 0.6538 GB, free: 8.621 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000344/0.4878, allocations: 259.6 kB / 0.6541 GB, free: 8.453 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.4878, allocations: 2.312 kB / 0.6541 GB, free: 8.453 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4878, allocations: 1.312 kB / 0.6541 GB, free: 8.453 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.4878, allocations: 4 kB / 0.6541 GB, free: 8.449 MB / 478.1 MB 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.0009536/0.4888, allocations: 0.5623 MB / 0.6546 GB, free: 7.914 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.4888, allocations: 7.594 kB / 0.6546 GB, free: 7.914 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.023e-05/0.4889, allocations: 29.12 kB / 0.6546 GB, free: 7.898 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.4892, allocations: 283.2 kB / 0.6549 GB, free: 7.625 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.4893, allocations: 14.16 kB / 0.6549 GB, free: 7.617 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.4893, allocations: 13.72 kB / 0.6549 GB, free: 7.613 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.4897, allocations: 175 kB / 0.6551 GB, free: 7.477 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4897, allocations: 1.844 kB / 0.6551 GB, free: 7.477 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.4897, allocations: 4 kB / 0.6551 GB, free: 7.473 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.4897, allocations: 3.312 kB / 0.6551 GB, free: 7.473 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.49, allocations: 99.91 kB / 0.6552 GB, free: 7.426 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000946/0.491, allocations: 0.9176 MB / 0.6561 GB, free: 6.512 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.4913, allocations: 92.91 kB / 0.6562 GB, free: 6.449 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.4914, allocations: 40.61 kB / 0.6562 GB, free: 6.426 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.276e-05/0.4915, allocations: 79.52 kB / 0.6563 GB, free: 6.332 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/0.4918, allocations: 92.17 kB / 0.6564 GB, free: 6.254 MB / 478.1 MB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.4918, allocations: 0 / 0.6564 GB, free: 6.254 MB / 478.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004793/0.4923, allocations: 153.6 kB / 0.6565 GB, free: 6.164 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.4923, allocations: 53.81 kB / 0.6566 GB, free: 6.102 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.4926, allocations: 261.2 kB / 0.6568 GB, free: 5.918 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.4926, allocations: 29.7 kB / 0.6569 GB, free: 5.883 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.4928, allocations: 172.8 kB / 0.657 GB, free: 5.723 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.4928, allocations: 18.48 kB / 0.6571 GB, free: 5.707 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.596e-05/0.4929, allocations: 41.77 kB / 0.6571 GB, free: 5.672 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.493, allocations: 332.6 kB / 0.6574 GB, free: 5.344 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.4931, allocations: 42.94 kB / 0.6575 GB, free: 5.324 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.4933, allocations: 87.56 kB / 0.6575 GB, free: 5.25 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.4936, allocations: 157 kB / 0.6577 GB, free: 5.121 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4936, allocations: 0 / 0.6577 GB, free: 5.121 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004093/0.4941, allocations: 208.6 kB / 0.6579 GB, free: 4.988 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.4941, allocations: 35.3 kB / 0.6579 GB, free: 4.953 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.4941, allocations: 1.938 kB / 0.6579 GB, free: 4.953 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.4941, allocations: 10.19 kB / 0.6579 GB, free: 4.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.4943, allocations: 34.12 kB / 0.658 GB, free: 4.934 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.4943, allocations: 1.906 kB / 0.658 GB, free: 4.934 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.4945, allocations: 22.7 kB / 0.658 GB, free: 4.922 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.4945, allocations: 8.5 kB / 0.658 GB, free: 4.918 MB / 478.1 MB 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.0001292/0.4946, allocations: 136.7 kB / 0.6581 GB, free: 4.785 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.174e-05/0.4947, allocations: 22.06 kB / 0.6582 GB, free: 4.773 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003404/0.495, allocations: 133.1 kB / 0.6583 GB, free: 4.684 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.495, allocations: 3.938 kB / 0.6583 GB, free: 4.68 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.495, allocations: 1.5 kB / 0.6583 GB, free: 4.68 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.4951, allocations: 0 / 0.6583 GB, free: 4.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.4953, allocations: 242.9 kB / 0.6585 GB, free: 4.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4953, allocations: 0 / 0.6585 GB, free: 4.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.4954, allocations: 16.64 kB / 0.6585 GB, free: 4.426 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.4954, allocations: 3.938 kB / 0.6585 GB, free: 4.422 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.4954, allocations: 4 kB / 0.6585 GB, free: 4.418 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.4954, allocations: 5.719 kB / 0.6585 GB, free: 4.414 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4954, allocations: 0 / 0.6585 GB, free: 4.414 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004429/0.4959, allocations: 188.1 kB / 0.6587 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.496, allocations: 98.69 kB / 0.6588 GB, free: 4.176 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.496, allocations: 0 / 0.6588 GB, free: 4.176 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.4961, allocations: 23.45 kB / 0.6588 GB, free: 4.16 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.4962, allocations: 8.734 kB / 0.6588 GB, free: 4.156 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.4962, allocations: 0 / 0.6588 GB, free: 4.156 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001481/0.4964, allocations: 185.6 kB / 0.659 GB, free: 4.035 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4964, allocations: 3.938 kB / 0.659 GB, free: 4.031 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002723/0.4966, allocations: 51.03 kB / 0.6591 GB, free: 4.016 MB / 478.1 MB 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.0001935/0.4968, allocations: 139.4 kB / 0.6592 GB, free: 3.906 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0003752/0.4972, allocations: 151.2 kB / 0.6594 GB, free: 3.805 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.4972, allocations: 1.25 kB / 0.6594 GB, free: 3.805 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.4974, allocations: 43.56 kB / 0.6594 GB, free: 3.785 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.4977, allocations: 45.72 kB / 0.6594 GB, free: 3.762 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008243/0.4986, allocations: 498.6 kB / 0.6599 GB, free: 3.391 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.4989, allocations: 0.7443 MB / 0.6606 GB, free: 2.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 8.844e-05/0.499, allocations: 22.94 kB / 0.6607 GB, free: 2.648 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.499, allocations: 16.97 kB / 0.6607 GB, free: 2.641 MB / 478.1 MB Notification: Performance of SimCode: time 3.6e-07/0.499, allocations: 0 / 0.6607 GB, free: 2.641 MB / 478.1 MB Notification: Performance of Templates: time 0.005511/0.5046, allocations: 2.341 MB / 0.663 GB, free: 1.469 MB / 478.1 MB 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