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.001932/0.001932, allocations: 169 kB / 7.646 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 221.5 MB / 229.6 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008898/0.0008896, allocations: 98.03 kB / 280.5 MB, free: 5.328 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.008882/0.008882, allocations: 1.574 MB / 332.8 MB, free: 13.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7405/0.7405, allocations: 90.05 MB / 474 MB, free: 13.03 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.936e-05, allocations: 2.969 kB / 0.5375 GB, free: 33.13 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1699, allocations: 69.37 MB / 0.6052 GB, free: 128 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.255/1.425, allocations: 431.1 MB / 1.026 GB, free: 126.4 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/1.426, allocations: 83.39 kB / 1.026 GB, free: 126.4 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.08604/1.512, allocations: 47.96 MB / 1.073 GB, free: 88.48 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.853e-06/1.512, allocations: 0 / 1.073 GB, free: 88.48 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.23e-05/1.512, allocations: 4 kB / 1.073 GB, free: 88.48 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.0007173/1.512, allocations: 0.5201 MB / 1.074 GB, free: 87.92 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/1.513, allocations: 8.031 kB / 1.074 GB, free: 87.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.249e-05/1.513, allocations: 15.81 kB / 1.074 GB, free: 87.89 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/1.513, allocations: 218.2 kB / 1.074 GB, free: 87.65 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/1.513, allocations: 11.92 kB / 1.074 GB, free: 87.64 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/1.513, allocations: 11.91 kB / 1.074 GB, free: 87.63 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001395/1.513, allocations: 60.42 kB / 1.074 GB, free: 87.59 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/1.513, allocations: 120.8 kB / 1.074 GB, free: 87.49 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/1.513, allocations: 0 / 1.074 GB, free: 87.49 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/1.513, allocations: 7.938 kB / 1.074 GB, free: 87.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/1.513, allocations: 7.312 kB / 1.074 GB, free: 87.48 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006897/1.514, allocations: 0.7368 MB / 1.075 GB, free: 86.72 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/1.514, allocations: 76.19 kB / 1.075 GB, free: 86.66 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.444e-05/1.514, allocations: 31.42 kB / 1.075 GB, free: 86.64 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.157e-05/1.514, allocations: 88.7 kB / 1.075 GB, free: 86.54 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/1.514, allocations: 77.7 kB / 1.075 GB, free: 86.46 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/1.514, allocations: 0 / 1.075 GB, free: 86.46 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9): time 0.0002253/1.515, allocations: 107.3 kB / 1.075 GB, free: 86.36 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.061e-05/1.515, allocations: 55.03 kB / 1.075 GB, free: 86.3 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/1.515, allocations: 159.3 kB / 1.075 GB, free: 86.15 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/1.515, allocations: 25.7 kB / 1.075 GB, free: 86.12 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.727e-05/1.515, allocations: 149.1 kB / 1.076 GB, free: 85.99 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/1.515, allocations: 27.33 kB / 1.076 GB, free: 85.97 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.386e-06/1.515, allocations: 0 / 1.076 GB, free: 85.97 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.699e-05/1.515, allocations: 326 kB / 1.076 GB, free: 85.65 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.002e-05/1.515, allocations: 34.34 kB / 1.076 GB, free: 85.62 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.028e-05/1.515, allocations: 79.14 kB / 1.076 GB, free: 85.55 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.409e-05/1.515, allocations: 37.61 kB / 1.076 GB, free: 85.52 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.515, allocations: 0 / 1.076 GB, free: 85.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002051/1.515, allocations: 147.2 kB / 1.076 GB, free: 85.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/1.515, allocations: 37.73 kB / 1.076 GB, free: 85.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.515, allocations: 0 / 1.076 GB, free: 85.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/1.515, allocations: 7.953 kB / 1.076 GB, free: 85.35 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/1.516, allocations: 31.42 kB / 1.076 GB, free: 85.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/1.516, allocations: 3.984 kB / 1.076 GB, free: 85.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/1.516, allocations: 15.91 kB / 1.076 GB, free: 85.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/1.516, allocations: 11.98 kB / 1.076 GB, free: 85.29 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.143e-05/1.516, allocations: 114.8 kB / 1.076 GB, free: 85.17 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/1.516, allocations: 15.81 kB / 1.076 GB, free: 85.16 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000182/1.516, allocations: 109.8 kB / 1.077 GB, free: 85.07 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/1.516, allocations: 4 kB / 1.077 GB, free: 85.06 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/1.516, allocations: 3.953 kB / 1.077 GB, free: 85.06 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/1.516, allocations: 4 kB / 1.077 GB, free: 85.05 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/1.516, allocations: 195.2 kB / 1.077 GB, free: 84.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/1.516, allocations: 4 kB / 1.077 GB, free: 84.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/1.516, allocations: 19.98 kB / 1.077 GB, free: 84.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/1.516, allocations: 0 / 1.077 GB, free: 84.82 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/1.516, allocations: 7.625 kB / 1.077 GB, free: 84.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/1.516, allocations: 0 / 1.077 GB, free: 84.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/1.516, allocations: 0 / 1.077 GB, free: 84.82 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002101/1.517, allocations: 160.7 kB / 1.077 GB, free: 84.68 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/1.517, allocations: 88.98 kB / 1.077 GB, free: 84.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/1.517, allocations: 11.56 kB / 1.077 GB, free: 84.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/1.517, allocations: 11.98 kB / 1.077 GB, free: 84.55 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.571e-05/1.517, allocations: 7.984 kB / 1.077 GB, free: 84.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/1.517, allocations: 7.984 kB / 1.077 GB, free: 84.54 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.414e-05/1.517, allocations: 129.3 kB / 1.077 GB, free: 84.43 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/1.517, allocations: 0 / 1.077 GB, free: 84.43 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002481/1.517, allocations: 55.09 kB / 1.077 GB, free: 84.38 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.000249/1.517, allocations: 221.2 kB / 1.077 GB, free: 84.16 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001862/1.518, allocations: 140.6 kB / 1.078 GB, free: 84.04 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.518, allocations: 0 / 1.078 GB, free: 84.04 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 5.219e-05/1.518, allocations: 34.42 kB / 1.078 GB, free: 84.01 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/1.518, allocations: 39.23 kB / 1.078 GB, free: 83.98 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005112/1.518, allocations: 247.3 kB / 1.078 GB, free: 83.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/1.519, allocations: 0.7279 MB / 1.079 GB, free: 82.98 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.701e-05/1.519, allocations: 17.59 kB / 1.079 GB, free: 82.96 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.852e-05/1.519, allocations: 11.44 kB / 1.079 GB, free: 82.95 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/1.519, allocations: 3.938 kB / 1.079 GB, free: 82.95 MB / 0.6042 GB Notification: Performance of Templates: time 0.004769/1.523, allocations: 2.517 MB / 1.081 GB, free: 80.45 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