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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002167/0.002167, allocations: 172.2 kB / 7.456 MB, free: 2.156 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.099/1.099, allocations: 221.4 MB / 229.3 MB, free: 3.078 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.0008026/0.0008026, allocations: 98.06 kB / 280.1 MB, free: 1.328 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.007222/0.007222, allocations: 1.565 MB / 332.5 MB, free: 12.96 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.4135/0.4135, allocations: 90.05 MB / 473.7 MB, free: 7.285 MB / 314.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 7.213e-06/7.233e-06, allocations: 4 kB / 0.5369 GB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.119, allocations: 69.35 MB / 0.6046 GB, free: 8.887 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.765/0.884, allocations: 438.7 MB / 1.033 GB, free: 9.676 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.8843, allocations: 74.84 kB / 1.033 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.271/2.155, allocations: 466.3 MB / 1.488 GB, free: 21.2 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002288/2.155, allocations: 53.62 kB / 1.489 GB, free: 21.15 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.007503/2.163, allocations: 2.725 MB / 1.491 GB, free: 18.34 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/2.163, allocations: 8.031 kB / 1.491 GB, free: 18.34 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007246/2.164, allocations: 225.3 kB / 1.491 GB, free: 18.11 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/2.165, allocations: 0.9489 MB / 1.492 GB, free: 17.14 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.048e-05/2.165, allocations: 55.98 kB / 1.492 GB, free: 17.09 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003227/2.166, allocations: 107.9 kB / 1.492 GB, free: 16.98 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002151/2.168, allocations: 1.4 MB / 1.494 GB, free: 15.58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/2.17, allocations: 1.492 MB / 1.495 GB, free: 14.02 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/2.17, allocations: 4 kB / 1.495 GB, free: 14.01 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/2.17, allocations: 7.938 kB / 1.495 GB, free: 14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.952e-05/2.17, allocations: 43.98 kB / 1.495 GB, free: 13.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007105/2.177, allocations: 7.314 MB / 1.503 GB, free: 6.121 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/2.178, allocations: 0.9152 MB / 1.503 GB, free: 5.164 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009474/2.179, allocations: 0.8754 MB / 1.504 GB, free: 4.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000566/2.18, allocations: 0.6736 MB / 1.505 GB, free: 3.48 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/2.181, allocations: 1.03 MB / 1.506 GB, free: 2.422 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=211): time 4.539e-06/2.181, allocations: 0 / 1.506 GB, free: 2.422 MB / 0.6042 GB Notification: Performance of matching and sorting (n=211): time 0.003881/2.185, allocations: 1.848 MB / 1.508 GB, free: 0.5508 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/2.185, allocations: 239.5 kB / 1.508 GB, free: 276 kB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/2.186, allocations: 0.7435 MB / 1.509 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001422/2.186, allocations: 29.7 kB / 1.509 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003777/2.187, allocations: 466.6 kB / 1.509 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005475/2.187, allocations: 0.6696 MB / 1.51 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.911e-05/2.187, allocations: 0 / 1.51 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001487/2.188, allocations: 377.9 kB / 1.51 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/2.189, allocations: 0.621 MB / 1.511 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/2.19, allocations: 0.8329 MB / 1.512 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/2.192, allocations: 0.679 MB / 1.512 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/2.192, allocations: 0 / 1.512 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.004184/2.196, allocations: 2.027 MB / 1.514 GB, free: 9.715 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/2.196, allocations: 6.344 kB / 1.514 GB, free: 9.711 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/2.196, allocations: 4 kB / 1.514 GB, free: 9.707 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008412/2.197, allocations: 270.3 kB / 1.514 GB, free: 9.422 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00173/2.199, allocations: 447.4 kB / 1.515 GB, free: 8.984 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1922/2.391, allocations: 9.286 MB / 1.524 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/2.393, allocations: 222.6 kB / 1.524 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/2.393, allocations: 82.09 kB / 1.524 GB, free: 134.6 MB / 0.6198 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 () * 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.0003019/2.393, allocations: 153.1 kB / 1.524 GB, free: 134.5 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/2.393, allocations: 165.2 kB / 1.525 GB, free: 134.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004663/2.398, allocations: 2.407 MB / 1.527 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/2.398, allocations: 21.44 kB / 1.527 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/2.398, allocations: 7.156 kB / 1.527 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/2.398, allocations: 19.92 kB / 1.527 GB, free: 134.3 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006381/2.405, allocations: 4.472 MB / 1.531 GB, free: 133.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/2.405, allocations: 7.469 kB / 1.531 GB, free: 133.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/2.406, allocations: 456.6 kB / 1.532 GB, free: 133.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006708/2.407, allocations: 259.8 kB / 1.532 GB, free: 133.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/2.407, allocations: 52.72 kB / 1.532 GB, free: 133.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004936/2.412, allocations: 9.29 MB / 1.541 GB, free: 125.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/2.412, allocations: 6.219 kB / 1.541 GB, free: 125.1 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005218/2.417, allocations: 3.799 MB / 1.545 GB, free: 124 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/2.418, allocations: 258.7 kB / 1.545 GB, free: 123.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002482/2.418, allocations: 25.44 kB / 1.545 GB, free: 123.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/2.419, allocations: 152.5 kB / 1.545 GB, free: 123.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003306/2.42, allocations: 185.9 kB / 1.545 GB, free: 123.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001348/2.42, allocations: 82.11 kB / 1.546 GB, free: 123.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0005652/2.421, allocations: 0.5644 MB / 1.546 GB, free: 123.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002363/2.423, allocations: 0.9106 MB / 1.547 GB, free: 123.7 MB / 0.6198 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) * 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.001776/2.425, allocations: 1.554 MB / 1.549 GB, free: 123.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.003054/2.428, allocations: 2.818 MB / 1.551 GB, free: 122.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/2.428, allocations: 2.469 kB / 1.551 GB, free: 122.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002414/2.43, allocations: 2.106 MB / 1.553 GB, free: 121.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/2.432, allocations: 457.6 kB / 1.554 GB, free: 121.2 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005118/2.437, allocations: 3.282 MB / 1.557 GB, free: 120.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/2.439, allocations: 1.598 MB / 1.559 GB, free: 119.7 MB / 0.6198 GB Notification: Performance of SimCode: time 2.5e-07/2.439, allocations: 3.938 kB / 1.559 GB, free: 119.7 MB / 0.6198 GB Notification: Performance of Templates: time 0.05184/2.49, allocations: 40.86 MB / 1.598 GB, free: 117.8 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