Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 174.7 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.644/1.644, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0009392/0.0009392, allocations: 99.3 kB / 285.6 MB, free: 12.97 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.01295/0.01295, allocations: 1.557 MB / 338 MB, free: 8.469 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.6951/0.6951, allocations: 90.04 MB / 479.4 MB, free: 2.957 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 4.377e-05/4.381e-05, allocations: 4 kB / 0.5445 GB, free: 7.977 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1785, allocations: 69.36 MB / 0.6122 GB, free: 2.531 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.43/1.608, allocations: 430.7 MB / 1.033 GB, free: 3.762 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005129/1.609, allocations: 80.52 kB / 1.033 GB, free: 3.719 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.5434/2.152, allocations: 57.2 MB / 1.089 GB, free: 210.7 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.984e-06/2.153, allocations: 1.031 kB / 1.089 GB, free: 210.7 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.214e-05/2.153, allocations: 10.84 kB / 1.089 GB, free: 210.7 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007279/2.153, allocations: 478.5 kB / 1.089 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/2.153, allocations: 17.77 kB / 1.089 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.712e-05/2.153, allocations: 20.73 kB / 1.089 GB, free: 210.3 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/2.154, allocations: 225.1 kB / 1.089 GB, free: 210 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/2.154, allocations: 8.016 kB / 1.089 GB, free: 210 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/2.154, allocations: 15.45 kB / 1.089 GB, free: 210 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002585/2.154, allocations: 131.5 kB / 1.09 GB, free: 209.9 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/2.154, allocations: 1.094 kB / 1.09 GB, free: 209.9 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/2.154, allocations: 5.031 kB / 1.09 GB, free: 209.9 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/2.154, allocations: 2.812 kB / 1.09 GB, free: 209.9 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/2.154, allocations: 86.02 kB / 1.09 GB, free: 209.9 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008096/2.155, allocations: 0.7641 MB / 1.09 GB, free: 209.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/2.155, allocations: 128.1 kB / 1.091 GB, free: 209 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.826e-05/2.155, allocations: 53.2 kB / 1.091 GB, free: 209 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 8.95e-05/2.155, allocations: 3.312 kB / 1.091 GB, free: 209 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/2.155, allocations: 33.06 kB / 1.091 GB, free: 208.9 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/2.155, allocations: 3.938 kB / 1.091 GB, free: 208.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12): time 0.0004279/2.156, allocations: 170 kB / 1.091 GB, free: 208.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/2.156, allocations: 83.08 kB / 1.091 GB, free: 208.7 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/2.156, allocations: 167.4 kB / 1.091 GB, free: 208.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/2.156, allocations: 26.8 kB / 1.091 GB, free: 208.6 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/2.156, allocations: 120.7 kB / 1.091 GB, free: 208.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.65e-05/2.156, allocations: 49.39 kB / 1.091 GB, free: 208.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/2.156, allocations: 4 kB / 1.091 GB, free: 208.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.051e-05/2.156, allocations: 334.8 kB / 1.092 GB, free: 208.1 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.202e-05/2.156, allocations: 31.66 kB / 1.092 GB, free: 208.1 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.942e-05/2.156, allocations: 58.83 kB / 1.092 GB, free: 208 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.978e-05/2.157, allocations: 39.11 kB / 1.092 GB, free: 208 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/2.157, allocations: 3.938 kB / 1.092 GB, free: 208 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002426/2.157, allocations: 175.8 kB / 1.092 GB, free: 207.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/2.157, allocations: 3.906 kB / 1.092 GB, free: 207.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/2.157, allocations: 3.844 kB / 1.092 GB, free: 207.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001873/2.157, allocations: 36.61 kB / 1.092 GB, free: 207.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.105e-05/2.157, allocations: 19.33 kB / 1.092 GB, free: 207.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/2.158, allocations: 2.556 MB / 1.094 GB, free: 205.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.011e-05/2.158, allocations: 15.72 kB / 1.094 GB, free: 205.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/2.158, allocations: 3.906 kB / 1.094 GB, free: 205.1 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.459e-05/2.159, allocations: 118.4 kB / 1.095 GB, free: 205 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/2.159, allocations: 15.62 kB / 1.095 GB, free: 205 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000293/2.159, allocations: 163.1 kB / 1.095 GB, free: 204.9 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/2.159, allocations: 3.938 kB / 1.095 GB, free: 204.9 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/2.159, allocations: 0 / 1.095 GB, free: 204.9 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/2.159, allocations: 7.984 kB / 1.095 GB, free: 204.9 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/2.159, allocations: 246.5 kB / 1.095 GB, free: 204.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/2.159, allocations: 3.969 kB / 1.095 GB, free: 204.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.139e-05/2.159, allocations: 7.953 kB / 1.095 GB, free: 204.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/2.159, allocations: 37.48 kB / 1.095 GB, free: 204.6 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/2.159, allocations: 7.891 kB / 1.095 GB, free: 204.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/2.161, allocations: 2.561 MB / 1.098 GB, free: 201.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/2.161, allocations: 3.938 kB / 1.098 GB, free: 201.9 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/2.161, allocations: 392.6 kB / 1.098 GB, free: 201.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/2.161, allocations: 92.72 kB / 1.098 GB, free: 201.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/2.161, allocations: 3.938 kB / 1.098 GB, free: 201.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/2.161, allocations: 7.938 kB / 1.098 GB, free: 201.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/2.161, allocations: 19.84 kB / 1.098 GB, free: 201.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/2.161, allocations: 0 / 1.098 GB, free: 201.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 9.059e-05/2.161, allocations: 148.7 kB / 1.098 GB, free: 201.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.6e-07/2.161, allocations: 96 / 1.098 GB, free: 201.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003732/2.162, allocations: 63.39 kB / 1.098 GB, free: 201.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (source.outlet.m_flow,source1.outlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003388/2.162, allocations: 222.3 kB / 1.098 GB, free: 201.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004477/2.162, allocations: 379.2 kB / 1.099 GB, free: 200.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/2.162, allocations: 0 / 1.099 GB, free: 200.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002388/2.163, allocations: 331.7 kB / 1.099 GB, free: 200.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/2.163, allocations: 45.8 kB / 1.099 GB, free: 200.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005541/2.164, allocations: 346.3 kB / 1.1 GB, free: 200.2 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/2.164, allocations: 0.7434 MB / 1.1 GB, free: 199.5 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.044e-05/2.164, allocations: 12.33 kB / 1.1 GB, free: 199.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.387e-05/2.164, allocations: 18.84 kB / 1.1 GB, free: 199.5 MB / 0.6042 GB Notification: Performance of SimCode: time 2.61e-07/2.164, allocations: 4 kB / 1.1 GB, free: 199.5 MB / 0.6042 GB Notification: Performance of Templates: time 0.007504/2.171, allocations: 4.369 MB / 1.105 GB, free: 197.2 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches