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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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|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|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|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|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 3.2.3+maint.om/package.mo): time 0.001369/0.001369, allocations: 172.7 kB / 16.11 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.4 MB / 222.3 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007752/0.0007752, allocations: 88.91 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.8736/0.8736, allocations: 89.57 MB / 408.5 MB, free: 4.512 MB / 298.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 0.0003791/0.0003791, allocations: 12 kB / 485.2 MB, free: 7.656 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4576/0.458, allocations: 66.01 MB / 0.5383 GB, free: 34.54 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.244/1.702, allocations: 439.1 MB / 0.9671 GB, free: 187.9 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/1.703, allocations: 88.97 kB / 0.9672 GB, free: 187.9 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.114/2.817, allocations: 407.1 MB / 1.365 GB, free: 14.8 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.895e-06/2.817, allocations: 0 / 1.365 GB, free: 14.8 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001815/2.817, allocations: 47.98 kB / 1.365 GB, free: 14.75 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 357 * Number of variables: 357 Notification: Performance of Generate backend data structure: time 0.00734/2.824, allocations: 2.636 MB / 1.367 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/2.824, allocations: 12.03 kB / 1.367 GB, free: 12 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008943/2.825, allocations: 216.7 kB / 1.368 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00186/2.827, allocations: 0.9124 MB / 1.368 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/2.827, allocations: 114.7 kB / 1.369 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004194/2.828, allocations: 155.8 kB / 1.369 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003415/2.831, allocations: 1.749 MB / 1.37 GB, free: 8.742 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.93e-05/2.831, allocations: 0 / 1.37 GB, free: 8.742 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/2.831, allocations: 56 kB / 1.37 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/2.831, allocations: 40 kB / 1.371 GB, free: 8.648 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003191/2.835, allocations: 1.754 MB / 1.372 GB, free: 6.895 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4074/3.242, allocations: 6.743 MB / 1.379 GB, free: 74.09 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005289/3.247, allocations: 2.236 MB / 1.381 GB, free: 73.95 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002351/3.25, allocations: 1.029 MB / 1.382 GB, free: 73.89 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008406/3.251, allocations: 0.5884 MB / 1.383 GB, free: 73.33 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002579/3.253, allocations: 1.23 MB / 1.384 GB, free: 73.21 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 5.2e-06/3.253, allocations: 0 / 1.384 GB, free: 73.21 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.009057/3.262, allocations: 3.653 MB / 1.387 GB, free: 72.52 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/3.262, allocations: 212.5 kB / 1.388 GB, free: 72.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/3.264, allocations: 0.944 MB / 1.388 GB, free: 72.16 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001794/3.264, allocations: 66.34 kB / 1.389 GB, free: 72.12 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005557/3.265, allocations: 0.6007 MB / 1.389 GB, free: 72 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006152/3.265, allocations: 0.6337 MB / 1.39 GB, free: 71.68 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.536e-05/3.266, allocations: 34.38 kB / 1.39 GB, free: 71.68 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000177/3.266, allocations: 372.1 kB / 1.39 GB, free: 71.37 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001866/3.268, allocations: 0.7982 MB / 1.391 GB, free: 71.37 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/3.269, allocations: 0.9988 MB / 1.392 GB, free: 71.22 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003536/3.273, allocations: 1.977 MB / 1.394 GB, free: 70.88 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/3.273, allocations: 0 / 1.394 GB, free: 70.88 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.006388/3.279, allocations: 2.584 MB / 1.396 GB, free: 70.48 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.619e-05/3.28, allocations: 178.3 kB / 1.396 GB, free: 70.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/3.28, allocations: 3.656 kB / 1.396 GB, free: 70.29 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008066/3.28, allocations: 240.7 kB / 1.397 GB, free: 70.25 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/3.282, allocations: 401.2 kB / 1.397 GB, free: 70.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005525/3.288, allocations: 8.502 MB / 1.405 GB, free: 62.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002288/3.29, allocations: 243 kB / 1.406 GB, free: 62.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/3.29, allocations: 77.11 kB / 1.406 GB, free: 62.66 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(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.0009583/3.291, allocations: 323.3 kB / 1.406 GB, free: 62.54 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005109/3.292, allocations: 167.4 kB / 1.406 GB, free: 62.46 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006173/3.298, allocations: 2.722 MB / 1.409 GB, free: 62.29 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.222e-05/3.298, allocations: 28.34 kB / 1.409 GB, free: 62.29 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/3.298, allocations: 3.094 kB / 1.409 GB, free: 62.29 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.928e-05/3.298, allocations: 16.56 kB / 1.409 GB, free: 62.29 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008801/3.307, allocations: 4.782 MB / 1.414 GB, free: 61.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/3.307, allocations: 3.969 kB / 1.414 GB, free: 61.41 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/3.309, allocations: 409.9 kB / 1.414 GB, free: 61.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008122/3.309, allocations: 246.2 kB / 1.414 GB, free: 61.36 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001974/3.31, allocations: 70.11 kB / 1.414 GB, free: 61.36 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005501/3.315, allocations: 8.503 MB / 1.423 GB, free: 53.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/3.315, allocations: 9.781 kB / 1.423 GB, free: 53.82 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007695/3.323, allocations: 4.044 MB / 1.427 GB, free: 53.04 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007022/3.324, allocations: 257.5 kB / 1.427 GB, free: 52.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002146/3.324, allocations: 55.28 kB / 1.427 GB, free: 52.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/3.325, allocations: 159.1 kB / 1.427 GB, free: 52.86 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000496/3.326, allocations: 218.5 kB / 1.427 GB, free: 52.86 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/3.326, allocations: 70.44 kB / 1.427 GB, free: 52.86 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0008024/3.327, allocations: 0.6239 MB / 1.428 GB, free: 52.75 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.4e-07/3.327, allocations: 0 / 1.428 GB, free: 52.75 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003098/3.33, allocations: 0.901 MB / 1.429 GB, free: 52.73 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 12 (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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(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.00235/3.332, allocations: 1.415 MB / 1.43 GB, free: 52.37 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00523/3.337, allocations: 3.294 MB / 1.433 GB, free: 51.09 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/3.337, allocations: 0 / 1.433 GB, free: 51.09 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003856/3.341, allocations: 2.19 MB / 1.435 GB, free: 50.21 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003422/3.345, allocations: 0.4946 MB / 1.436 GB, free: 50.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006743/3.351, allocations: 4.391 MB / 1.44 GB, free: 48.43 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007962/3.352, allocations: 1.314 MB / 1.442 GB, free: 47.71 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001447/3.354, allocations: 263.5 kB / 1.442 GB, free: 47.68 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003923/3.354, allocations: 159 kB / 1.442 GB, free: 47.68 MB / 0.5886 GB Notification: Performance of SimCode: time 1.072e-06/3.354, allocations: 2.156 kB / 1.442 GB, free: 47.68 MB / 0.5886 GB Notification: Performance of Templates: time 0.07004/3.424, allocations: 40.76 MB / 1.482 GB, free: 45.15 MB / 0.5886 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