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.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-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.00103/0.001031, allocations: 174 kB / 12.73 MB, free: 2.586 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.396/1.396, allocations: 205.2 MB / 218.5 MB, free: 9.223 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.0009286/0.0009287, allocations: 92.48 kB / 266.6 MB, free: 9.289 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7431/0.7431, allocations: 90.34 MB / 405 MB, free: 8.645 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 3.754e-05/3.756e-05, allocations: 8 kB / 479.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4114, allocations: 66.27 MB / 0.5326 GB, free: 28.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.138/1.549, allocations: 439.1 MB / 0.9615 GB, free: 205.2 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/1.549, allocations: 75.97 kB / 0.9616 GB, free: 205.1 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.192/2.742, allocations: 409.5 MB / 1.361 GB, free: 28.86 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.82e-07/2.742, allocations: 4 kB / 1.361 GB, free: 28.86 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0002072/2.742, allocations: 43.98 kB / 1.362 GB, free: 28.82 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.007685/2.749, allocations: 2.477 MB / 1.364 GB, free: 26.24 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/2.75, allocations: 8.031 kB / 1.364 GB, free: 26.23 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/2.751, allocations: 217.5 kB / 1.364 GB, free: 26.02 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002372/2.753, allocations: 0.867 MB / 1.365 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/2.753, allocations: 108 kB / 1.365 GB, free: 24.99 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004935/2.754, allocations: 151.9 kB / 1.365 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003206/2.757, allocations: 1.539 MB / 1.367 GB, free: 23.24 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/2.757, allocations: 7.891 kB / 1.367 GB, free: 23.23 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/2.757, allocations: 55.98 kB / 1.367 GB, free: 23.18 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.505e-05/2.757, allocations: 40 kB / 1.367 GB, free: 23.14 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/2.759, allocations: 1.372 MB / 1.368 GB, free: 21.77 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007542/2.767, allocations: 6.788 MB / 1.375 GB, free: 14.43 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002725/2.769, allocations: 1.864 MB / 1.377 GB, free: 12.52 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009471/2.77, allocations: 0.8528 MB / 1.377 GB, free: 11.65 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000624/2.771, allocations: 0.5806 MB / 1.378 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/2.772, allocations: 1.041 MB / 1.379 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 4.608e-06/2.772, allocations: 0 / 1.379 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.003099/2.775, allocations: 1.852 MB / 1.381 GB, free: 8.008 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.244e-05/2.776, allocations: 219.9 kB / 1.381 GB, free: 7.75 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008976/2.776, allocations: 0.8128 MB / 1.382 GB, free: 6.926 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001551/2.777, allocations: 61.7 kB / 1.382 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/2.777, allocations: 0.6082 MB / 1.383 GB, free: 6.242 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/2.777, allocations: 0.6237 MB / 1.383 GB, free: 5.609 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/2.777, allocations: 36 kB / 1.383 GB, free: 5.574 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.777e-05/2.778, allocations: 373.9 kB / 1.384 GB, free: 5.203 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008403/2.778, allocations: 0.6131 MB / 1.384 GB, free: 4.59 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009111/2.779, allocations: 0.7991 MB / 1.385 GB, free: 3.738 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009522/2.78, allocations: 0.8336 MB / 1.386 GB, free: 2.867 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/2.78, allocations: 11.98 kB / 1.386 GB, free: 2.855 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003203/2.783, allocations: 2.19 MB / 1.388 GB, free: 0.6016 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.823e-05/2.784, allocations: 174.2 kB / 1.388 GB, free: 404 kB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/2.784, allocations: 7.984 kB / 1.388 GB, free: 396 kB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006631/2.784, allocations: 237.2 kB / 1.388 GB, free: 140 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4061/3.19, allocations: 403.5 kB / 1.389 GB, free: 73.67 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/3.196, allocations: 8.48 MB / 1.397 GB, free: 66.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/3.198, allocations: 241.8 kB / 1.397 GB, free: 66.21 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/3.198, allocations: 75.73 kB / 1.397 GB, free: 66.21 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 () * 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.00035/3.198, allocations: 215.9 kB / 1.397 GB, free: 66.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003807/3.199, allocations: 165.8 kB / 1.398 GB, free: 66.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004237/3.203, allocations: 2.366 MB / 1.4 GB, free: 65.93 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/3.203, allocations: 24 kB / 1.4 GB, free: 65.93 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/3.203, allocations: 4.562 kB / 1.4 GB, free: 65.93 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.34e-05/3.203, allocations: 12.64 kB / 1.4 GB, free: 65.93 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007315/3.21, allocations: 4.422 MB / 1.404 GB, free: 65.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/3.211, allocations: 5.234 kB / 1.404 GB, free: 65.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/3.212, allocations: 405 kB / 1.405 GB, free: 65.09 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007749/3.213, allocations: 243.4 kB / 1.405 GB, free: 65.04 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/3.213, allocations: 64.95 kB / 1.405 GB, free: 65.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005214/3.218, allocations: 8.499 MB / 1.413 GB, free: 57.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.257e-06/3.218, allocations: 0.9688 kB / 1.413 GB, free: 57.5 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00582/3.224, allocations: 3.618 MB / 1.417 GB, free: 56.54 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007084/3.225, allocations: 264.4 kB / 1.417 GB, free: 56.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002303/3.225, allocations: 45.97 kB / 1.417 GB, free: 56.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/3.227, allocations: 157.7 kB / 1.417 GB, free: 56.35 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005116/3.227, allocations: 216.5 kB / 1.417 GB, free: 56.34 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001531/3.228, allocations: 76.59 kB / 1.417 GB, free: 56.34 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0009022/3.228, allocations: 0.6257 MB / 1.418 GB, free: 56.23 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.51e-07/3.228, allocations: 3.656 kB / 1.418 GB, free: 56.23 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003407/3.232, allocations: 0.903 MB / 1.419 GB, free: 56.21 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) * 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.002494/3.234, allocations: 1.409 MB / 1.42 GB, free: 55.84 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004285/3.239, allocations: 2.903 MB / 1.423 GB, free: 54.58 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/3.239, allocations: 2.219 kB / 1.423 GB, free: 54.58 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003039/3.242, allocations: 1.992 MB / 1.425 GB, free: 53.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003053/3.245, allocations: 479.1 kB / 1.426 GB, free: 53.68 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005747/3.251, allocations: 3.041 MB / 1.429 GB, free: 52.92 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008831/3.251, allocations: 1.347 MB / 1.43 GB, free: 52.2 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001443/3.253, allocations: 270.9 kB / 1.43 GB, free: 52.16 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004337/3.253, allocations: 157 kB / 1.43 GB, free: 52.16 MB / 0.5886 GB Notification: Performance of SimCode: time 1.853e-06/3.253, allocations: 0 / 1.43 GB, free: 52.16 MB / 0.5886 GB Notification: Performance of Templates: time 0.06531/3.319, allocations: 41.6 MB / 1.471 GB, free: 49.8 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