Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.FlowControl.Tests.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|mCV6.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow|source6.outlet.m_flow|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV") translateModel(ThermofluidStream.FlowControl.Tests.MCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|mCV4.dp_int|mCV5.dp_int|mCV6.dp_int|pulse1.T_start|pulse1.count|pulse3.T_start|pulse3.count|pulse5.T_start|pulse5.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow|source6.outlet.m_flow|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count|trapezoid2.T_start|trapezoid2.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008562/0.008562, allocations: 171.1 kB / 15.11 MB, free: 5.969 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.534/1.534, allocations: 223.2 MB / 239 MB, free: 1.777 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.001027/0.001027, allocations: 104.1 kB / 290.2 MB, free: 13.95 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.013/0.013, allocations: 1.558 MB / 342.9 MB, free: 9.289 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.882/0.882, allocations: 90.31 MB / 484.7 MB, free: 21.9 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0005411/0.0005411, allocations: 14.47 kB / 0.5526 GB, free: 30.41 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1608, allocations: 69.35 MB / 0.6203 GB, free: 5.629 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.495/1.656, allocations: 439.5 MB / 1.05 GB, free: 102.1 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/1.656, allocations: 80.16 kB / 1.05 GB, free: 102 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 1.947/3.603, allocations: 467.3 MB / 1.506 GB, free: 81.99 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.315e-06/3.603, allocations: 0 / 1.506 GB, free: 81.99 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002892/3.603, allocations: 57.86 kB / 1.506 GB, free: 81.98 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: 395 * Number of variables: 395 Notification: Performance of Generate backend data structure: time 0.01072/3.614, allocations: 2.868 MB / 1.509 GB, free: 80.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.125e-05/3.614, allocations: 11.48 kB / 1.509 GB, free: 80.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/3.616, allocations: 236.8 kB / 1.509 GB, free: 80.36 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003134/3.619, allocations: 0.9555 MB / 1.51 GB, free: 79.99 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/3.619, allocations: 123.3 kB / 1.51 GB, free: 79.99 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000801/3.62, allocations: 176 kB / 1.51 GB, free: 79.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003827/3.624, allocations: 1.891 MB / 1.512 GB, free: 79.76 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.451e-05/3.624, allocations: 3.453 kB / 1.512 GB, free: 79.76 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/3.624, allocations: 64.59 kB / 1.512 GB, free: 79.76 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.501e-05/3.624, allocations: 45.31 kB / 1.512 GB, free: 79.76 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003699/3.627, allocations: 1.878 MB / 1.514 GB, free: 79.74 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/3.638, allocations: 7.585 MB / 1.521 GB, free: 75.38 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005128/3.644, allocations: 2.476 MB / 1.524 GB, free: 75.21 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008652/3.644, allocations: 0.6685 MB / 1.525 GB, free: 74.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002609/3.647, allocations: 1.31 MB / 1.526 GB, free: 74.26 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=211): time 6.863e-06/3.647, allocations: 0 / 1.526 GB, free: 74.26 MB / 0.6042 GB Notification: Performance of matching and sorting (n=211): time 0.009831/3.657, allocations: 4.521 MB / 1.53 GB, free: 71.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001604/3.657, allocations: 247 kB / 1.53 GB, free: 71.54 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002481/3.66, allocations: 0.8961 MB / 1.531 GB, free: 71.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000273/3.66, allocations: 73.02 kB / 1.531 GB, free: 71.12 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008148/3.661, allocations: 0.6575 MB / 1.532 GB, free: 70.6 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008405/3.662, allocations: 0.6994 MB / 1.533 GB, free: 70.06 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/3.662, allocations: 35.09 kB / 1.533 GB, free: 70.03 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001849/3.662, allocations: 383.3 kB / 1.533 GB, free: 69.69 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/3.664, allocations: 0.848 MB / 1.534 GB, free: 69.42 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/3.666, allocations: 1.071 MB / 1.535 GB, free: 68.94 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002072/3.668, allocations: 1.094 MB / 1.536 GB, free: 68.38 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/3.668, allocations: 3.312 kB / 1.536 GB, free: 68.38 MB / 0.6042 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006136/3.674, allocations: 2.768 MB / 1.539 GB, free: 67.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/3.675, allocations: 174.5 kB / 1.539 GB, free: 67.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/3.675, allocations: 7 kB / 1.539 GB, free: 67.02 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009913/3.676, allocations: 272.9 kB / 1.539 GB, free: 66.91 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/3.677, allocations: 436 kB / 1.54 GB, free: 66.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007569/3.685, allocations: 9.922 MB / 1.549 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003209/3.688, allocations: 268.4 kB / 1.55 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007631/3.689, allocations: 78.23 kB / 1.55 GB, free: 57.09 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition5,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition3,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count,$whenCondition1,$PRE.trapezoid2.T_start,trapezoid2.T_start,$PRE.trapezoid2.count,trapezoid2.count,$whenCondition6,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count,$whenCondition4,$PRE.pulse3.T_start,pulse3.T_start,$PRE.pulse3.count,pulse3.count,$whenCondition2,$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 (219): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00194/3.691, allocations: 338.5 kB / 1.55 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/3.692, allocations: 190.9 kB / 1.55 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008265/3.7, allocations: 2.961 MB / 1.553 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.795e-05/3.701, allocations: 24.44 kB / 1.553 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.522e-05/3.701, allocations: 9.844 kB / 1.553 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.532e-05/3.701, allocations: 13.88 kB / 1.553 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/3.715, allocations: 5.244 MB / 1.558 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-05/3.715, allocations: 3.594 kB / 1.558 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002117/3.717, allocations: 445.5 kB / 1.559 GB, free: 52.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001175/3.718, allocations: 282.7 kB / 1.559 GB, free: 52.56 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003721/3.719, allocations: 70.66 kB / 1.559 GB, free: 52.51 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008685/3.727, allocations: 9.937 MB / 1.569 GB, free: 41.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/3.727, allocations: 4 kB / 1.569 GB, free: 41.93 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/3.738, allocations: 4.579 MB / 1.573 GB, free: 37.18 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/3.74, allocations: 278.2 kB / 1.573 GB, free: 36.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000745/3.74, allocations: 55.98 kB / 1.573 GB, free: 36.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00251/3.743, allocations: 171.6 kB / 1.574 GB, free: 36.67 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007424/3.744, allocations: 231.4 kB / 1.574 GB, free: 36.44 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003152/3.744, allocations: 79.94 kB / 1.574 GB, free: 36.36 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001403/3.745, allocations: 0.6975 MB / 1.575 GB, free: 35.66 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.134e-06/3.745, allocations: 0 / 1.575 GB, free: 35.66 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.005031/3.75, allocations: 0.9831 MB / 1.576 GB, free: 34.68 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (sink6.inlet.m_flow,mCV6.dp_int,mCV5.inlet.m_flow,mCV5.dp_int,mCV.inlet.m_flow,mCV.dp_int,mCV4.inlet.m_flow,mCV4.dp_int,mCV3.inlet.m_flow,mCV3.dp_int,mCV2.inlet.m_flow,mCV2.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * Number of discrete variables: 18 ($whenCondition1,trapezoid2.T_start,trapezoid2.count,$whenCondition2,pulse5.T_start,pulse5.count,$whenCondition3,trapezoid1.T_start,trapezoid1.count,$whenCondition4,pulse3.T_start,pulse3.count,$whenCondition5,trapezoid.T_start,trapezoid.count,$whenCondition6,pulse1.T_start,pulse1.count) * Number of discrete states: 6 (pulse1.count,trapezoid.count,pulse3.count,trapezoid1.count,pulse5.count,trapezoid2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (217): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(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 Backend phase and start with SimCode phase: time 0.003912/3.754, allocations: 1.545 MB / 1.577 GB, free: 33.26 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007114/3.761, allocations: 3.598 MB / 1.581 GB, free: 29.46 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/3.762, allocations: 0 / 1.581 GB, free: 29.46 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004448/3.766, allocations: 2.446 MB / 1.583 GB, free: 26.9 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00389/3.77, allocations: 0.5107 MB / 1.583 GB, free: 26.41 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/3.781, allocations: 4.89 MB / 1.588 GB, free: 21.55 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/3.782, allocations: 1.431 MB / 1.59 GB, free: 20.09 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.002464/3.785, allocations: 295.3 kB / 1.59 GB, free: 19.81 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009143/3.786, allocations: 167.4 kB / 1.59 GB, free: 19.64 MB / 0.6042 GB Notification: Performance of SimCode: time 2.465e-06/3.786, allocations: 0 / 1.59 GB, free: 19.64 MB / 0.6042 GB Notification: Performance of Templates: time 0.5085/4.294, allocations: 43.76 MB / 1.633 GB, free: 89.91 MB / 0.6198 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.MCV_ref.mat","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches