Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.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.Undirected.FlowControl.Tests.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|boundaryFore10.rear.m_flow|boundaryFore11.rear.m_flow|boundaryFore6.rear.m_flow|boundaryFore7.rear.m_flow|boundaryFore8.rear.m_flow|boundaryRear.fore.m_flow|boundaryRear2.fore.m_flow|boundaryRear3.fore.m_flow|boundaryRear6.fore.m_flow|boundaryRear7.fore.m_flow|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|mCV6.dp_int|mCV7.dp_int|mCV8.dp_int|mCV9.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|boundaryFore10.rear.m_flow|boundaryFore11.rear.m_flow|boundaryFore6.rear.m_flow|boundaryFore7.rear.m_flow|boundaryFore8.rear.m_flow|boundaryRear.fore.m_flow|boundaryRear2.fore.m_flow|boundaryRear3.fore.m_flow|boundaryRear6.fore.m_flow|boundaryRear7.fore.m_flow|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|mCV6.dp_int|mCV7.dp_int|mCV8.dp_int|mCV9.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01106/0.01106, allocations: 172 kB / 15.11 MB, free: 5.98 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.646/1.646, allocations: 223.2 MB / 239.1 MB, free: 1.781 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.0009459/0.000946, allocations: 100.5 kB / 290.2 MB, free: 13.93 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.01187/0.01187, allocations: 1.55 MB / 342.9 MB, free: 9.273 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.8934/0.8934, allocations: 90.3 MB / 484.7 MB, free: 21.89 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004892/0.0004895, allocations: 13.97 kB / 0.5526 GB, free: 30.41 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1733, allocations: 69.37 MB / 0.6203 GB, free: 5.625 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.36/1.533, allocations: 442.5 MB / 1.052 GB, free: 96.58 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/1.533, allocations: 86.58 kB / 1.053 GB, free: 96.54 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.995/4.528, allocations: 0.6336 GB / 1.686 GB, free: 49.04 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.736e-06/4.528, allocations: 0 / 1.686 GB, free: 49.04 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0002763/4.528, allocations: 97.06 kB / 1.686 GB, free: 49.02 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 847 * Number of variables: 847 Notification: Performance of Generate backend data structure: time 0.01516/4.544, allocations: 4.555 MB / 1.691 GB, free: 46.93 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/4.544, allocations: 11.86 kB / 1.691 GB, free: 46.93 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002048/4.546, allocations: 445.8 kB / 1.691 GB, free: 46.71 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004239/4.55, allocations: 1.672 MB / 1.693 GB, free: 46.23 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/4.55, allocations: 249.1 kB / 1.693 GB, free: 46.22 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005977/4.551, allocations: 343.9 kB / 1.693 GB, free: 46.21 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007763/4.559, allocations: 4 MB / 1.697 GB, free: 45.7 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.218e-05/4.559, allocations: 9.562 kB / 1.697 GB, free: 45.7 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003195/4.559, allocations: 130.8 kB / 1.697 GB, free: 45.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/4.559, allocations: 97.11 kB / 1.698 GB, free: 45.7 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006816/4.566, allocations: 3.998 MB / 1.701 GB, free: 45.68 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02373/4.59, allocations: 18.04 MB / 1.719 GB, free: 34.61 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/4.6, allocations: 4.838 MB / 1.724 GB, free: 34.34 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/4.618, allocations: 9.338 MB / 1.733 GB, free: 28.7 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005973/4.624, allocations: 2.552 MB / 1.735 GB, free: 28.48 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=479): time 2.016e-05/4.624, allocations: 1.906 kB / 1.735 GB, free: 28.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=479): time 0.0201/4.644, allocations: 8.955 MB / 1.744 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000202/4.644, allocations: 351.9 kB / 1.744 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003797/4.648, allocations: 1.454 MB / 1.746 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.001223/4.649, allocations: 107.5 kB / 1.746 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001551/4.651, allocations: 1.142 MB / 1.747 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.00281/4.654, allocations: 1.586 MB / 1.749 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/4.655, allocations: 84.78 kB / 1.749 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0005164/4.655, allocations: 467.4 kB / 1.749 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005302/4.661, allocations: 1.647 MB / 1.751 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005016/4.666, allocations: 2.18 MB / 1.753 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005042/4.671, allocations: 2.027 MB / 1.755 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-05/4.671, allocations: 0 / 1.755 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=555) (initialization): time 0.01546/4.686, allocations: 5.243 MB / 1.76 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001938/4.687, allocations: 173.1 kB / 1.76 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-05/4.687, allocations: 12.28 kB / 1.76 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/4.688, allocations: 389.5 kB / 1.761 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004303/4.692, allocations: 0.9104 MB / 1.761 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/4.705, allocations: 14.07 MB / 1.775 GB, free: 24.75 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005739/4.71, allocations: 464.1 kB / 1.776 GB, free: 24.55 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/4.712, allocations: 192.5 kB / 1.776 GB, free: 24.55 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition6,$PRE.trapezoid2.T_start,trapezoid2.T_start,$PRE.trapezoid2.count,trapezoid2.count,$whenCondition4,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$whenCondition2,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition1,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,$whenCondition3,$PRE.pulse3.T_start,pulse3.T_start,$PRE.pulse3.count,pulse3.count,$whenCondition5,$PRE.pulse5.T_start,pulse5.T_start,$PRE.pulse5.count,pulse5.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (503): * Single equations (assignments): 467 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004696/4.717, allocations: 0.5544 MB / 1.776 GB, free: 24.43 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002392/4.719, allocations: 357.7 kB / 1.777 GB, free: 24.25 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01746/4.737, allocations: 6.145 MB / 1.783 GB, free: 23.74 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001636/4.737, allocations: 66.42 kB / 1.783 GB, free: 23.74 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001011/4.737, allocations: 8.344 kB / 1.783 GB, free: 23.74 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001491/4.737, allocations: 29.17 kB / 1.783 GB, free: 23.74 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02646/4.764, allocations: 10.45 MB / 1.793 GB, free: 20.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.967e-05/4.764, allocations: 4.75 kB / 1.793 GB, free: 20.59 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004229/4.768, allocations: 0.8966 MB / 1.794 GB, free: 20.57 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/4.77, allocations: 400.6 kB / 1.794 GB, free: 20.42 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001251/4.771, allocations: 155.3 kB / 1.794 GB, free: 20.35 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/4.785, allocations: 14.06 MB / 1.808 GB, free: 22.68 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/4.785, allocations: 10.19 kB / 1.808 GB, free: 22.68 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0265/4.812, allocations: 8.728 MB / 1.817 GB, free: 18.11 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/4.814, allocations: 476 kB / 1.817 GB, free: 17.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002389/4.816, allocations: 101.5 kB / 1.817 GB, free: 17.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005536/4.822, allocations: 249.2 kB / 1.817 GB, free: 17.57 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002106/4.824, allocations: 429.6 kB / 1.818 GB, free: 17.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001504/4.826, allocations: 180 kB / 1.818 GB, free: 17.48 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.003142/4.829, allocations: 1.105 MB / 1.819 GB, free: 17.05 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.11e-07/4.829, allocations: 0 / 1.819 GB, free: 17.05 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.01466/4.844, allocations: 1.686 MB / 1.821 GB, free: 16.58 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 20 (mCV1.rear.m_flow,mCV1.dp_int,mCV2.rear.m_flow,mCV2.dp_int,mCV3.rear.m_flow,mCV3.dp_int,mCV4.rear.m_flow,mCV4.dp_int,mCV.rear.m_flow,mCV.dp_int,mCV5.rear.m_flow,mCV5.dp_int,boundaryRear9.fore.m_flow,mCV9.dp_int,mCV8.rear.m_flow,mCV8.dp_int,boundaryFore4.rear.m_flow,mCV7.dp_int,mCV6.rear.m_flow,mCV6.dp_int) * Number of discrete variables: 18 ($whenCondition1,pulse1.T_start,pulse1.count,$whenCondition2,trapezoid.T_start,trapezoid.count,$whenCondition3,pulse3.T_start,pulse3.count,$whenCondition4,trapezoid1.T_start,trapezoid1.count,$whenCondition5,pulse5.T_start,pulse5.count,$whenCondition6,trapezoid2.T_start,trapezoid2.count) * Number of discrete states: 6 (trapezoid2.count,pulse5.count,trapezoid1.count,pulse3.count,trapezoid.count,pulse1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (497): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008482/4.852, allocations: 2.242 MB / 1.823 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.01712/4.869, allocations: 6.019 MB / 1.829 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.798e-05/4.869, allocations: 0 / 1.829 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.01049/4.88, allocations: 3.93 MB / 1.833 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008855/4.889, allocations: 0.9522 MB / 1.834 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02568/4.915, allocations: 8.911 MB / 1.842 GB, free: 4.781 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003874/4.919, allocations: 2.052 MB / 1.844 GB, free: 3.98 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.004988/4.924, allocations: 0.7613 MB / 1.845 GB, free: 3.797 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/4.925, allocations: 391.6 kB / 1.845 GB, free: 3.746 MB / 0.6511 GB Notification: Performance of SimCode: time 2.695e-06/4.925, allocations: 4 kB / 1.845 GB, free: 3.742 MB / 0.6511 GB Notification: Performance of Templates: time 0.7459/5.671, allocations: 75.71 MB / 1.919 GB, free: 87.56 MB / 0.6667 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.MCV_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.MCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches