Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001221/0.001221, 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.511/1.511, allocations: 221.4 MB / 234.6 MB, free: 14.4 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.001008/0.001008, allocations: 85.41 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.01262/0.01262, allocations: 1.564 MB / 338 MB, free: 8.484 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.6177/0.6177, allocations: 90.05 MB / 479.3 MB, free: 2.992 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 5.99e-05/5.992e-05, allocations: 4 kB / 0.5445 GB, free: 7.988 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.242, allocations: 69.36 MB / 0.6122 GB, free: 2.543 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.251/1.493, allocations: 437.8 MB / 1.04 GB, free: 13 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/1.493, allocations: 79.47 kB / 1.04 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.7694/2.263, allocations: 208.4 MB / 1.243 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.803e-06/2.263, allocations: 3.938 kB / 1.243 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.053e-05/2.263, allocations: 31.98 kB / 1.243 GB, free: 58.08 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003396/2.266, allocations: 1.138 MB / 1.244 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.7e-05/2.266, allocations: 15.98 kB / 1.244 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005392/2.267, allocations: 94.88 kB / 1.245 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/2.268, allocations: 0.5062 MB / 1.245 GB, free: 56.24 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.035e-05/2.268, allocations: 53.98 kB / 1.245 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/2.269, allocations: 68 kB / 1.245 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/2.27, allocations: 0.6283 MB / 1.246 GB, free: 55.48 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/2.27, allocations: 0 / 1.246 GB, free: 55.48 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/2.27, allocations: 27.95 kB / 1.246 GB, free: 55.46 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/2.27, allocations: 20 kB / 1.246 GB, free: 55.44 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009246/2.271, allocations: 0.5936 MB / 1.246 GB, free: 54.84 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/2.274, allocations: 3.185 MB / 1.25 GB, free: 51.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/2.276, allocations: 0.69 MB / 1.25 GB, free: 50.59 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003373/2.276, allocations: 278.5 kB / 1.25 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005551/2.276, allocations: 0.9861 MB / 1.251 GB, free: 49.11 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/2.277, allocations: 47.06 kB / 1.251 GB, free: 49.05 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=60): time 3.446e-06/2.277, allocations: 0 / 1.251 GB, free: 49.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=61): time 0.002596/2.279, allocations: 1.468 MB / 1.253 GB, free: 47.53 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/2.279, allocations: 59.97 kB / 1.253 GB, free: 47.46 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003839/2.28, allocations: 384 kB / 1.253 GB, free: 47.08 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/2.28, allocations: 33.7 kB / 1.253 GB, free: 47.04 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/2.28, allocations: 336.4 kB / 1.254 GB, free: 46.71 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/2.28, allocations: 208.9 kB / 1.254 GB, free: 46.5 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/2.28, allocations: 8 kB / 1.254 GB, free: 46.49 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001245/2.28, allocations: 374.7 kB / 1.254 GB, free: 46.12 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/2.28, allocations: 189.1 kB / 1.254 GB, free: 45.93 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/2.281, allocations: 201 kB / 1.255 GB, free: 45.74 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/2.281, allocations: 231.2 kB / 1.255 GB, free: 45.51 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/2.281, allocations: 0 / 1.255 GB, free: 45.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001062/2.282, allocations: 0.663 MB / 1.255 GB, free: 44.84 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/2.282, allocations: 4 kB / 1.255 GB, free: 44.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/2.282, allocations: 0 / 1.255 GB, free: 44.83 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003758/2.282, allocations: 116.7 kB / 1.256 GB, free: 44.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/2.283, allocations: 95.88 kB / 1.256 GB, free: 44.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001756/2.285, allocations: 1.976 MB / 1.258 GB, free: 42.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004087/2.285, allocations: 39.91 kB / 1.258 GB, free: 42.47 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.532e-05/2.285, allocations: 19.98 kB / 1.258 GB, free: 42.45 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001063/2.285, allocations: 136.9 kB / 1.258 GB, free: 42.31 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/2.285, allocations: 59.33 kB / 1.258 GB, free: 42.25 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/2.287, allocations: 0.8373 MB / 1.259 GB, free: 41.41 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/2.287, allocations: 11.94 kB / 1.259 GB, free: 41.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/2.287, allocations: 4 kB / 1.259 GB, free: 41.39 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/2.287, allocations: 3.984 kB / 1.259 GB, free: 41.39 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/2.289, allocations: 1.637 MB / 1.26 GB, free: 39.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/2.289, allocations: 4 kB / 1.26 GB, free: 39.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003551/2.289, allocations: 107.8 kB / 1.26 GB, free: 39.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003388/2.29, allocations: 108.8 kB / 1.261 GB, free: 39.47 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.133e-05/2.29, allocations: 27.97 kB / 1.261 GB, free: 39.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001608/2.291, allocations: 1.953 MB / 1.262 GB, free: 37.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/2.291, allocations: 3.953 kB / 1.262 GB, free: 37.35 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/2.293, allocations: 1.116 MB / 1.264 GB, free: 36.2 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/2.293, allocations: 136.3 kB / 1.264 GB, free: 36.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.958e-05/2.293, allocations: 19.98 kB / 1.264 GB, free: 36.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003612/2.294, allocations: 44.03 kB / 1.264 GB, free: 35.99 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/2.294, allocations: 52.48 kB / 1.264 GB, free: 35.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-05/2.294, allocations: 20.09 kB / 1.264 GB, free: 35.92 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002691/2.294, allocations: 305.5 kB / 1.264 GB, free: 35.62 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/2.294, allocations: 4 kB / 1.264 GB, free: 35.62 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001084/2.295, allocations: 371.8 kB / 1.264 GB, free: 35.26 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (splitterT2_1.splitterN.inlet.m_flow,splitterT2_1.splitterN.outlets[1].m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00129/2.296, allocations: 0.7833 MB / 1.265 GB, free: 34.47 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001068/2.297, allocations: 0.7262 MB / 1.266 GB, free: 33.73 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/2.297, allocations: 0 / 1.266 GB, free: 33.73 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000651/2.298, allocations: 0.4992 MB / 1.266 GB, free: 33.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/2.299, allocations: 175.1 kB / 1.267 GB, free: 33.04 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/2.301, allocations: 0.9988 MB / 1.268 GB, free: 32.01 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004624/2.301, allocations: 0.9653 MB / 1.268 GB, free: 31.02 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0003937/2.302, allocations: 108.2 kB / 1.269 GB, free: 30.91 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/2.302, allocations: 63.41 kB / 1.269 GB, free: 30.85 MB / 0.6042 GB Notification: Performance of SimCode: time 8.11e-07/2.302, allocations: 0 / 1.269 GB, free: 30.85 MB / 0.6042 GB Notification: Performance of Templates: time 0.02746/2.329, allocations: 17.79 MB / 1.286 GB, free: 13.16 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches