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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 221.4 MB / 234.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009359/0.0009359, allocations: 94.5 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01307/0.01307, allocations: 1.555 MB / 338 MB, free: 8.492 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.6442/0.6442, allocations: 90.04 MB / 479.3 MB, free: 3.012 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.15e-05/5.154e-05, allocations: 4 kB / 0.5445 GB, free: 8.02 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1908, allocations: 69.36 MB / 0.6122 GB, free: 2.574 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.421/1.612, allocations: 431.8 MB / 1.034 GB, free: 2.727 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003825/1.613, allocations: 82.08 kB / 1.034 GB, free: 2.684 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.5578/2.17, allocations: 48.22 MB / 1.081 GB, free: 213.6 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.864e-06/2.171, allocations: 0 / 1.081 GB, free: 213.6 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.814e-05/2.171, allocations: 7.344 kB / 1.081 GB, free: 213.6 MB / 0.6042 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.0008969/2.171, allocations: 0.5026 MB / 1.082 GB, free: 213.1 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/2.172, allocations: 12.92 kB / 1.082 GB, free: 213.1 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/2.172, allocations: 22.39 kB / 1.082 GB, free: 213.1 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/2.172, allocations: 223.5 kB / 1.082 GB, free: 212.9 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/2.172, allocations: 8.797 kB / 1.082 GB, free: 212.9 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/2.172, allocations: 20.7 kB / 1.082 GB, free: 212.9 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/2.172, allocations: 147.6 kB / 1.082 GB, free: 212.8 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/2.172, allocations: 4.812 kB / 1.082 GB, free: 212.8 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/2.172, allocations: 5.125 kB / 1.082 GB, free: 212.8 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/2.172, allocations: 3.844 kB / 1.082 GB, free: 212.8 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/2.172, allocations: 68.36 kB / 1.082 GB, free: 212.8 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008629/2.173, allocations: 0.7799 MB / 1.083 GB, free: 212 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/2.173, allocations: 75.23 kB / 1.083 GB, free: 212 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.107e-05/2.174, allocations: 37.2 kB / 1.083 GB, free: 212 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/2.174, allocations: 84.06 kB / 1.083 GB, free: 211.9 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/2.174, allocations: 84.19 kB / 1.083 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=9): time 2.525e-06/2.174, allocations: 0 / 1.083 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9): time 0.000241/2.174, allocations: 98.64 kB / 1.083 GB, free: 211.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/2.174, allocations: 56.73 kB / 1.083 GB, free: 211.7 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/2.174, allocations: 175.8 kB / 1.083 GB, free: 211.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/2.174, allocations: 31.08 kB / 1.083 GB, free: 211.5 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.949e-05/2.174, allocations: 148 kB / 1.084 GB, free: 211.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/2.174, allocations: 31.44 kB / 1.084 GB, free: 211.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/2.174, allocations: 5.375 kB / 1.084 GB, free: 211.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.681e-05/2.174, allocations: 326.8 kB / 1.084 GB, free: 211.1 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.095e-05/2.175, allocations: 39.19 kB / 1.084 GB, free: 211 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.119e-05/2.175, allocations: 78.59 kB / 1.084 GB, free: 211 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.972e-05/2.175, allocations: 67.16 kB / 1.084 GB, free: 210.9 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/2.175, allocations: 0 / 1.084 GB, free: 210.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002827/2.175, allocations: 186.2 kB / 1.084 GB, free: 210.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/2.175, allocations: 40.5 kB / 1.084 GB, free: 210.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/2.175, allocations: 1.375 kB / 1.084 GB, free: 210.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/2.175, allocations: 2.75 kB / 1.084 GB, free: 210.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/2.175, allocations: 34.69 kB / 1.084 GB, free: 210.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/2.175, allocations: 2.75 kB / 1.084 GB, free: 210.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/2.175, allocations: 28.11 kB / 1.084 GB, free: 210.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/2.176, allocations: 5.5 kB / 1.084 GB, free: 210.8 MB / 0.6042 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.605e-05/2.176, allocations: 120.8 kB / 1.085 GB, free: 210.6 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/2.176, allocations: 14.69 kB / 1.085 GB, free: 210.6 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/2.176, allocations: 106 kB / 1.085 GB, free: 210.6 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/2.176, allocations: 5.141 kB / 1.085 GB, free: 210.6 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/2.176, allocations: 5.141 kB / 1.085 GB, free: 210.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/2.176, allocations: 0 / 1.085 GB, free: 210.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/2.176, allocations: 229.4 kB / 1.085 GB, free: 210.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/2.176, allocations: 3.938 kB / 1.085 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/2.176, allocations: 22.27 kB / 1.085 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/2.176, allocations: 0.9375 kB / 1.085 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/2.176, allocations: 4.906 kB / 1.085 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/2.176, allocations: 1.578 kB / 1.085 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/2.176, allocations: 3.984 kB / 1.085 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/2.177, allocations: 173.2 kB / 1.085 GB, free: 210.2 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.284e-05/2.177, allocations: 89.67 kB / 1.085 GB, free: 210.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/2.177, allocations: 5.094 kB / 1.085 GB, free: 210.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/2.177, allocations: 21.11 kB / 1.085 GB, free: 210.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.863e-05/2.177, allocations: 13.09 kB / 1.085 GB, free: 210.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/2.177, allocations: 2.188 kB / 1.085 GB, free: 210.1 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001067/2.177, allocations: 137.6 kB / 1.085 GB, free: 210 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.51e-07/2.177, allocations: 0 / 1.085 GB, free: 210 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003375/2.177, allocations: 58.28 kB / 1.085 GB, free: 210 MB / 0.6042 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003666/2.178, allocations: 210 kB / 1.086 GB, free: 209.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002496/2.178, allocations: 147.5 kB / 1.086 GB, free: 209.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/2.178, allocations: 0 / 1.086 GB, free: 209.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.749e-05/2.178, allocations: 35.56 kB / 1.086 GB, free: 209.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/2.178, allocations: 34.5 kB / 1.086 GB, free: 209.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006298/2.179, allocations: 250.6 kB / 1.086 GB, free: 209.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/2.179, allocations: 0.7236 MB / 1.087 GB, free: 208.9 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.383e-05/2.179, allocations: 15.73 kB / 1.087 GB, free: 208.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.35e-05/2.179, allocations: 13.5 kB / 1.087 GB, free: 208.9 MB / 0.6042 GB Notification: Performance of SimCode: time 8.42e-07/2.179, allocations: 3.938 kB / 1.087 GB, free: 208.9 MB / 0.6042 GB Notification: Performance of Templates: time 0.008118/2.187, allocations: 3.509 MB / 1.09 GB, free: 207.9 MB / 0.6042 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","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches