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.001616/0.001616, allocations: 180.9 kB / 7.65 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.766/1.766, 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.0008908/0.0008908, allocations: 91.28 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.9015/0.9015, allocations: 90.37 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.843e-05/1.836e-05, allocations: 4 kB / 472.3 MB, free: 3.363 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4/0.4, allocations: 66.25 MB / 0.5259 GB, free: 28.96 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.266/1.666, allocations: 438.5 MB / 0.9541 GB, free: 216.9 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/1.666, allocations: 79.95 kB / 0.9542 GB, free: 216.8 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.157/2.823, allocations: 407.5 MB / 1.352 GB, free: 45.28 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.202e-06/2.823, allocations: 0 / 1.352 GB, free: 45.28 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001075/2.824, allocations: 54.64 kB / 1.352 GB, free: 45.23 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.005299/2.829, allocations: 2.48 MB / 1.355 GB, free: 42.66 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/2.829, allocations: 8.031 kB / 1.355 GB, free: 42.66 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004385/2.829, allocations: 209.6 kB / 1.355 GB, free: 42.45 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/2.831, allocations: 0.8658 MB / 1.356 GB, free: 41.55 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/2.831, allocations: 53.2 kB / 1.356 GB, free: 41.5 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001778/2.831, allocations: 99.89 kB / 1.356 GB, free: 41.41 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001754/2.833, allocations: 1.279 MB / 1.357 GB, free: 40.12 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/2.834, allocations: 1.354 MB / 1.358 GB, free: 38.71 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/2.834, allocations: 3.938 kB / 1.358 GB, free: 38.7 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001047/2.835, allocations: 11.98 kB / 1.358 GB, free: 38.69 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/2.835, allocations: 32 kB / 1.358 GB, free: 38.66 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006699/2.841, allocations: 6.524 MB / 1.365 GB, free: 31.66 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002467/2.844, allocations: 1.813 MB / 1.367 GB, free: 29.8 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008382/2.845, allocations: 0.7915 MB / 1.367 GB, free: 28.99 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005591/2.845, allocations: 0.5865 MB / 1.368 GB, free: 28.3 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/2.846, allocations: 0.9748 MB / 1.369 GB, free: 27.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 4.448e-06/2.846, allocations: 0 / 1.369 GB, free: 27.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.003494/2.85, allocations: 1.715 MB / 1.371 GB, free: 25.56 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/2.85, allocations: 215.9 kB / 1.371 GB, free: 25.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007532/2.851, allocations: 0.6937 MB / 1.371 GB, free: 24.6 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001182/2.851, allocations: 33.69 kB / 1.371 GB, free: 24.56 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003558/2.851, allocations: 0.6036 MB / 1.372 GB, free: 23.95 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003585/2.852, allocations: 0.6149 MB / 1.373 GB, free: 23.32 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.355e-05/2.852, allocations: 0 / 1.373 GB, free: 23.32 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.147e-05/2.852, allocations: 373.9 kB / 1.373 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007332/2.853, allocations: 0.5741 MB / 1.374 GB, free: 22.38 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008104/2.853, allocations: 0.7607 MB / 1.374 GB, free: 21.57 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/2.855, allocations: 0.613 MB / 1.375 GB, free: 20.95 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/2.855, allocations: 0 / 1.375 GB, free: 20.95 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003452/2.858, allocations: 1.864 MB / 1.377 GB, free: 19.06 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 7.978e-05/2.859, allocations: 186.1 kB / 1.377 GB, free: 18.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/2.859, allocations: 4 kB / 1.377 GB, free: 18.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006722/2.859, allocations: 228.9 kB / 1.377 GB, free: 18.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/2.861, allocations: 399.4 kB / 1.377 GB, free: 18.21 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004284/2.865, allocations: 8.167 MB / 1.385 GB, free: 9.352 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/2.867, allocations: 198.6 kB / 1.386 GB, free: 9.156 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001916/2.867, allocations: 75.95 kB / 1.386 GB, free: 9.082 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.0003715/2.868, allocations: 142.9 kB / 1.386 GB, free: 8.938 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003611/2.871, allocations: 1.72 MB / 1.388 GB, free: 7.191 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003304/2.871, allocations: 158.1 kB / 1.388 GB, free: 7.035 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/2.876, allocations: 2.171 MB / 1.39 GB, free: 4.832 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/2.876, allocations: 31.88 kB / 1.39 GB, free: 4.801 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/2.876, allocations: 4 kB / 1.39 GB, free: 4.797 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.229e-05/2.876, allocations: 15.95 kB / 1.39 GB, free: 4.781 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006389/2.882, allocations: 4.079 MB / 1.394 GB, free: 0.668 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.016e-06/2.882, allocations: 0 / 1.394 GB, free: 0.668 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/2.884, allocations: 415.7 kB / 1.394 GB, free: 268 kB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006154/2.884, allocations: 232.8 kB / 1.394 GB, free: 16 kB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.3749/3.259, allocations: 42.61 kB / 1.395 GB, free: 76.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004718/3.264, allocations: 8.161 MB / 1.402 GB, free: 69.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/3.264, allocations: 6.812 kB / 1.402 GB, free: 69.57 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005962/3.27, allocations: 3.423 MB / 1.406 GB, free: 68.71 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000623/3.271, allocations: 258.5 kB / 1.406 GB, free: 68.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/3.271, allocations: 17.48 kB / 1.406 GB, free: 68.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/3.272, allocations: 129.3 kB / 1.406 GB, free: 68.57 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004519/3.273, allocations: 215.4 kB / 1.406 GB, free: 68.57 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001649/3.273, allocations: 74.89 kB / 1.406 GB, free: 68.57 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007328/3.274, allocations: 0.5098 MB / 1.407 GB, free: 68.46 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.51e-07/3.274, allocations: 1.625 kB / 1.407 GB, free: 68.46 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003317/3.277, allocations: 0.8486 MB / 1.408 GB, free: 68.43 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.008462/3.286, allocations: 6.035 MB / 1.414 GB, free: 65.95 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0039/3.29, allocations: 2.763 MB / 1.416 GB, free: 64.76 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/3.29, allocations: 2.969 kB / 1.416 GB, free: 64.76 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002559/3.292, allocations: 1.902 MB / 1.418 GB, free: 63.94 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002738/3.295, allocations: 431 kB / 1.419 GB, free: 63.93 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007564/3.303, allocations: 3.318 MB / 1.422 GB, free: 63.14 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008014/3.303, allocations: 1.35 MB / 1.423 GB, free: 62.41 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001232/3.305, allocations: 265 kB / 1.423 GB, free: 62.38 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008757/3.305, allocations: 0.7036 MB / 1.424 GB, free: 62.38 MB / 0.5886 GB Notification: Performance of SimCode: time 1.413e-06/3.305, allocations: 0 / 1.424 GB, free: 62.38 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09251/3.398, allocations: 50.38 MB / 1.473 GB, free: 59.81 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/3.398, allocations: 147.5 kB / 1.474 GB, free: 59.62 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.102/7.5, allocations: 0 / 1.474 GB, free: 59.62 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