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") [: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.003533/0.003533, allocations: 180.8 kB / 7.459 MB, free: 2.5 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.475/1.475, allocations: 221.4 MB / 229.3 MB, free: 3.02 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.001269/0.001269, allocations: 100.3 kB / 280.1 MB, free: 1.262 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.01486/0.01486, allocations: 1.575 MB / 332.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7406/0.7406, allocations: 90.04 MB / 473.6 MB, free: 7.281 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 7.805e-06/7.835e-06, allocations: 0 / 0.5369 GB, free: 14.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1814, allocations: 69.35 MB / 0.6046 GB, free: 8.887 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.471/1.653, allocations: 441.7 MB / 1.036 GB, free: 6.773 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003526/1.653, allocations: 85.75 kB / 1.036 GB, free: 6.73 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.881/4.534, allocations: 0.6325 GB / 1.669 GB, free: 42.7 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0006333/4.535, allocations: 100.2 kB / 1.669 GB, free: 42.68 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.01758/4.552, allocations: 4.313 MB / 1.673 GB, free: 40.59 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/4.552, allocations: 7.688 kB / 1.673 GB, free: 40.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002489/4.555, allocations: 431.6 kB / 1.673 GB, free: 40.38 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005074/4.56, allocations: 1.663 MB / 1.675 GB, free: 39.81 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002428/4.56, allocations: 109.9 kB / 1.675 GB, free: 39.81 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00131/4.561, allocations: 211.6 kB / 1.675 GB, free: 39.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007322/4.569, allocations: 3.34 MB / 1.678 GB, free: 39.79 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009039/4.578, allocations: 3.337 MB / 1.682 GB, free: 39.29 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001237/4.578, allocations: 11.56 kB / 1.682 GB, free: 39.28 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006458/4.579, allocations: 12.3 kB / 1.682 GB, free: 39.28 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/4.579, allocations: 89.92 kB / 1.682 GB, free: 39.28 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02653/4.605, allocations: 17.48 MB / 1.699 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007378/4.613, allocations: 3.711 MB / 1.703 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003562/4.616, allocations: 1.88 MB / 1.704 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01708/4.633, allocations: 9.129 MB / 1.713 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0056/4.639, allocations: 2.168 MB / 1.715 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=479): time 3.868e-05/4.639, allocations: 2.562 kB / 1.715 GB, free: 16.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=479): time 0.02008/4.659, allocations: 4.975 MB / 1.72 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/4.66, allocations: 336.1 kB / 1.721 GB, free: 14.11 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/4.663, allocations: 1.152 MB / 1.722 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0009702/4.664, allocations: 42.34 kB / 1.722 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001092/4.665, allocations: 0.7904 MB / 1.723 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.002216/4.667, allocations: 1.529 MB / 1.724 GB, free: 11.78 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008189/4.668, allocations: 0.9375 kB / 1.724 GB, free: 11.78 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0003952/4.669, allocations: 465 kB / 1.724 GB, free: 11.4 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00357/4.672, allocations: 1.354 MB / 1.726 GB, free: 10.8 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003313/4.675, allocations: 1.867 MB / 1.728 GB, free: 8.914 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009449/4.685, allocations: 2.594 MB / 1.73 GB, free: 6.699 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.346e-05/4.685, allocations: 4 kB / 1.73 GB, free: 6.695 MB / 0.6198 GB Notification: Performance of matching and sorting (n=555) (initialization): time 0.01698/4.702, allocations: 5.309 MB / 1.735 GB, free: 1.355 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/4.702, allocations: 8.031 kB / 1.735 GB, free: 1.348 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.71e-05/4.702, allocations: 12 kB / 1.735 GB, free: 1.336 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001332/4.703, allocations: 371.9 kB / 1.736 GB, free: 0.9453 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004104/4.708, allocations: 0.9283 MB / 1.737 GB, free: 20 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/4.72, allocations: 13.21 MB / 1.75 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005491/4.726, allocations: 371.3 kB / 1.75 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001723/4.727, allocations: 187.9 kB / 1.75 GB, free: 1.152 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.002492/4.73, allocations: 190.7 kB / 1.75 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002101/4.732, allocations: 316.2 kB / 1.751 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02396/4.756, allocations: 6.631 MB / 1.757 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001464/4.756, allocations: 71.92 kB / 1.757 GB, free: 9.988 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.478e-05/4.756, allocations: 8 kB / 1.757 GB, free: 9.98 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001732/4.756, allocations: 27.91 kB / 1.757 GB, free: 9.953 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4388/5.195, allocations: 10.32 MB / 1.767 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.921e-05/5.195, allocations: 3.625 kB / 1.767 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004654/5.2, allocations: 0.9252 MB / 1.768 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/5.201, allocations: 373.7 kB / 1.768 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00128/5.203, allocations: 116.9 kB / 1.769 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008206/5.211, allocations: 13.22 MB / 1.781 GB, free: 124.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/5.211, allocations: 10.75 kB / 1.781 GB, free: 124.8 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02054/5.232, allocations: 8.761 MB / 1.79 GB, free: 123.1 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001766/5.233, allocations: 440.2 kB / 1.79 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001197/5.235, allocations: 23.81 kB / 1.79 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003902/5.239, allocations: 185.6 kB / 1.791 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008338/5.239, allocations: 370.5 kB / 1.791 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004307/5.24, allocations: 186.5 kB / 1.791 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.001263/5.241, allocations: 0.8392 MB / 1.792 GB, free: 122.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00798/5.249, allocations: 1.539 MB / 1.794 GB, free: 122.6 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) * 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.005038/5.254, allocations: 2.214 MB / 1.796 GB, free: 122 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.01049/5.265, allocations: 5.069 MB / 1.801 GB, free: 120.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.546e-05/5.265, allocations: 3.594 kB / 1.801 GB, free: 120.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.006402/5.271, allocations: 3.473 MB / 1.804 GB, free: 119.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006154/5.277, allocations: 0.7974 MB / 1.805 GB, free: 119.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/5.292, allocations: 6.006 MB / 1.811 GB, free: 118.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003037/5.295, allocations: 2.493 MB / 1.813 GB, free: 117.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.032e-06/5.295, allocations: 0 / 1.813 GB, free: 117.7 MB / 0.6511 GB Notification: Performance of Templates: time 0.1262/5.421, allocations: 73.59 MB / 1.885 GB, free: 112.8 MB / 0.6511 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