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.007817/0.007817, allocations: 170.8 kB / 15.11 MB, free: 5.973 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.898/1.898, allocations: 205.4 MB / 221.3 MB, free: 13.83 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.0009695/0.0009695, allocations: 90.89 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 1.002/1.002, allocations: 90.59 MB / 408.4 MB, free: 14.98 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.000342/0.000342, allocations: 11.98 kB / 485.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5071/0.5074, allocations: 66.27 MB / 0.5386 GB, free: 45.61 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8551/1.363, allocations: 439.2 MB / 0.9675 GB, free: 5.68 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003516/1.363, allocations: 82.83 kB / 0.9676 GB, free: 5.637 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.674/3.037, allocations: 411 MB / 1.369 GB, free: 76.66 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.236e-06/3.037, allocations: 4 kB / 1.369 GB, free: 76.65 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001268/3.037, allocations: 43.98 kB / 1.369 GB, free: 76.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.007664/3.045, allocations: 2.681 MB / 1.372 GB, free: 73.86 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/3.045, allocations: 8.031 kB / 1.372 GB, free: 73.85 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006406/3.046, allocations: 211.9 kB / 1.372 GB, free: 73.64 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/3.047, allocations: 0.8794 MB / 1.373 GB, free: 72.71 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.469e-05/3.047, allocations: 112.1 kB / 1.373 GB, free: 72.6 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002188/3.048, allocations: 151.9 kB / 1.373 GB, free: 72.45 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003231/3.051, allocations: 1.732 MB / 1.375 GB, free: 70.67 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/3.051, allocations: 7.938 kB / 1.375 GB, free: 70.66 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/3.051, allocations: 59.95 kB / 1.375 GB, free: 70.6 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.49e-05/3.051, allocations: 43.98 kB / 1.375 GB, free: 70.56 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003468/3.054, allocations: 1.754 MB / 1.376 GB, free: 68.82 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009136/3.064, allocations: 6.772 MB / 1.383 GB, free: 61.56 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004535/3.068, allocations: 2.235 MB / 1.385 GB, free: 59.29 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007856/3.069, allocations: 0.5806 MB / 1.386 GB, free: 58.59 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00222/3.071, allocations: 1.231 MB / 1.387 GB, free: 57.33 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 4.989e-06/3.071, allocations: 4 kB / 1.387 GB, free: 57.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.007965/3.079, allocations: 4.11 MB / 1.391 GB, free: 52.97 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/3.079, allocations: 215.8 kB / 1.391 GB, free: 52.71 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/3.081, allocations: 0.8152 MB / 1.392 GB, free: 51.89 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001709/3.081, allocations: 69.69 kB / 1.392 GB, free: 51.82 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005062/3.081, allocations: 0.6083 MB / 1.393 GB, free: 51.2 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000512/3.082, allocations: 0.6314 MB / 1.393 GB, free: 50.56 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/3.082, allocations: 36 kB / 1.393 GB, free: 50.52 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001409/3.082, allocations: 373.9 kB / 1.394 GB, free: 50.15 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/3.084, allocations: 0.7964 MB / 1.395 GB, free: 49.36 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/3.085, allocations: 0.9899 MB / 1.395 GB, free: 48.32 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/3.087, allocations: 1.021 MB / 1.396 GB, free: 47.26 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/3.087, allocations: 4 kB / 1.396 GB, free: 47.26 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.005058/3.092, allocations: 2.591 MB / 1.399 GB, free: 44.61 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.171e-05/3.092, allocations: 174.2 kB / 1.399 GB, free: 44.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/3.092, allocations: 4 kB / 1.399 GB, free: 44.39 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000771/3.093, allocations: 237.1 kB / 1.399 GB, free: 44.14 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/3.095, allocations: 399.4 kB / 1.4 GB, free: 43.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005263/3.1, allocations: 8.581 MB / 1.408 GB, free: 34.39 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002861/3.103, allocations: 242.4 kB / 1.408 GB, free: 34.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003116/3.103, allocations: 75.95 kB / 1.408 GB, free: 34.08 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.001072/3.104, allocations: 323.5 kB / 1.409 GB, free: 33.75 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006787/3.105, allocations: 177.9 kB / 1.409 GB, free: 33.58 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005602/3.111, allocations: 2.724 MB / 1.412 GB, free: 30.82 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/3.111, allocations: 20 kB / 1.412 GB, free: 30.8 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/3.111, allocations: 4 kB / 1.412 GB, free: 30.8 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/3.111, allocations: 19.95 kB / 1.412 GB, free: 30.78 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008346/3.119, allocations: 4.795 MB / 1.416 GB, free: 25.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/3.119, allocations: 4 kB / 1.416 GB, free: 25.88 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/3.121, allocations: 411.7 kB / 1.417 GB, free: 25.48 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007544/3.121, allocations: 244.5 kB / 1.417 GB, free: 25.23 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001482/3.122, allocations: 67.95 kB / 1.417 GB, free: 25.16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005765/3.127, allocations: 8.577 MB / 1.425 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/3.127, allocations: 0 / 1.425 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007597/3.135, allocations: 4.198 MB / 1.429 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008504/3.136, allocations: 258.5 kB / 1.43 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/3.136, allocations: 47.98 kB / 1.43 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/3.138, allocations: 163.6 kB / 1.43 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000507/3.138, allocations: 219.4 kB / 1.43 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/3.138, allocations: 75.95 kB / 1.43 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0008364/3.139, allocations: 0.6357 MB / 1.431 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.01e-07/3.139, allocations: 0 / 1.431 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003433/3.143, allocations: 0.905 MB / 1.432 GB, free: 9.188 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.002549/3.145, allocations: 1.4 MB / 1.433 GB, free: 7.789 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005401/3.151, allocations: 3.299 MB / 1.436 GB, free: 4.305 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/3.151, allocations: 0 / 1.436 GB, free: 4.305 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003681/3.154, allocations: 2.187 MB / 1.438 GB, free: 2.004 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/3.158, allocations: 478 kB / 1.439 GB, free: 1.547 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4206/3.578, allocations: 4.389 MB / 1.443 GB, free: 79.23 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008391/3.579, allocations: 1.352 MB / 1.445 GB, free: 78.52 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001547/3.581, allocations: 266.9 kB / 1.445 GB, free: 78.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004387/3.581, allocations: 154.7 kB / 1.445 GB, free: 78.5 MB / 0.5886 GB Notification: Performance of SimCode: time 1.172e-06/3.581, allocations: 1.969 kB / 1.445 GB, free: 78.5 MB / 0.5886 GB Notification: Performance of Templates: time 0.08365/3.665, allocations: 40.21 MB / 1.484 GB, free: 76.79 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