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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001562/0.001561, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.858/1.858, allocations: 205.2 MB / 218.5 MB, free: 9.211 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.0008129/0.000813, allocations: 92.48 kB / 266.6 MB, free: 9.266 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.9074/0.9074, allocations: 90.34 MB / 405 MB, free: 8.621 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.375e-05/3.386e-05, allocations: 4 kB / 479.3 MB, free: 14.22 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.435/0.4351, allocations: 66.26 MB / 0.5327 GB, free: 28.56 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.248/1.683, allocations: 439.1 MB / 0.9616 GB, free: 157.6 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/1.683, allocations: 77.23 kB / 0.9617 GB, free: 157.6 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.246/2.929, allocations: 409.5 MB / 1.362 GB, free: 14.71 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.563e-06/2.929, allocations: 0 / 1.362 GB, free: 14.71 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001946/2.929, allocations: 51.86 kB / 1.362 GB, free: 14.66 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.007196/2.936, allocations: 2.473 MB / 1.364 GB, free: 12.09 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/2.936, allocations: 15.97 kB / 1.364 GB, free: 12.07 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005947/2.937, allocations: 203 kB / 1.364 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009302/2.938, allocations: 205.6 kB / 1.364 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/2.94, allocations: 0.8759 MB / 1.365 GB, free: 10.73 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.607e-05/2.94, allocations: 110.8 kB / 1.365 GB, free: 10.62 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003507/2.94, allocations: 163.8 kB / 1.366 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/2.943, allocations: 1.543 MB / 1.367 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.844e-05/2.943, allocations: 0 / 1.367 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/2.943, allocations: 56 kB / 1.367 GB, free: 8.797 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.958e-05/2.943, allocations: 43.98 kB / 1.367 GB, free: 8.754 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/2.945, allocations: 1.376 MB / 1.368 GB, free: 7.383 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00788/2.953, allocations: 6.768 MB / 1.375 GB, free: 68 kB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4374/3.39, allocations: 1.86 MB / 1.377 GB, free: 71.1 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/3.392, allocations: 0.8424 MB / 1.378 GB, free: 71.05 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006944/3.392, allocations: 0.5963 MB / 1.378 GB, free: 70.48 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001843/3.394, allocations: 1.028 MB / 1.379 GB, free: 70.36 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 5.21e-06/3.394, allocations: 2.125 kB / 1.379 GB, free: 70.36 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.004107/3.398, allocations: 1.846 MB / 1.381 GB, free: 70.24 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/3.398, allocations: 211.2 kB / 1.381 GB, free: 70.02 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/3.4, allocations: 0.8117 MB / 1.382 GB, free: 69.88 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001779/3.4, allocations: 62.61 kB / 1.382 GB, free: 69.84 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/3.401, allocations: 0.6127 MB / 1.383 GB, free: 69.68 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005136/3.401, allocations: 0.6226 MB / 1.383 GB, free: 69.36 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.872e-05/3.401, allocations: 37.69 kB / 1.383 GB, free: 69.36 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001321/3.401, allocations: 377.6 kB / 1.384 GB, free: 69.05 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/3.403, allocations: 0.6105 MB / 1.384 GB, free: 69.05 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/3.404, allocations: 0.7991 MB / 1.385 GB, free: 68.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/3.405, allocations: 0.84 MB / 1.386 GB, free: 68.69 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/3.405, allocations: 2.188 kB / 1.386 GB, free: 68.69 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.00411/3.409, allocations: 2.203 MB / 1.388 GB, free: 68.29 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/3.409, allocations: 176.6 kB / 1.388 GB, free: 68.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/3.41, allocations: 7.422 kB / 1.388 GB, free: 68.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008323/3.41, allocations: 235.4 kB / 1.389 GB, free: 68.05 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/3.412, allocations: 404.9 kB / 1.389 GB, free: 68.05 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00594/3.418, allocations: 8.475 MB / 1.397 GB, free: 60.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002972/3.421, allocations: 240.9 kB / 1.397 GB, free: 60.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/3.421, allocations: 73.69 kB / 1.398 GB, free: 60.48 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.0005286/3.422, allocations: 222 kB / 1.398 GB, free: 60.37 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006271/3.422, allocations: 165.3 kB / 1.398 GB, free: 60.29 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005837/3.428, allocations: 2.365 MB / 1.4 GB, free: 60.1 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.165e-05/3.428, allocations: 21.31 kB / 1.4 GB, free: 60.1 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/3.428, allocations: 8.281 kB / 1.4 GB, free: 60.1 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.019e-05/3.428, allocations: 16.78 kB / 1.4 GB, free: 60.1 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008146/3.437, allocations: 4.427 MB / 1.405 GB, free: 59.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/3.437, allocations: 3.875 kB / 1.405 GB, free: 59.23 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001731/3.438, allocations: 400 kB / 1.405 GB, free: 59.23 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008276/3.439, allocations: 244.1 kB / 1.405 GB, free: 59.19 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/3.439, allocations: 62.98 kB / 1.405 GB, free: 59.19 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006066/3.445, allocations: 8.494 MB / 1.414 GB, free: 51.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/3.446, allocations: 5.844 kB / 1.414 GB, free: 51.64 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006597/3.452, allocations: 3.625 MB / 1.417 GB, free: 50.68 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007159/3.453, allocations: 261.1 kB / 1.417 GB, free: 50.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002636/3.453, allocations: 49.55 kB / 1.417 GB, free: 50.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/3.455, allocations: 160.3 kB / 1.418 GB, free: 50.49 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006554/3.456, allocations: 216.1 kB / 1.418 GB, free: 50.49 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/3.456, allocations: 77 kB / 1.418 GB, free: 50.49 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0009619/3.457, allocations: 0.6245 MB / 1.418 GB, free: 50.37 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.7e-07/3.457, allocations: 0 / 1.418 GB, free: 50.37 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003618/3.46, allocations: 0.9031 MB / 1.419 GB, free: 50.35 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.007763/3.468, allocations: 6.216 MB / 1.425 GB, free: 47.85 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003809/3.472, allocations: 2.909 MB / 1.428 GB, free: 46.58 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/3.472, allocations: 3.875 kB / 1.428 GB, free: 46.58 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002633/3.475, allocations: 1.994 MB / 1.43 GB, free: 45.71 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/3.478, allocations: 482.8 kB / 1.431 GB, free: 45.68 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006948/3.485, allocations: 3.486 MB / 1.434 GB, free: 44.86 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000825/3.485, allocations: 1.353 MB / 1.435 GB, free: 44.14 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.00125/3.487, allocations: 267 kB / 1.436 GB, free: 44.11 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008717/3.487, allocations: 0.7173 MB / 1.436 GB, free: 44.11 MB / 0.5886 GB Notification: Performance of SimCode: time 1.042e-06/3.488, allocations: 0 / 1.436 GB, free: 44.11 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1261/3.614, allocations: 59.82 MB / 1.495 GB, free: 41.05 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/3.614, allocations: 177.3 kB / 1.495 GB, free: 40.82 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.715/8.329, allocations: 0 / 1.495 GB, free: 40.82 MB / 0.5886 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.MCV_res.mat does not exist to compare? outputFormat=mat