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.001255/0.001255, allocations: 174.8 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.349/1.349, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0009744/0.0009745, allocations: 86.05 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.01044/0.01044, allocations: 1.554 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.54/0.54, allocations: 90.04 MB / 479.4 MB, free: 2.977 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.605e-05/3.62e-05, allocations: 4 kB / 0.5445 GB, free: 7.988 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1465, allocations: 69.36 MB / 0.6122 GB, free: 2.539 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.188/1.334, allocations: 442.5 MB / 1.044 GB, free: 8.359 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/1.335, allocations: 81.58 kB / 1.044 GB, free: 8.316 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.934/4.269, allocations: 0.6314 GB / 1.676 GB, free: 48.05 MB / 0.6042 GB Notification: Performance of FrontEnd: time 4.669e-06/4.269, allocations: 0 / 1.676 GB, free: 48.05 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0008129/4.27, allocations: 102.7 kB / 1.676 GB, free: 48.03 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: 847 * Number of variables: 847 Notification: Performance of Generate backend data structure: time 0.01802/4.288, allocations: 4.233 MB / 1.68 GB, free: 45.93 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/4.288, allocations: 18.98 kB / 1.68 GB, free: 45.92 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002581/4.291, allocations: 433.4 kB / 1.68 GB, free: 45.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005553/4.296, allocations: 1.661 MB / 1.682 GB, free: 45.14 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003677/4.297, allocations: 252.2 kB / 1.682 GB, free: 45.13 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001602/4.298, allocations: 341.2 kB / 1.683 GB, free: 45.12 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/4.31, allocations: 3.77 MB / 1.686 GB, free: 44.09 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001534/4.31, allocations: 11.34 kB / 1.686 GB, free: 44.08 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000897/4.311, allocations: 135 kB / 1.687 GB, free: 43.98 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/4.311, allocations: 99.27 kB / 1.687 GB, free: 43.96 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007018/4.318, allocations: 3.561 MB / 1.69 GB, free: 42.66 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03163/4.35, allocations: 18.03 MB / 1.708 GB, free: 27.57 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009855/4.36, allocations: 4.419 MB / 1.712 GB, free: 24.95 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004913/4.365, allocations: 2.018 MB / 1.714 GB, free: 22.91 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02013/4.385, allocations: 9.366 MB / 1.723 GB, free: 12.74 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005948/4.391, allocations: 2.338 MB / 1.725 GB, free: 10.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=479): time 2.27e-05/4.391, allocations: 0 / 1.725 GB, free: 10.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=479): time 0.01089/4.402, allocations: 4.241 MB / 1.73 GB, free: 6.07 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/4.402, allocations: 345.7 kB / 1.73 GB, free: 5.664 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003167/4.405, allocations: 1.429 MB / 1.731 GB, free: 4.207 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0008824/4.406, allocations: 105.7 kB / 1.731 GB, free: 4.098 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.001433/4.408, allocations: 1.146 MB / 1.732 GB, free: 2.938 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.002427/4.41, allocations: 1.585 MB / 1.734 GB, free: 1.332 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00082/4.411, allocations: 88 kB / 1.734 GB, free: 1.246 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0003822/4.411, allocations: 471.3 kB / 1.735 GB, free: 0.7773 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003785/4.415, allocations: 1.438 MB / 1.736 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00442/4.42, allocations: 1.968 MB / 1.738 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004235/4.424, allocations: 1.825 MB / 1.74 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-05/4.424, allocations: 0 / 1.74 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=555) (initialization): time 0.01531/4.439, allocations: 4.818 MB / 1.744 GB, free: 6.426 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002457/4.44, allocations: 182.2 kB / 1.745 GB, free: 6.211 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-05/4.44, allocations: 12 kB / 1.745 GB, free: 6.199 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/4.441, allocations: 376.4 kB / 1.745 GB, free: 5.801 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004626/4.446, allocations: 0.9089 MB / 1.746 GB, free: 4.891 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/4.458, allocations: 13.93 MB / 1.759 GB, free: 5.672 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005487/4.464, allocations: 462.9 kB / 1.76 GB, free: 5.219 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001703/4.466, allocations: 191.9 kB / 1.76 GB, free: 5.031 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 () * 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.003292/4.469, allocations: 353.2 kB / 1.76 GB, free: 4.684 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002835/4.472, allocations: 347.8 kB / 1.761 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5997/5.072, allocations: 5.708 MB / 1.766 GB, free: 75.26 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001999/5.072, allocations: 69.53 kB / 1.766 GB, free: 75.26 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.088e-05/5.072, allocations: 7.531 kB / 1.766 GB, free: 75.26 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002245/5.072, allocations: 27.84 kB / 1.766 GB, free: 75.26 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03101/5.103, allocations: 10.04 MB / 1.776 GB, free: 74.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-05/5.103, allocations: 5.531 kB / 1.776 GB, free: 74.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004495/5.108, allocations: 0.904 MB / 1.777 GB, free: 74.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/5.109, allocations: 388.6 kB / 1.777 GB, free: 74 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009842/5.11, allocations: 157.4 kB / 1.778 GB, free: 74 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009377/5.12, allocations: 13.92 MB / 1.791 GB, free: 61.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/5.12, allocations: 16.14 kB / 1.791 GB, free: 61.56 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01784/5.138, allocations: 8.087 MB / 1.799 GB, free: 59.73 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/5.14, allocations: 476.3 kB / 1.8 GB, free: 59.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000873/5.141, allocations: 103.4 kB / 1.8 GB, free: 59.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003436/5.144, allocations: 240.2 kB / 1.8 GB, free: 59.44 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001161/5.146, allocations: 434.3 kB / 1.8 GB, free: 59.43 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005514/5.146, allocations: 182.2 kB / 1.8 GB, free: 59.43 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.002225/5.148, allocations: 1.079 MB / 1.802 GB, free: 59.27 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.72e-07/5.148, allocations: 0 / 1.802 GB, free: 59.27 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01066/5.159, allocations: 1.688 MB / 1.803 GB, free: 59.23 MB / 0.6355 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) * 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.008148/5.167, allocations: 2.236 MB / 1.805 GB, free: 58.63 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01493/5.182, allocations: 5.571 MB / 1.811 GB, free: 57.05 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.45e-05/5.182, allocations: 0 / 1.811 GB, free: 57.05 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.009656/5.192, allocations: 3.706 MB / 1.814 GB, free: 55.92 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008529/5.201, allocations: 0.9566 MB / 1.815 GB, free: 55.88 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01787/5.218, allocations: 6.241 MB / 1.821 GB, free: 54.44 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001983/5.22, allocations: 2.064 MB / 1.823 GB, free: 53.68 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.004551/5.225, allocations: 0.751 MB / 1.824 GB, free: 53.53 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/5.226, allocations: 398.8 kB / 1.825 GB, free: 53.53 MB / 0.6355 GB Notification: Performance of SimCode: time 1.833e-06/5.226, allocations: 4 kB / 1.825 GB, free: 53.52 MB / 0.6355 GB Notification: Performance of Templates: time 0.155/5.381, allocations: 77.57 MB / 1.9 GB, free: 47.77 MB / 0.6355 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