Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 216.5 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8121/0.8121, allocations: 100.9 MB / 414.1 MB, free: 2.895 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002585/0.002585, allocations: 88.48 kB / 0.5653 GB, free: 35.31 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1428, allocations: 74.61 MB / 0.6382 GB, free: 5.977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.5359/0.6788, allocations: 120.9 MB / 0.7563 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002408/0.6812, allocations: 1.958 MB / 0.7582 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002443/0.6814, allocations: 17.31 kB / 0.7582 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005096/0.6819, allocations: 108.4 kB / 0.7583 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004057/0.6823, allocations: 151.4 kB / 0.7584 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004534/0.6828, allocations: 176.5 kB / 0.7586 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.6832, allocations: 324.9 kB / 0.7589 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.6834, allocations: 46.98 kB / 0.759 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005539/0.6839, allocations: 222.4 kB / 0.7592 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.6841, allocations: 119.2 kB / 0.7593 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.6842, allocations: 13 kB / 0.7593 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004088/0.6846, allocations: 174.4 kB / 0.7595 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.656e-05/0.6846, allocations: 33.7 kB / 0.7595 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.6848, allocations: 84.77 kB / 0.7596 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005816/0.6854, allocations: 292.5 kB / 0.7598 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.6854, allocations: 1.906 kB / 0.7598 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.904e-06/0.6854, allocations: 0.875 kB / 0.7598 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.6854, allocations: 1.031 kB / 0.7599 GB, free: 3.477 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.001239/0.6866, allocations: 0.5114 MB / 0.7604 GB, free: 19.09 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.6867, allocations: 12.03 kB / 0.7604 GB, free: 19.09 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.6868, allocations: 30.03 kB / 0.7604 GB, free: 19.07 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.6873, allocations: 257.9 kB / 0.7606 GB, free: 18.91 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.6873, allocations: 9.438 kB / 0.7606 GB, free: 18.91 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.323e-05/0.6874, allocations: 14.78 kB / 0.7607 GB, free: 18.91 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.6878, allocations: 176.4 kB / 0.7608 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.6878, allocations: 2.25 kB / 0.7608 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.6878, allocations: 4.812 kB / 0.7608 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.6878, allocations: 4.188 kB / 0.7608 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003114/0.6881, allocations: 100.5 kB / 0.7609 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.6891, allocations: 0.6847 MB / 0.7616 GB, free: 18.34 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.6894, allocations: 88.27 kB / 0.7617 GB, free: 18.32 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.6895, allocations: 39.2 kB / 0.7617 GB, free: 18.31 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.017e-05/0.6896, allocations: 11.7 kB / 0.7617 GB, free: 18.31 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.6899, allocations: 85.45 kB / 0.7618 GB, free: 18.26 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.6899, allocations: 1.031 kB / 0.7618 GB, free: 18.26 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0005078/0.6904, allocations: 155.9 kB / 0.762 GB, free: 18.22 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.6904, allocations: 57.16 kB / 0.762 GB, free: 18.15 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.6907, allocations: 259.2 kB / 0.7623 GB, free: 18.04 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.6908, allocations: 32.06 kB / 0.7623 GB, free: 18.01 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.6909, allocations: 178.9 kB / 0.7625 GB, free: 17.89 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.079e-05/0.6909, allocations: 19.2 kB / 0.7625 GB, free: 17.88 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.691, allocations: 40.41 kB / 0.7625 GB, free: 17.86 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.6911, allocations: 334.3 kB / 0.7628 GB, free: 17.55 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.6913, allocations: 71.92 kB / 0.7629 GB, free: 17.52 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.6915, allocations: 115.2 kB / 0.763 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.6918, allocations: 146.5 kB / 0.7632 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.6918, allocations: 4.469 kB / 0.7632 GB, free: 17.36 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004584/0.6923, allocations: 242.7 kB / 0.7634 GB, free: 17.25 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.6923, allocations: 33.95 kB / 0.7634 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.6923, allocations: 1.438 kB / 0.7634 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.6923, allocations: 4.359 kB / 0.7634 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.6925, allocations: 34.36 kB / 0.7635 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.6925, allocations: 11.11 kB / 0.7635 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001462/0.6927, allocations: 25.23 kB / 0.7635 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.6927, allocations: 9.188 kB / 0.7635 GB, free: 17.21 MB / 0.5919 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.0001336/0.6928, allocations: 132.4 kB / 0.7636 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/0.6929, allocations: 21.83 kB / 0.7637 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003626/0.6932, allocations: 132.5 kB / 0.7638 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.6932, allocations: 2.219 kB / 0.7638 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6932, allocations: 3.938 kB / 0.7638 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.6932, allocations: 2.891 kB / 0.7638 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.6934, allocations: 177.8 kB / 0.764 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.6934, allocations: 0 / 0.764 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.6935, allocations: 19.25 kB / 0.764 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.6935, allocations: 0.9375 kB / 0.764 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.6935, allocations: 2.297 kB / 0.764 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.6935, allocations: 1.406 kB / 0.764 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6936, allocations: 0.75 kB / 0.764 GB, free: 16.91 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004557/0.694, allocations: 198.1 kB / 0.7642 GB, free: 16.84 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.81e-05/0.694, allocations: 21.42 kB / 0.7642 GB, free: 16.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.6941, allocations: 2.094 kB / 0.7642 GB, free: 16.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.6942, allocations: 15.45 kB / 0.7642 GB, free: 16.82 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.581e-05/0.6942, allocations: 12.81 kB / 0.7642 GB, free: 16.82 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.6942, allocations: 6.578 kB / 0.7642 GB, free: 16.82 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000187/0.6944, allocations: 187.8 kB / 0.7644 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.1e-08/0.6944, allocations: 0 / 0.7644 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002719/0.6947, allocations: 42.89 kB / 0.7645 GB, free: 16.73 MB / 0.5919 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.0002409/0.6949, allocations: 143.7 kB / 0.7646 GB, free: 16.63 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000419/0.6954, allocations: 180.7 kB / 0.7648 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.6954, allocations: 0 / 0.7648 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.6955, allocations: 42.08 kB / 0.7648 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.6958, allocations: 44.81 kB / 0.7648 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000941/0.6968, allocations: 480.4 kB / 0.7653 GB, free: 16.27 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001749/0.6969, allocations: 134.4 kB / 0.7654 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.154e-05/0.697, allocations: 27.19 kB / 0.7655 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of SimCode: time 4e-07/0.697, allocations: 1.719 kB / 0.7655 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of Templates: time 0.006309/0.7033, allocations: 3.034 MB / 0.7684 GB, free: 16.04 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.770768172107637]