Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.MCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007915/0.007915, allocations: 171.1 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.2 MB / 239 MB, free: 48 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 92.61 kB / 290.2 MB, free: 4.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01213/0.01213, allocations: 1.554 MB / 342.9 MB, free: 11.37 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.8323/0.8323, allocations: 90.3 MB / 484.6 MB, free: 39.88 MB / 346.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.0005631/0.0005631, allocations: 16 kB / 0.5527 GB, free: 6.465 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4152/0.4158, allocations: 69.35 MB / 0.6204 GB, free: 20.77 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.317/1.733, allocations: 439.5 MB / 1.05 GB, free: 201.5 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003373/1.734, allocations: 89.67 kB / 1.05 GB, free: 201.4 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.997/3.731, allocations: 467.3 MB / 1.506 GB, free: 76.54 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.116e-06/3.731, allocations: 0 / 1.506 GB, free: 76.54 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0004091/3.731, allocations: 52.98 kB / 1.506 GB, free: 76.54 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 395 * Number of variables: 395 Notification: Performance of Generate backend data structure: time 0.01053/3.742, allocations: 2.878 MB / 1.509 GB, free: 75.42 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/3.742, allocations: 13.23 kB / 1.509 GB, free: 75.42 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009434/3.743, allocations: 218 kB / 1.509 GB, free: 75.37 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/3.744, allocations: 245.5 kB / 1.509 GB, free: 75.26 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002945/3.747, allocations: 0.9457 MB / 1.51 GB, free: 74.97 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/3.747, allocations: 118.7 kB / 1.51 GB, free: 74.96 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006158/3.748, allocations: 177.1 kB / 1.511 GB, free: 74.96 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004936/3.753, allocations: 1.894 MB / 1.512 GB, free: 74.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.399e-05/3.753, allocations: 4.656 kB / 1.512 GB, free: 74.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/3.753, allocations: 65.34 kB / 1.512 GB, free: 74.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.241e-05/3.753, allocations: 45.56 kB / 1.513 GB, free: 74.73 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004126/3.757, allocations: 1.88 MB / 1.514 GB, free: 74.72 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01313/3.771, allocations: 7.573 MB / 1.522 GB, free: 70.37 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005956/3.777, allocations: 2.476 MB / 1.524 GB, free: 70.19 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/3.778, allocations: 0.681 MB / 1.525 GB, free: 69.53 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003488/3.781, allocations: 1.302 MB / 1.526 GB, free: 69.4 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=211): time 1.069e-05/3.781, allocations: 0 / 1.526 GB, free: 69.4 MB / 0.6198 GB Notification: Performance of matching and sorting (n=211): time 0.01075/3.792, allocations: 4.521 MB / 1.531 GB, free: 67.84 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/3.792, allocations: 241.3 kB / 1.531 GB, free: 67.59 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/3.794, allocations: 0.9078 MB / 1.532 GB, free: 67.44 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0004013/3.794, allocations: 68.95 kB / 1.532 GB, free: 67.41 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006575/3.795, allocations: 0.6619 MB / 1.532 GB, free: 67.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000856/3.796, allocations: 0.6869 MB / 1.533 GB, free: 66.73 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/3.796, allocations: 35.31 kB / 1.533 GB, free: 66.73 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001732/3.796, allocations: 380.9 kB / 1.533 GB, free: 66.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/3.799, allocations: 0.8558 MB / 1.534 GB, free: 66.43 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002217/3.801, allocations: 1.073 MB / 1.535 GB, free: 66.25 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002283/3.803, allocations: 1.085 MB / 1.536 GB, free: 66.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/3.803, allocations: 2.953 kB / 1.536 GB, free: 66.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006475/3.81, allocations: 2.779 MB / 1.539 GB, free: 65.62 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.000109/3.81, allocations: 178.1 kB / 1.539 GB, free: 65.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/3.81, allocations: 5.312 kB / 1.539 GB, free: 65.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009758/3.811, allocations: 262.9 kB / 1.539 GB, free: 65.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/3.813, allocations: 440.9 kB / 1.54 GB, free: 65.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006809/3.82, allocations: 9.923 MB / 1.55 GB, free: 56.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002881/3.822, allocations: 255.8 kB / 1.55 GB, free: 56.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006691/3.823, allocations: 84.56 kB / 1.55 GB, free: 56.5 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (219): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00163/3.825, allocations: 344.2 kB / 1.55 GB, free: 56.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/3.826, allocations: 188.7 kB / 1.55 GB, free: 56.28 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00728/3.833, allocations: 2.95 MB / 1.553 GB, free: 56.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.727e-05/3.833, allocations: 23.22 kB / 1.553 GB, free: 56.05 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-05/3.833, allocations: 7.906 kB / 1.553 GB, free: 56.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-05/3.833, allocations: 11.48 kB / 1.553 GB, free: 56.05 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/3.844, allocations: 5.269 MB / 1.559 GB, free: 55.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/3.844, allocations: 3.188 kB / 1.559 GB, free: 55.03 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/3.846, allocations: 441.3 kB / 1.559 GB, free: 55.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008776/3.847, allocations: 277.6 kB / 1.559 GB, free: 54.97 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002721/3.848, allocations: 71.52 kB / 1.559 GB, free: 54.97 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006931/3.854, allocations: 9.94 MB / 1.569 GB, free: 46.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/3.855, allocations: 6.531 kB / 1.569 GB, free: 46.17 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/3.865, allocations: 4.57 MB / 1.573 GB, free: 45.01 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/3.866, allocations: 283.1 kB / 1.574 GB, free: 44.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007382/3.867, allocations: 54.78 kB / 1.574 GB, free: 44.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/3.869, allocations: 165 kB / 1.574 GB, free: 44.78 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000707/3.87, allocations: 238.9 kB / 1.574 GB, free: 44.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003098/3.87, allocations: 81.91 kB / 1.574 GB, free: 44.77 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.001236/3.871, allocations: 0.6906 MB / 1.575 GB, free: 44.66 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/3.871, allocations: 0 / 1.575 GB, free: 44.66 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.004569/3.876, allocations: 0.982 MB / 1.576 GB, free: 44.53 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (sink6.inlet.m_flow,mCV6.dp_int,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 (217): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 12 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(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.01378/3.89, allocations: 7.448 MB / 1.583 GB, free: 41.6 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.009686/3.899, allocations: 3.591 MB / 1.587 GB, free: 40.19 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/3.9, allocations: 8.5 kB / 1.587 GB, free: 40.19 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.006904/3.907, allocations: 2.442 MB / 1.589 GB, free: 39.17 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005536/3.912, allocations: 0.5174 MB / 1.59 GB, free: 39.15 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03879/3.951, allocations: 15.53 MB / 1.605 GB, free: 31.8 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/3.952, allocations: 1.43 MB / 1.606 GB, free: 31.05 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002669/3.955, allocations: 294.8 kB / 1.606 GB, free: 30.99 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001788/3.957, allocations: 0.8031 MB / 1.607 GB, free: 30.99 MB / 0.6198 GB Notification: Performance of SimCode: time 1.843e-06/3.957, allocations: 4 kB / 1.607 GB, free: 30.99 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1838/4.141, allocations: 63.62 MB / 1.669 GB, free: 27.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002827/4.141, allocations: 190 kB / 1.669 GB, free: 27.03 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.263/9.404, allocations: 0 / 1.669 GB, free: 27.03 MB / 0.6198 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_MCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.FlowControl.Tests.MCV_res.mat does not exist to compare? outputFormat=mat