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.008377/0.008377, allocations: 172.6 kB / 15.12 MB, free: 5.977 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.937/1.937, allocations: 205.4 MB / 221.2 MB, free: 13.84 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.00109/0.00109, allocations: 90.84 kB / 269.6 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.9068/0.9068, allocations: 90.59 MB / 408.4 MB, free: 14.99 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.0004327/0.0004326, allocations: 11.98 kB / 485.3 MB, free: 1.988 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4404/0.4408, allocations: 66.27 MB / 0.5387 GB, free: 45.64 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8561/1.297, allocations: 439.2 MB / 0.9676 GB, free: 5.641 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/1.297, allocations: 82.61 kB / 0.9677 GB, free: 5.602 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.829/3.126, allocations: 411 MB / 1.369 GB, free: 76.59 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.904e-06/3.126, allocations: 0 / 1.369 GB, free: 76.59 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001973/3.127, allocations: 51.92 kB / 1.369 GB, free: 76.54 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.009106/3.136, allocations: 2.674 MB / 1.372 GB, free: 73.8 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/3.136, allocations: 8.031 kB / 1.372 GB, free: 73.79 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001092/3.137, allocations: 207 kB / 1.372 GB, free: 73.58 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001484/3.138, allocations: 210.1 kB / 1.372 GB, free: 73.37 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002742/3.141, allocations: 0.8808 MB / 1.373 GB, free: 72.44 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/3.141, allocations: 106.8 kB / 1.373 GB, free: 72.33 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005789/3.142, allocations: 155.9 kB / 1.373 GB, free: 72.18 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004197/3.146, allocations: 1.738 MB / 1.375 GB, free: 70.39 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/3.146, allocations: 15.83 kB / 1.375 GB, free: 70.38 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000175/3.146, allocations: 56 kB / 1.375 GB, free: 70.32 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.262e-05/3.146, allocations: 36 kB / 1.375 GB, free: 70.29 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003477/3.15, allocations: 1.758 MB / 1.377 GB, free: 68.54 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009146/3.159, allocations: 6.777 MB / 1.383 GB, free: 61.27 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004249/3.163, allocations: 2.229 MB / 1.386 GB, free: 59.01 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006367/3.164, allocations: 0.5806 MB / 1.386 GB, free: 58.32 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002199/3.166, allocations: 1.235 MB / 1.387 GB, free: 57.05 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 5.46e-06/3.166, allocations: 0 / 1.387 GB, free: 57.05 MB / 0.5886 GB Notification: Performance of matching and sorting (n=192): time 0.007982/3.174, allocations: 4.114 MB / 1.391 GB, free: 52.69 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/3.174, allocations: 207.9 kB / 1.392 GB, free: 52.44 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/3.176, allocations: 0.8192 MB / 1.392 GB, free: 51.61 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000193/3.176, allocations: 69.7 kB / 1.392 GB, free: 51.54 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/3.176, allocations: 0.6082 MB / 1.393 GB, free: 50.92 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004279/3.177, allocations: 0.6314 MB / 1.394 GB, free: 50.28 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/3.177, allocations: 36 kB / 1.394 GB, free: 50.25 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.815e-05/3.177, allocations: 373.9 kB / 1.394 GB, free: 49.88 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/3.178, allocations: 0.7964 MB / 1.395 GB, free: 49.08 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/3.18, allocations: 0.9937 MB / 1.396 GB, free: 48.04 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/3.182, allocations: 1.017 MB / 1.397 GB, free: 46.98 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/3.182, allocations: 4 kB / 1.397 GB, free: 46.98 MB / 0.5886 GB Notification: Performance of matching and sorting (n=229) (initialization): time 0.004806/3.186, allocations: 2.587 MB / 1.399 GB, free: 44.33 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.633e-05/3.187, allocations: 178.2 kB / 1.399 GB, free: 44.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/3.187, allocations: 4 kB / 1.399 GB, free: 44.11 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007368/3.187, allocations: 233.1 kB / 1.4 GB, free: 43.87 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/3.189, allocations: 399.5 kB / 1.4 GB, free: 43.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00487/3.194, allocations: 8.576 MB / 1.408 GB, free: 34.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/3.196, allocations: 250.3 kB / 1.409 GB, free: 33.88 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003083/3.196, allocations: 71.97 kB / 1.409 GB, free: 33.8 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.000812/3.197, allocations: 323.5 kB / 1.409 GB, free: 33.48 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004716/3.198, allocations: 177.9 kB / 1.409 GB, free: 33.3 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005256/3.203, allocations: 2.72 MB / 1.412 GB, free: 30.55 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.018e-05/3.203, allocations: 24 kB / 1.412 GB, free: 30.52 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/3.203, allocations: 4 kB / 1.412 GB, free: 30.52 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.407e-05/3.203, allocations: 19.95 kB / 1.412 GB, free: 30.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007949/3.211, allocations: 4.803 MB / 1.417 GB, free: 25.61 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/3.211, allocations: 4 kB / 1.417 GB, free: 25.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/3.213, allocations: 411.7 kB / 1.417 GB, free: 25.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007412/3.214, allocations: 236.9 kB / 1.417 GB, free: 24.95 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001939/3.214, allocations: 63.95 kB / 1.417 GB, free: 24.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004864/3.219, allocations: 8.588 MB / 1.426 GB, free: 15.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/3.219, allocations: 0 / 1.426 GB, free: 15.52 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007302/3.226, allocations: 4.194 MB / 1.43 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006394/3.227, allocations: 258.6 kB / 1.43 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/3.227, allocations: 47.98 kB / 1.43 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/3.228, allocations: 163 kB / 1.43 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004322/3.229, allocations: 219.4 kB / 1.43 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/3.229, allocations: 79.94 kB / 1.431 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0007658/3.23, allocations: 0.6357 MB / 1.431 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.7e-07/3.23, allocations: 0 / 1.431 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003237/3.233, allocations: 0.9088 MB / 1.432 GB, free: 8.902 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.009081/3.242, allocations: 6.777 MB / 1.439 GB, free: 2.035 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.3444/3.587, allocations: 3.293 MB / 1.442 GB, free: 81.25 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/3.587, allocations: 0 / 1.442 GB, free: 81.25 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003905/3.591, allocations: 2.192 MB / 1.444 GB, free: 80.39 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002742/3.593, allocations: 471.7 kB / 1.444 GB, free: 80.38 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02106/3.614, allocations: 13.86 MB / 1.458 GB, free: 74.42 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008417/3.615, allocations: 1.349 MB / 1.459 GB, free: 73.7 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001494/3.617, allocations: 276.3 kB / 1.46 GB, free: 73.68 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009304/3.618, allocations: 0.7159 MB / 1.46 GB, free: 73.68 MB / 0.5886 GB Notification: Performance of SimCode: time 1.523e-06/3.618, allocations: 0 / 1.46 GB, free: 73.68 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1138/3.732, allocations: 58.19 MB / 1.517 GB, free: 70.89 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/3.732, allocations: 202.8 kB / 1.517 GB, free: 70.66 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.909/8.641, allocations: 0 / 1.517 GB, free: 70.66 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