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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.001412/0.001411, allocations: 176.1 kB / 16.12 MB, free: 5.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.871/1.871, allocations: 205.4 MB / 222.3 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 84.92 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.9155/0.9155, allocations: 89.58 MB / 408.5 MB, free: 4.504 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004073/0.0004075, allocations: 12 kB / 485.2 MB, free: 7.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4071, allocations: 66.01 MB / 0.5382 GB, free: 34.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.226/1.634, allocations: 431.7 MB / 0.9598 GB, free: 195.6 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/1.634, allocations: 84.73 kB / 0.9599 GB, free: 195.5 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.09114/1.725, allocations: 46.99 MB / 1.006 GB, free: 148 MB / 0.5886 GB Notification: Performance of FrontEnd: time 4.198e-06/1.725, allocations: 0 / 1.006 GB, free: 148 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 2.91e-05/1.725, allocations: 4 kB / 1.006 GB, free: 148 MB / 0.5886 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.001311/1.726, allocations: 0.5284 MB / 1.006 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.281e-05/1.726, allocations: 8.031 kB / 1.006 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/1.727, allocations: 24.75 kB / 1.006 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/1.727, allocations: 220.4 kB / 1.007 GB, free: 147.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/1.727, allocations: 20.58 kB / 1.007 GB, free: 147.1 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/1.727, allocations: 12.38 kB / 1.007 GB, free: 147.1 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004349/1.728, allocations: 172.8 kB / 1.007 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/1.728, allocations: 3.938 kB / 1.007 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/1.728, allocations: 12 kB / 1.007 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/1.728, allocations: 4 kB / 1.007 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/1.728, allocations: 107.9 kB / 1.007 GB, free: 146.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/1.729, allocations: 0.7765 MB / 1.008 GB, free: 145.9 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/1.729, allocations: 118.5 kB / 1.008 GB, free: 145.8 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/1.73, allocations: 56.81 kB / 1.008 GB, free: 145.7 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/1.73, allocations: 81.11 kB / 1.008 GB, free: 145.6 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/1.73, allocations: 111.4 kB / 1.008 GB, free: 145.5 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=9): time 3.386e-06/1.73, allocations: 0 / 1.008 GB, free: 145.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9): time 0.0005691/1.731, allocations: 189.3 kB / 1.008 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/1.731, allocations: 51.41 kB / 1.008 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/1.731, allocations: 198.2 kB / 1.008 GB, free: 145.1 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/1.731, allocations: 29.7 kB / 1.008 GB, free: 145 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.593e-05/1.731, allocations: 136 kB / 1.009 GB, free: 144.9 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/1.731, allocations: 31.55 kB / 1.009 GB, free: 144.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.033e-05/1.731, allocations: 8 kB / 1.009 GB, free: 144.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.309e-05/1.731, allocations: 326.8 kB / 1.009 GB, free: 144.5 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/1.731, allocations: 51.95 kB / 1.009 GB, free: 144.5 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/1.731, allocations: 93.81 kB / 1.009 GB, free: 144.4 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/1.732, allocations: 186.5 kB / 1.009 GB, free: 144.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/1.732, allocations: 0 / 1.009 GB, free: 144.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004429/1.732, allocations: 223.1 kB / 1.009 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.758e-05/1.732, allocations: 37.69 kB / 1.009 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/1.732, allocations: 0 / 1.009 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/1.732, allocations: 4 kB / 1.009 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/1.733, allocations: 27.98 kB / 1.01 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/1.733, allocations: 4 kB / 1.01 GB, free: 143.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/1.733, allocations: 31.89 kB / 1.01 GB, free: 143.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/1.733, allocations: 4 kB / 1.01 GB, free: 143.8 MB / 0.5886 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 () * Number of clocked 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 0.0001178/1.733, allocations: 141.5 kB / 1.01 GB, free: 143.7 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/1.733, allocations: 15.81 kB / 1.01 GB, free: 143.6 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000366/1.733, allocations: 159.2 kB / 1.01 GB, free: 143.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/1.733, allocations: 4 kB / 1.01 GB, free: 143.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/1.733, allocations: 4 kB / 1.01 GB, free: 143.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/1.733, allocations: 0 / 1.01 GB, free: 143.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/1.733, allocations: 229.5 kB / 1.01 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/1.734, allocations: 0 / 1.01 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/1.734, allocations: 19.98 kB / 1.01 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/1.734, allocations: 0 / 1.01 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/1.734, allocations: 4 kB / 1.01 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/1.734, allocations: 4 kB / 1.01 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.734, allocations: 0 / 1.01 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004523/1.734, allocations: 228.7 kB / 1.01 GB, free: 142.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/1.734, allocations: 88.95 kB / 1.01 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.206e-05/1.734, allocations: 7.938 kB / 1.01 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/1.734, allocations: 15.98 kB / 1.01 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.77e-05/1.734, allocations: 15.97 kB / 1.01 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/1.734, allocations: 4 kB / 1.01 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 9.82e-05/1.735, allocations: 136.5 kB / 1.011 GB, free: 142.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.4e-07/1.735, allocations: 0 / 1.011 GB, free: 142.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003412/1.735, allocations: 59.84 kB / 1.011 GB, free: 142.6 MB / 0.5886 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 (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.0003363/1.735, allocations: 207.3 kB / 1.011 GB, free: 142.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004009/1.736, allocations: 187.3 kB / 1.011 GB, free: 142.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/1.736, allocations: 0 / 1.011 GB, free: 142.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001414/1.736, allocations: 60.22 kB / 1.011 GB, free: 142.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/1.736, allocations: 35.91 kB / 1.011 GB, free: 142.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008518/1.737, allocations: 453.6 kB / 1.012 GB, free: 141.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/1.737, allocations: 0.7204 MB / 1.012 GB, free: 140.9 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 8.415e-05/1.737, allocations: 9.438 kB / 1.012 GB, free: 140.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/1.737, allocations: 15.44 kB / 1.012 GB, free: 140.9 MB / 0.5886 GB Notification: Performance of SimCode: time 1.303e-06/1.737, allocations: 0 / 1.012 GB, free: 140.9 MB / 0.5886 GB Notification: Performance of Templates: time 0.006832/1.744, allocations: 3.299 MB / 1.015 GB, free: 137.6 MB / 0.5886 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