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.001029/0.001029, allocations: 180.9 kB / 7.651 MB, free: 1.422 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.442/1.442, allocations: 221.5 MB / 229.6 MB, free: 7.551 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.001091/0.001091, allocations: 96.33 kB / 280.5 MB, free: 5.277 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.01152/0.01152, allocations: 1.569 MB / 332.8 MB, free: 13.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7682/0.7682, allocations: 90.05 MB / 474.1 MB, free: 13.04 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.494e-05/1.506e-05, allocations: 3 kB / 0.5375 GB, free: 33.07 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.158, allocations: 69.37 MB / 0.6052 GB, free: 128 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.284/1.442, allocations: 441.8 MB / 1.037 GB, free: 116.1 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/1.442, allocations: 91.64 kB / 1.037 GB, free: 116.1 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.687/4.129, allocations: 0.6281 GB / 1.665 GB, free: 49.39 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.064e-06/4.129, allocations: 0 / 1.665 GB, free: 49.39 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0004654/4.129, allocations: 96.11 kB / 1.665 GB, free: 49.37 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.01676/4.146, allocations: 4.233 MB / 1.669 GB, free: 47.6 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/4.146, allocations: 11.69 kB / 1.669 GB, free: 47.6 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002623/4.149, allocations: 435.3 kB / 1.67 GB, free: 47.39 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00527/4.154, allocations: 1.657 MB / 1.671 GB, free: 46.9 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/4.154, allocations: 108.5 kB / 1.671 GB, free: 46.9 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001413/4.156, allocations: 211.6 kB / 1.671 GB, free: 46.89 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007606/4.163, allocations: 3.343 MB / 1.675 GB, free: 46.88 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006564/4.17, allocations: 3.344 MB / 1.678 GB, free: 46.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.107e-05/4.17, allocations: 10.34 kB / 1.678 GB, free: 46.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002322/4.17, allocations: 7.156 kB / 1.678 GB, free: 46.39 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.114e-05/4.17, allocations: 99.22 kB / 1.678 GB, free: 46.38 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02168/4.192, allocations: 17.45 MB / 1.695 GB, free: 35.41 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006506/4.198, allocations: 4.26 MB / 1.699 GB, free: 35.14 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/4.202, allocations: 1.883 MB / 1.701 GB, free: 35.05 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01429/4.216, allocations: 9.137 MB / 1.71 GB, free: 29.43 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00427/4.22, allocations: 2.212 MB / 1.712 GB, free: 29.22 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=479): time 2.259e-05/4.22, allocations: 3.062 kB / 1.712 GB, free: 29.22 MB / 0.6198 GB Notification: Performance of matching and sorting (n=479): time 0.0154/4.236, allocations: 4.805 MB / 1.717 GB, free: 28.87 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001871/4.236, allocations: 344.8 kB / 1.717 GB, free: 28.52 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/4.239, allocations: 1.16 MB / 1.718 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0007524/4.24, allocations: 29.27 kB / 1.718 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001157/4.241, allocations: 1.169 MB / 1.72 GB, free: 27.84 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.001737/4.243, allocations: 1.521 MB / 1.721 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006027/4.243, allocations: 3.75 kB / 1.721 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0003622/4.244, allocations: 473.9 kB / 1.722 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002743/4.246, allocations: 1.352 MB / 1.723 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003001/4.249, allocations: 1.863 MB / 1.725 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008329/4.258, allocations: 2.409 MB / 1.727 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.392e-05/4.258, allocations: 7.547 kB / 1.727 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=555) (initialization): time 0.01626/4.274, allocations: 5.152 MB / 1.732 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/4.274, allocations: 177.8 kB / 1.732 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.516e-05/4.274, allocations: 12.41 kB / 1.732 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/4.275, allocations: 374.7 kB / 1.733 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003898/4.279, allocations: 0.9086 MB / 1.733 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00982/4.289, allocations: 13.43 MB / 1.747 GB, free: 29.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005577/4.295, allocations: 356.5 kB / 1.747 GB, free: 29.12 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002141/4.297, allocations: 187.1 kB / 1.747 GB, free: 29.12 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.00311/4.3, allocations: 193.6 kB / 1.747 GB, free: 29.01 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002605/4.303, allocations: 333.2 kB / 1.748 GB, free: 28.84 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02238/4.325, allocations: 6.16 MB / 1.754 GB, free: 28.35 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001625/4.325, allocations: 73.98 kB / 1.754 GB, free: 28.34 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.38e-05/4.326, allocations: 7.625 kB / 1.754 GB, free: 28.34 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002234/4.326, allocations: 33.44 kB / 1.754 GB, free: 28.34 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03217/4.358, allocations: 10.16 MB / 1.764 GB, free: 26.92 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-05/4.358, allocations: 6.375 kB / 1.764 GB, free: 26.92 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004103/4.362, allocations: 0.9032 MB / 1.765 GB, free: 26.92 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001252/4.363, allocations: 375.9 kB / 1.765 GB, free: 26.84 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001124/4.365, allocations: 114 kB / 1.765 GB, free: 26.84 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/4.376, allocations: 13.42 MB / 1.778 GB, free: 14.84 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-05/4.376, allocations: 7 kB / 1.778 GB, free: 14.84 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02724/4.403, allocations: 8.555 MB / 1.786 GB, free: 12.84 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001873/4.405, allocations: 451.1 kB / 1.787 GB, free: 12.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001825/4.407, allocations: 24.25 kB / 1.787 GB, free: 12.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004413/4.411, allocations: 171.8 kB / 1.787 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00166/4.413, allocations: 426.1 kB / 1.787 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001143/4.414, allocations: 181.9 kB / 1.788 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.002027/4.416, allocations: 0.8427 MB / 1.788 GB, free: 12.31 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.61e-07/4.416, allocations: 0 / 1.788 GB, free: 12.31 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00994/4.426, allocations: 1.543 MB / 1.79 GB, free: 12.11 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.006294/4.432, allocations: 2.215 MB / 1.792 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01277/4.445, allocations: 5.283 MB / 1.797 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.486e-05/4.445, allocations: 0 / 1.797 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.008496/4.454, allocations: 3.525 MB / 1.801 GB, free: 24.81 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007605/4.461, allocations: 0.829 MB / 1.802 GB, free: 24.77 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/4.478, allocations: 5.976 MB / 1.807 GB, free: 22.87 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003346/4.481, allocations: 2.055 MB / 1.809 GB, free: 22.06 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.005666/4.487, allocations: 0.7373 MB / 1.81 GB, free: 21.88 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002129/4.489, allocations: 382.7 kB / 1.811 GB, free: 21.88 MB / 0.6511 GB Notification: Performance of SimCode: time 2.706e-06/4.489, allocations: 0 / 1.811 GB, free: 21.88 MB / 0.6511 GB Notification: Performance of Templates: time 0.1209/4.61, allocations: 66.66 MB / 1.876 GB, free: 2.395 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