Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.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.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, 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.642/1.642, 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.001256/0.001255, allocations: 96.69 kB / 285.6 MB, free: 12.99 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.01161/0.01161, allocations: 1.561 MB / 338.1 MB, free: 8.48 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.6832/0.6832, allocations: 90.04 MB / 479.4 MB, free: 2.973 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 4.61e-05/4.627e-05, allocations: 4 kB / 0.5445 GB, free: 7.992 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2126, allocations: 69.36 MB / 0.6122 GB, free: 2.543 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.358/9.571, allocations: 3.774 GB / 4.386 GB, free: 166.1 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/9.571, allocations: 83.38 kB / 4.386 GB, free: 166.1 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.582/15.15, allocations: 1.511 GB / 5.897 GB, free: 36.02 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.644e-06/15.15, allocations: 0 / 5.897 GB, free: 36.02 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.000197/15.15, allocations: 72.5 kB / 5.897 GB, free: 36.01 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 0.02339/15.18, allocations: 5.343 MB / 5.902 GB, free: 33.55 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/15.18, allocations: 22.17 kB / 5.902 GB, free: 33.54 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004036/15.18, allocations: 0.5697 MB / 5.903 GB, free: 33.39 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00318/15.18, allocations: 1.232 MB / 5.904 GB, free: 32.93 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/15.18, allocations: 171.7 kB / 5.904 GB, free: 32.92 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003988/15.18, allocations: 241.6 kB / 5.904 GB, free: 32.91 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005989/15.19, allocations: 2.909 MB / 5.907 GB, free: 32.63 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.412e-05/15.19, allocations: 3.938 kB / 5.907 GB, free: 32.62 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001835/15.19, allocations: 95.44 kB / 5.907 GB, free: 32.62 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.137e-05/15.19, allocations: 66.25 kB / 5.907 GB, free: 32.62 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004701/15.2, allocations: 2.406 MB / 5.91 GB, free: 32.59 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/15.21, allocations: 12.64 MB / 5.922 GB, free: 24.28 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004707/15.21, allocations: 2.277 MB / 5.924 GB, free: 24.11 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001528/15.22, allocations: 1.043 MB / 5.925 GB, free: 24.05 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05914/15.27, allocations: 32.34 MB / 5.957 GB, free: 19.68 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.224e-05/15.27, allocations: 59.73 kB / 5.957 GB, free: 19.64 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=226): time 4.768e-06/15.27, allocations: 3.312 kB / 5.957 GB, free: 19.64 MB / 0.6823 GB Notification: Performance of matching and sorting (n=226): time 0.009275/15.28, allocations: 3.279 MB / 5.96 GB, free: 19.37 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/15.28, allocations: 206.9 kB / 5.96 GB, free: 19.14 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/15.29, allocations: 0.9552 MB / 5.961 GB, free: 18.98 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002552/15.29, allocations: 60.27 kB / 5.961 GB, free: 18.95 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006033/15.29, allocations: 0.8769 MB / 5.962 GB, free: 18.6 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007621/15.29, allocations: 0.753 MB / 5.963 GB, free: 18.1 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001683/15.29, allocations: 33.53 kB / 5.963 GB, free: 18.1 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002062/15.29, allocations: 378.4 kB / 5.963 GB, free: 17.8 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/15.29, allocations: 0.6156 MB / 5.964 GB, free: 17.79 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/15.29, allocations: 0.856 MB / 5.965 GB, free: 17.57 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/15.29, allocations: 0.7435 MB / 5.966 GB, free: 17.54 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/15.29, allocations: 0 / 5.966 GB, free: 17.54 MB / 0.6823 GB Notification: Performance of matching and sorting (n=250) (initialization): time 0.003959/15.3, allocations: 2.189 MB / 5.968 GB, free: 17.24 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/15.3, allocations: 6.25 kB / 5.968 GB, free: 17.24 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/15.3, allocations: 7.656 kB / 5.968 GB, free: 17.24 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008775/15.3, allocations: 293.8 kB / 5.968 GB, free: 17.19 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/15.3, allocations: 369.6 kB / 5.968 GB, free: 17.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007247/15.31, allocations: 8.917 MB / 5.977 GB, free: 9.531 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002739/15.31, allocations: 221.2 kB / 5.977 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/15.31, allocations: 84.05 kB / 5.977 GB, free: 9.434 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 24 (dynamicPressureInflow1.inlet.state.phase,dynamicPressureInflow.inlet.state.phase,dynamicPressureInflow2.inlet.state.phase,dynamicPressureInflow3.inlet.state.phase,dynamicPressureInflow4.inlet.state.phase,dynamicPressureInflow5.inlet.state.phase,dynamicPressureInflow5.outlet.state.phase,flowResistance5.outlet.state.phase,dynamicPressureOutflow5.outlet.state.phase,dynamicPressureInflow4.outlet.state.phase,flowResistance4.outlet.state.phase,dynamicPressureOutflow4.outlet.state.phase,dynamicPressureInflow3.outlet.state.phase,flowResistance3.outlet.state.phase,dynamicPressureOutflow3.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,flowResistance2.outlet.state.phase,dynamicPressureOutflow2.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,dynamicPressureInflow1.outlet.state.phase,flowResistance1.outlet.state.phase,dynamicPressureOutflow1.outlet.state.phase,flowResistance.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005079/15.31, allocations: 215.6 kB / 5.977 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005245/15.31, allocations: 189 kB / 5.978 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007285/15.32, allocations: 5.967 MB / 5.984 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.151e-05/15.32, allocations: 75.17 kB / 5.984 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.001e-05/15.32, allocations: 7.312 kB / 5.984 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/15.32, allocations: 15.39 kB / 5.984 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/15.33, allocations: 9.336 MB / 5.993 GB, free: 1.598 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/15.33, allocations: 4 kB / 5.993 GB, free: 1.594 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/15.33, allocations: 311.3 kB / 5.993 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/15.33, allocations: 308.8 kB / 5.993 GB, free: 1.082 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000181/15.33, allocations: 75.28 kB / 5.993 GB, free: 1.023 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007652/15.34, allocations: 8.927 MB / 6.002 GB, free: 7.59 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/15.34, allocations: 4 kB / 6.002 GB, free: 7.586 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009196/15.35, allocations: 5.698 MB / 6.008 GB, free: 2.027 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/15.35, allocations: 395 kB / 6.008 GB, free: 1.625 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000396/15.35, allocations: 44 kB / 6.008 GB, free: 1.582 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/15.35, allocations: 145.5 kB / 6.008 GB, free: 1.453 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004131/15.35, allocations: 177.2 kB / 6.008 GB, free: 1.344 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001735/15.35, allocations: 78.78 kB / 6.008 GB, free: 1.277 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00109/15.35, allocations: 0.7182 MB / 6.009 GB, free: 0.6133 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/15.35, allocations: 0 / 6.009 GB, free: 0.6133 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.01024/15.36, allocations: 1.906 MB / 6.011 GB, free: 14.79 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (dynamicPressureOutflow5.inlet.m_flow,dynamicPressureOutflow4.inlet.m_flow,dynamicPressureOutflow3.inlet.m_flow,dynamicPressureOutflow2.inlet.m_flow,dynamicPressureOutflow.inlet.m_flow,dynamicPressureOutflow1.inlet.m_flow) * Number of discrete variables: 42 ($cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,dynamicPressureInflow5.inlet.state.phase,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,dynamicPressureInflow4.inlet.state.phase,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,dynamicPressureInflow3.inlet.state.phase,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,dynamicPressureInflow2.inlet.state.phase,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,dynamicPressureInflow.inlet.state.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,dynamicPressureInflow1.inlet.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01496/15.38, allocations: 3.414 MB / 6.014 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.006627/15.39, allocations: 3.221 MB / 6.018 GB, free: 9.117 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/15.39, allocations: 4 kB / 6.018 GB, free: 9.113 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.004042/15.39, allocations: 2.696 MB / 6.02 GB, free: 6.438 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004538/15.39, allocations: 0.6833 MB / 6.021 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/15.41, allocations: 5.241 MB / 6.026 GB, free: 1.203 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.63/16.04, allocations: 2.031 MB / 6.028 GB, free: 76.41 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002924/16.04, allocations: 0.7316 MB / 6.029 GB, free: 76.39 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005977/16.04, allocations: 156.9 kB / 6.029 GB, free: 76.39 MB / 0.7136 GB Notification: Performance of SimCode: time 1.072e-06/16.04, allocations: 0.6562 kB / 6.029 GB, free: 76.39 MB / 0.7136 GB Notification: Performance of Templates: time 0.1512/16.19, allocations: 96.06 MB / 6.123 GB, free: 72.36 MB / 0.7136 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.DynamicBoundaries_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches