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.001029/0.00103, 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 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 205.3 MB / 213.4 MB, free: 13.77 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.0008964/0.0008965, allocations: 86.02 kB / 261.4 MB, free: 13.45 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.8066/0.8066, allocations: 90.36 MB / 399.7 MB, free: 12.11 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 1.33e-05/1.331e-05, allocations: 0 / 472.2 MB, free: 3.461 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3934, allocations: 66.27 MB / 0.5258 GB, free: 29.09 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.169/1.562, allocations: 438.5 MB / 0.9541 GB, free: 217.1 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001967/1.563, allocations: 75.75 kB / 0.9541 GB, free: 217.1 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.133/2.695, allocations: 407.5 MB / 1.352 GB, free: 45.51 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.052e-06/2.695, allocations: 0 / 1.352 GB, free: 45.51 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001096/2.695, allocations: 43.36 kB / 1.352 GB, free: 45.47 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.005899/2.701, allocations: 2.474 MB / 1.354 GB, free: 42.91 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/2.701, allocations: 8.031 kB / 1.355 GB, free: 42.9 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004443/2.702, allocations: 213.5 kB / 1.355 GB, free: 42.69 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/2.703, allocations: 0.8687 MB / 1.356 GB, free: 41.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.231e-05/2.703, allocations: 53.17 kB / 1.356 GB, free: 41.75 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/2.703, allocations: 99.91 kB / 1.356 GB, free: 41.65 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001736/2.705, allocations: 1.286 MB / 1.357 GB, free: 40.36 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/2.707, allocations: 1.358 MB / 1.358 GB, free: 38.94 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.073e-05/2.707, allocations: 0 / 1.358 GB, free: 38.94 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/2.707, allocations: 4 kB / 1.358 GB, free: 38.93 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/2.707, allocations: 36 kB / 1.358 GB, free: 38.9 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006465/2.714, allocations: 6.52 MB / 1.365 GB, free: 31.9 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/2.716, allocations: 1.809 MB / 1.366 GB, free: 30.04 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008318/2.717, allocations: 0.7876 MB / 1.367 GB, free: 29.23 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005696/2.718, allocations: 0.589 MB / 1.368 GB, free: 28.55 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/2.719, allocations: 0.9779 MB / 1.369 GB, free: 27.54 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 5.109e-06/2.719, allocations: 0 / 1.369 GB, free: 27.54 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.0035/2.722, allocations: 1.719 MB / 1.37 GB, free: 25.8 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.636e-05/2.722, allocations: 211.9 kB / 1.371 GB, free: 25.55 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007613/2.723, allocations: 0.6898 MB / 1.371 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001086/2.723, allocations: 37.7 kB / 1.371 GB, free: 24.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003315/2.724, allocations: 0.6036 MB / 1.372 GB, free: 24.19 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003521/2.724, allocations: 0.6155 MB / 1.373 GB, free: 23.57 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.955e-05/2.724, allocations: 4 kB / 1.373 GB, free: 23.56 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.698e-05/2.724, allocations: 373.8 kB / 1.373 GB, free: 23.19 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007457/2.725, allocations: 0.5741 MB / 1.373 GB, free: 22.62 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008144/2.726, allocations: 0.7569 MB / 1.374 GB, free: 21.8 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/2.727, allocations: 0.609 MB / 1.375 GB, free: 21.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/2.727, allocations: 3.938 kB / 1.375 GB, free: 21.19 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003581/2.731, allocations: 1.867 MB / 1.377 GB, free: 19.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.592e-05/2.731, allocations: 182.5 kB / 1.377 GB, free: 19.08 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/2.731, allocations: 4 kB / 1.377 GB, free: 19.08 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006678/2.732, allocations: 229 kB / 1.377 GB, free: 18.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/2.733, allocations: 403.4 kB / 1.377 GB, free: 18.44 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004232/2.738, allocations: 8.157 MB / 1.385 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/2.739, allocations: 210.5 kB / 1.386 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/2.739, allocations: 67.97 kB / 1.386 GB, free: 9.32 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.0003046/2.74, allocations: 150.9 kB / 1.386 GB, free: 9.168 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003549/2.74, allocations: 158.1 kB / 1.386 GB, free: 9.012 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004259/2.744, allocations: 2.173 MB / 1.388 GB, free: 6.812 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/2.744, allocations: 24 kB / 1.388 GB, free: 6.789 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/2.744, allocations: 7.938 kB / 1.388 GB, free: 6.781 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.183e-05/2.745, allocations: 11.97 kB / 1.388 GB, free: 6.77 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006133/2.751, allocations: 4.077 MB / 1.392 GB, free: 2.656 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/2.751, allocations: 4 kB / 1.392 GB, free: 2.652 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/2.752, allocations: 411.5 kB / 1.392 GB, free: 2.25 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006066/2.753, allocations: 236.9 kB / 1.393 GB, free: 2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001269/2.753, allocations: 43.95 kB / 1.393 GB, free: 1.957 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3761/3.129, allocations: 8.156 MB / 1.401 GB, free: 70.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/3.129, allocations: 4.188 kB / 1.401 GB, free: 70.82 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006/3.135, allocations: 3.43 MB / 1.404 GB, free: 69.96 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005212/3.136, allocations: 256.8 kB / 1.404 GB, free: 69.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/3.136, allocations: 13.34 kB / 1.404 GB, free: 69.85 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/3.137, allocations: 132.1 kB / 1.404 GB, free: 69.84 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004131/3.138, allocations: 218 kB / 1.405 GB, free: 69.84 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/3.138, allocations: 72.31 kB / 1.405 GB, free: 69.84 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007322/3.139, allocations: 0.5196 MB / 1.405 GB, free: 69.73 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.51e-07/3.139, allocations: 0 / 1.405 GB, free: 69.73 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003163/3.142, allocations: 0.8404 MB / 1.406 GB, free: 69.7 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.002439/3.144, allocations: 1.401 MB / 1.407 GB, free: 69.35 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.004081/3.148, allocations: 2.766 MB / 1.41 GB, free: 68.15 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/3.148, allocations: 3.562 kB / 1.41 GB, free: 68.15 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002829/3.151, allocations: 1.91 MB / 1.412 GB, free: 67.33 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002716/3.154, allocations: 439.4 kB / 1.412 GB, free: 67.32 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005177/3.159, allocations: 2.915 MB / 1.415 GB, free: 66.57 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007793/3.16, allocations: 1.351 MB / 1.417 GB, free: 65.85 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001191/3.161, allocations: 265.1 kB / 1.417 GB, free: 65.82 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003991/3.162, allocations: 152.4 kB / 1.417 GB, free: 65.82 MB / 0.5886 GB Notification: Performance of SimCode: time 1.102e-06/3.162, allocations: 3.438 kB / 1.417 GB, free: 65.82 MB / 0.5886 GB Notification: Performance of Templates: time 0.05705/3.219, allocations: 34.96 MB / 1.451 GB, free: 63.74 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