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.001261/0.001261, allocations: 180.2 kB / 7.651 MB, free: 1.414 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.394/1.394, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.0009682/0.0009684, allocations: 88.55 kB / 280.5 MB, free: 5.336 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.008657/0.008657, allocations: 1.567 MB / 332.8 MB, free: 13.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.755/0.755, allocations: 90.04 MB / 474 MB, free: 13.04 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 2.519e-05/2.555e-05, allocations: 2.875 kB / 0.5375 GB, free: 33.1 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1516, allocations: 69.37 MB / 0.6052 GB, free: 128 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.201/1.353, allocations: 438.8 MB / 1.034 GB, free: 119.1 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/1.353, allocations: 79.78 kB / 1.034 GB, free: 119.1 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 1.723/3.076, allocations: 463.3 MB / 1.486 GB, free: 82.54 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.894e-06/3.076, allocations: 0 / 1.486 GB, free: 82.54 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002355/3.076, allocations: 55.27 kB / 1.486 GB, free: 82.52 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.007891/3.084, allocations: 2.661 MB / 1.489 GB, free: 81.24 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.011e-05/3.084, allocations: 9.281 kB / 1.489 GB, free: 81.24 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/3.085, allocations: 235.4 kB / 1.489 GB, free: 81.12 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002349/3.087, allocations: 0.9443 MB / 1.49 GB, free: 80.75 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.393e-05/3.088, allocations: 47.25 kB / 1.49 GB, free: 80.75 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005671/3.088, allocations: 114.1 kB / 1.49 GB, free: 80.75 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002824/3.091, allocations: 1.4 MB / 1.492 GB, free: 80.74 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003392/3.094, allocations: 1.49 MB / 1.493 GB, free: 80.52 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.198e-05/3.094, allocations: 7.188 kB / 1.493 GB, free: 80.52 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001677/3.095, allocations: 3.516 kB / 1.493 GB, free: 80.52 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.851e-05/3.095, allocations: 51.77 kB / 1.493 GB, free: 80.52 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008897/3.104, allocations: 7.281 MB / 1.5 GB, free: 76.23 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003092/3.107, allocations: 2.028 MB / 1.502 GB, free: 76.06 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/3.108, allocations: 0.876 MB / 1.503 GB, free: 75.99 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006989/3.109, allocations: 0.6781 MB / 1.504 GB, free: 75.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001432/3.11, allocations: 1.059 MB / 1.505 GB, free: 75.2 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=211): time 8.807e-06/3.11, allocations: 0 / 1.505 GB, free: 75.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=211): time 0.004175/3.114, allocations: 1.874 MB / 1.507 GB, free: 74.98 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/3.114, allocations: 247.8 kB / 1.507 GB, free: 74.72 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/3.115, allocations: 0.7469 MB / 1.507 GB, free: 74.58 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001389/3.115, allocations: 29.39 kB / 1.508 GB, free: 74.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004479/3.116, allocations: 0.6735 MB / 1.508 GB, free: 74.3 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005226/3.116, allocations: 0.6737 MB / 1.509 GB, free: 73.85 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/3.117, allocations: 1.312 kB / 1.509 GB, free: 73.85 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000114/3.117, allocations: 380.6 kB / 1.509 GB, free: 73.54 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009085/3.118, allocations: 0.6262 MB / 1.51 GB, free: 73.54 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/3.119, allocations: 0.8321 MB / 1.511 GB, free: 73.36 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/3.12, allocations: 0.6677 MB / 1.511 GB, free: 73.35 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/3.12, allocations: 6.156 kB / 1.511 GB, free: 73.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.004047/3.125, allocations: 2.046 MB / 1.513 GB, free: 73.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.13e-05/3.125, allocations: 174.1 kB / 1.513 GB, free: 72.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/3.125, allocations: 3.938 kB / 1.513 GB, free: 72.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007275/3.125, allocations: 263.9 kB / 1.514 GB, free: 72.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001586/3.127, allocations: 436.8 kB / 1.514 GB, free: 72.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005198/3.132, allocations: 9.443 MB / 1.523 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/3.134, allocations: 211 kB / 1.524 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002232/3.134, allocations: 83.64 kB / 1.524 GB, free: 64.41 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 () * 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.0003727/3.135, allocations: 157.5 kB / 1.524 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005429/3.135, allocations: 177.5 kB / 1.524 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005091/3.14, allocations: 2.364 MB / 1.526 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/3.14, allocations: 28.62 kB / 1.526 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.305e-05/3.14, allocations: 8.188 kB / 1.526 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.821e-05/3.14, allocations: 11.3 kB / 1.526 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007507/3.148, allocations: 4.487 MB / 1.531 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/3.148, allocations: 5.625 kB / 1.531 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/3.15, allocations: 444.7 kB / 1.531 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006983/3.15, allocations: 261.5 kB / 1.531 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001888/3.15, allocations: 56.77 kB / 1.531 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005285/3.156, allocations: 9.455 MB / 1.541 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/3.156, allocations: 3.594 kB / 1.541 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005985/3.162, allocations: 3.802 MB / 1.544 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007459/3.163, allocations: 273.3 kB / 1.545 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004701/3.163, allocations: 15.66 kB / 1.545 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/3.165, allocations: 135 kB / 1.545 GB, free: 53.19 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004758/3.166, allocations: 237.8 kB / 1.545 GB, free: 53.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001928/3.166, allocations: 86.12 kB / 1.545 GB, free: 53.18 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0008978/3.167, allocations: 0.552 MB / 1.546 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.8e-07/3.167, allocations: 0 / 1.546 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003834/3.17, allocations: 0.916 MB / 1.547 GB, free: 52.94 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) * 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.002973/3.173, allocations: 1.549 MB / 1.548 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003848/3.177, allocations: 3.037 MB / 1.551 GB, free: 50.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/3.177, allocations: 0 / 1.551 GB, free: 50.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002648/3.18, allocations: 2.149 MB / 1.553 GB, free: 49.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/3.183, allocations: 479.1 kB / 1.554 GB, free: 49.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006179/3.189, allocations: 3.28 MB / 1.557 GB, free: 47.71 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/3.19, allocations: 1.431 MB / 1.558 GB, free: 46.95 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.00143/3.192, allocations: 285.3 kB / 1.558 GB, free: 46.87 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005764/3.192, allocations: 163.4 kB / 1.559 GB, free: 46.85 MB / 0.6042 GB Notification: Performance of SimCode: time 8.42e-07/3.192, allocations: 0 / 1.559 GB, free: 46.85 MB / 0.6042 GB Notification: Performance of Templates: time 0.05488/3.247, allocations: 37.93 MB / 1.596 GB, free: 24.26 MB / 0.6042 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