Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_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-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-OM_adaptions/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_OM_adaptions_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_OM_adaptions_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.0009203/0.0009202, allocations: 173.3 kB / 16.12 MB, free: 5.668 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.436/1.436, allocations: 205.4 MB / 222.3 MB, free: 9.031 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.0007704/0.0007704, allocations: 91.61 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-OM_adaptions/package.mo): time 0.7398/0.7398, allocations: 89.62 MB / 408.5 MB, free: 4.465 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.000405/0.0004049, allocations: 16.2 kB / 485.2 MB, free: 7.609 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3268, allocations: 66 MB / 0.5383 GB, free: 34.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9561/1.283, allocations: 439.1 MB / 0.9671 GB, free: 187.9 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/1.283, allocations: 84.84 kB / 0.9672 GB, free: 187.8 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.992/2.275, allocations: 407.1 MB / 1.365 GB, free: 14.65 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.954e-06/2.275, allocations: 0 / 1.365 GB, free: 14.65 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001335/2.276, allocations: 47.98 kB / 1.365 GB, free: 14.61 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.005956/2.281, allocations: 2.644 MB / 1.367 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/2.282, allocations: 8.031 kB / 1.367 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006323/2.282, allocations: 216.7 kB / 1.368 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/2.284, allocations: 0.9124 MB / 1.368 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.342e-05/2.284, allocations: 106.8 kB / 1.369 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002687/2.284, allocations: 155.8 kB / 1.369 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002791/2.287, allocations: 1.753 MB / 1.37 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/2.287, allocations: 0 / 1.37 GB, free: 8.594 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/2.287, allocations: 59.98 kB / 1.371 GB, free: 8.535 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/2.287, allocations: 40 kB / 1.371 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/2.29, allocations: 1.75 MB / 1.372 GB, free: 6.746 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3155/2.605, allocations: 6.747 MB / 1.379 GB, free: 73.21 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004472/2.61, allocations: 2.234 MB / 1.381 GB, free: 73.07 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001874/2.612, allocations: 1.032 MB / 1.382 GB, free: 73.01 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005511/2.612, allocations: 0.5853 MB / 1.383 GB, free: 72.45 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001994/2.614, allocations: 1.227 MB / 1.384 GB, free: 72.33 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 4.338e-06/2.614, allocations: 0 / 1.384 GB, free: 72.33 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.007492/2.622, allocations: 3.664 MB / 1.387 GB, free: 71.64 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.702e-05/2.622, allocations: 209.2 kB / 1.388 GB, free: 71.42 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/2.623, allocations: 0.9423 MB / 1.389 GB, free: 71.27 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001255/2.623, allocations: 67.86 kB / 1.389 GB, free: 71.24 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/2.624, allocations: 0.5963 MB / 1.389 GB, free: 71.12 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004296/2.624, allocations: 0.6286 MB / 1.39 GB, free: 70.79 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/2.624, allocations: 34.5 kB / 1.39 GB, free: 70.79 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.89e-05/2.624, allocations: 378.9 kB / 1.39 GB, free: 70.49 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/2.626, allocations: 0.7932 MB / 1.391 GB, free: 70.48 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/2.628, allocations: 1 MB / 1.392 GB, free: 70.34 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002932/2.63, allocations: 1.985 MB / 1.394 GB, free: 70 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/2.631, allocations: 0 / 1.394 GB, free: 70 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.004937/2.635, allocations: 2.579 MB / 1.396 GB, free: 69.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.94e-05/2.636, allocations: 175.7 kB / 1.397 GB, free: 69.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/2.636, allocations: 4.531 kB / 1.397 GB, free: 69.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006446/2.636, allocations: 237.9 kB / 1.397 GB, free: 69.36 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/2.638, allocations: 404.8 kB / 1.397 GB, free: 69.36 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004659/2.642, allocations: 8.502 MB / 1.405 GB, free: 61.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/2.644, allocations: 250.2 kB / 1.406 GB, free: 61.77 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/2.644, allocations: 75.25 kB / 1.406 GB, free: 61.77 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.0007015/2.645, allocations: 319.8 kB / 1.406 GB, free: 61.66 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003302/2.645, allocations: 168.1 kB / 1.406 GB, free: 61.57 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005456/2.651, allocations: 2.717 MB / 1.409 GB, free: 61.4 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/2.651, allocations: 21.38 kB / 1.409 GB, free: 61.4 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.817e-05/2.651, allocations: 7.469 kB / 1.409 GB, free: 61.4 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/2.651, allocations: 18.2 kB / 1.409 GB, free: 61.4 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007657/2.658, allocations: 4.782 MB / 1.414 GB, free: 60.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/2.658, allocations: 11.94 kB / 1.414 GB, free: 60.53 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/2.66, allocations: 409.1 kB / 1.414 GB, free: 60.53 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007128/2.661, allocations: 243.4 kB / 1.414 GB, free: 60.48 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/2.661, allocations: 65.77 kB / 1.414 GB, free: 60.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004834/2.666, allocations: 8.51 MB / 1.423 GB, free: 52.93 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/2.666, allocations: 4.906 kB / 1.423 GB, free: 52.93 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006598/2.672, allocations: 4.043 MB / 1.427 GB, free: 52.16 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004974/2.673, allocations: 256.8 kB / 1.427 GB, free: 51.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003259/2.673, allocations: 51.11 kB / 1.427 GB, free: 51.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/2.675, allocations: 155.2 kB / 1.427 GB, free: 51.98 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004487/2.675, allocations: 218.1 kB / 1.427 GB, free: 51.97 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/2.675, allocations: 78.91 kB / 1.427 GB, free: 51.97 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0008122/2.676, allocations: 0.6243 MB / 1.428 GB, free: 51.86 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.5e-07/2.676, allocations: 0 / 1.428 GB, free: 51.86 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003059/2.679, allocations: 0.9037 MB / 1.429 GB, free: 51.84 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.00264/2.682, allocations: 1.402 MB / 1.43 GB, free: 51.49 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004927/2.687, allocations: 3.302 MB / 1.433 GB, free: 50.21 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/2.687, allocations: 0 / 1.433 GB, free: 50.21 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003317/2.69, allocations: 2.189 MB / 1.436 GB, free: 49.34 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00372/2.694, allocations: 0.5027 MB / 1.436 GB, free: 49.31 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006868/2.701, allocations: 4.392 MB / 1.44 GB, free: 47.55 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009354/2.702, allocations: 1.312 MB / 1.442 GB, free: 46.82 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001387/2.703, allocations: 264.1 kB / 1.442 GB, free: 46.79 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005173/2.704, allocations: 157.4 kB / 1.442 GB, free: 46.79 MB / 0.5886 GB Notification: Performance of SimCode: time 1.202e-06/2.704, allocations: 0 / 1.442 GB, free: 46.79 MB / 0.5886 GB Notification: Performance of Templates: time 0.05814/2.762, allocations: 40.77 MB / 1.482 GB, free: 44.3 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.MCV_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches