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.001044/0.001044, allocations: 173.4 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 221.5 MB / 229.6 MB, free: 7.613 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009653/0.0009652, allocations: 90.23 kB / 280.5 MB, free: 5.352 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.009486/0.009486, allocations: 1.571 MB / 332.8 MB, free: 13.58 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7597/0.7597, allocations: 90.04 MB / 474 MB, free: 13.05 MB / 314.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.617e-05/1.581e-05, allocations: 2.438 kB / 0.5376 GB, free: 33.11 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1616, allocations: 69.38 MB / 0.6053 GB, free: 52 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.222/1.384, allocations: 438.8 MB / 1.034 GB, free: 118.3 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/1.384, allocations: 76.41 kB / 1.034 GB, free: 118.2 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 1.737/3.121, allocations: 463.3 MB / 1.486 GB, free: 82.41 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.552e-06/3.121, allocations: 0 / 1.486 GB, free: 82.41 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0001361/3.121, allocations: 54.59 kB / 1.486 GB, free: 82.4 MB / 0.6042 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.007109/3.128, allocations: 2.673 MB / 1.489 GB, free: 81.11 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/3.128, allocations: 10.47 kB / 1.489 GB, free: 81.11 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000687/3.129, allocations: 229.9 kB / 1.489 GB, free: 81 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00161/3.131, allocations: 0.9443 MB / 1.49 GB, free: 80.62 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.603e-05/3.131, allocations: 51.44 kB / 1.49 GB, free: 80.62 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/3.131, allocations: 111.8 kB / 1.49 GB, free: 80.62 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002174/3.133, allocations: 1.398 MB / 1.492 GB, free: 80.61 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002204/3.135, allocations: 1.496 MB / 1.493 GB, free: 80.39 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/3.135, allocations: 3.375 kB / 1.493 GB, free: 80.39 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/3.135, allocations: 5.938 kB / 1.493 GB, free: 80.39 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-05/3.135, allocations: 43.86 kB / 1.493 GB, free: 80.39 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008903/3.144, allocations: 7.291 MB / 1.5 GB, free: 76.11 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003282/3.148, allocations: 2.027 MB / 1.502 GB, free: 75.93 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/3.149, allocations: 0.8618 MB / 1.503 GB, free: 75.87 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007715/3.15, allocations: 0.6788 MB / 1.504 GB, free: 75.21 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/3.151, allocations: 1.066 MB / 1.505 GB, free: 75.08 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=211): time 5.23e-06/3.151, allocations: 3.938 kB / 1.505 GB, free: 75.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=211): time 0.004173/3.155, allocations: 1.875 MB / 1.507 GB, free: 74.85 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.471e-05/3.155, allocations: 239 kB / 1.507 GB, free: 74.6 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008714/3.156, allocations: 0.7448 MB / 1.508 GB, free: 74.45 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001187/3.156, allocations: 32.33 kB / 1.508 GB, free: 74.42 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005032/3.157, allocations: 0.6734 MB / 1.508 GB, free: 74.17 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005144/3.157, allocations: 0.6718 MB / 1.509 GB, free: 73.72 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.105e-05/3.158, allocations: 0 / 1.509 GB, free: 73.72 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001254/3.158, allocations: 386.6 kB / 1.509 GB, free: 73.42 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008881/3.159, allocations: 0.6171 MB / 1.51 GB, free: 73.41 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/3.16, allocations: 0.8334 MB / 1.511 GB, free: 73.24 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/3.161, allocations: 0.6687 MB / 1.511 GB, free: 73.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/3.161, allocations: 2 kB / 1.511 GB, free: 73.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=252) (initialization): time 0.00373/3.165, allocations: 2.055 MB / 1.513 GB, free: 73 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.594e-05/3.165, allocations: 175.1 kB / 1.514 GB, free: 72.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/3.165, allocations: 4.031 kB / 1.514 GB, free: 72.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007048/3.166, allocations: 266.8 kB / 1.514 GB, free: 72.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/3.168, allocations: 434.9 kB / 1.514 GB, free: 72.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005582/3.173, allocations: 9.448 MB / 1.523 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001991/3.175, allocations: 212 kB / 1.524 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/3.175, allocations: 79.55 kB / 1.524 GB, free: 64.29 MB / 0.6042 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 () * 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.0003721/3.176, allocations: 156 kB / 1.524 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004059/3.18, allocations: 1.87 MB / 1.526 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/3.18, allocations: 180.1 kB / 1.526 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/3.185, allocations: 2.364 MB / 1.528 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/3.185, allocations: 28.2 kB / 1.528 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.048e-05/3.185, allocations: 6.906 kB / 1.528 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.473e-05/3.185, allocations: 14.23 kB / 1.528 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008562/3.193, allocations: 4.485 MB / 1.533 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.193e-05/3.193, allocations: 6.562 kB / 1.533 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/3.195, allocations: 446.9 kB / 1.533 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007719/3.196, allocations: 257.8 kB / 1.533 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/3.196, allocations: 53.7 kB / 1.533 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005547/3.202, allocations: 9.458 MB / 1.543 GB, free: 54.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.243e-06/3.202, allocations: 6.156 kB / 1.543 GB, free: 54.18 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006638/3.208, allocations: 3.797 MB / 1.546 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000673/3.209, allocations: 273.3 kB / 1.547 GB, free: 52.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004401/3.21, allocations: 17.62 kB / 1.547 GB, free: 52.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001935/3.212, allocations: 138.6 kB / 1.547 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000523/3.212, allocations: 234.6 kB / 1.547 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002156/3.212, allocations: 82.55 kB / 1.547 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001013/3.213, allocations: 0.5498 MB / 1.548 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.31e-07/3.213, allocations: 3.469 kB / 1.548 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.004051/3.217, allocations: 0.912 MB / 1.548 GB, free: 52.37 MB / 0.6042 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) * 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.009902/3.227, allocations: 6.667 MB / 1.555 GB, free: 48.4 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0042/3.232, allocations: 3.061 MB / 1.558 GB, free: 46.38 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/3.232, allocations: 6.031 kB / 1.558 GB, free: 46.38 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002827/3.234, allocations: 2.15 MB / 1.56 GB, free: 44.94 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003126/3.238, allocations: 478.1 kB / 1.56 GB, free: 44.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008755/3.246, allocations: 3.691 MB / 1.564 GB, free: 43.19 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/3.248, allocations: 1.43 MB / 1.565 GB, free: 42.43 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.001685/3.249, allocations: 288.6 kB / 1.566 GB, free: 42.35 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/3.251, allocations: 0.7972 MB / 1.567 GB, free: 41.75 MB / 0.6042 GB Notification: Performance of SimCode: time 1.192e-06/3.251, allocations: 0 / 1.567 GB, free: 41.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1051/3.356, allocations: 54.91 MB / 1.62 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/3.356, allocations: 132.2 kB / 1.62 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.26/7.616, allocations: 0 / 1.62 GB, free: 14.08 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