Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",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.001227/0.001227, allocations: 180.9 kB / 7.651 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.375/1.375, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.00104/0.00104, allocations: 99.66 kB / 280.5 MB, free: 5.336 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.01043/0.01043, allocations: 1.569 MB / 332.8 MB, free: 13.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7344/0.7344, allocations: 90.05 MB / 474 MB, free: 13.04 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.842e-05/1.85e-05, allocations: 3.125 kB / 0.5376 GB, free: 33.04 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1479, allocations: 69.37 MB / 0.6053 GB, free: 20 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.245/1.393, allocations: 456.7 MB / 1.051 GB, free: 102 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/1.393, allocations: 86.39 kB / 1.051 GB, free: 101.9 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.7862/2.18, allocations: 176.1 MB / 1.223 GB, free: 172.4 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.074e-06/2.18, allocations: 0 / 1.223 GB, free: 172.4 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0001296/2.18, allocations: 21.66 kB / 1.223 GB, free: 172.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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.004404/2.184, allocations: 1.451 MB / 1.225 GB, free: 171.5 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/2.184, allocations: 10.62 kB / 1.225 GB, free: 171.5 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009917/2.185, allocations: 154.2 kB / 1.225 GB, free: 171.4 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/2.187, allocations: 0.5869 MB / 1.225 GB, free: 171 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.238e-05/2.187, allocations: 27.47 kB / 1.226 GB, free: 171 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002671/2.187, allocations: 56.22 kB / 1.226 GB, free: 171 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001679/2.189, allocations: 0.8894 MB / 1.226 GB, free: 170.7 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/2.19, allocations: 0.8882 MB / 1.227 GB, free: 170.3 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.578e-05/2.19, allocations: 0 / 1.227 GB, free: 170.3 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.482e-05/2.191, allocations: 3.953 kB / 1.227 GB, free: 170.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/2.191, allocations: 26.75 kB / 1.227 GB, free: 170.3 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006108/2.197, allocations: 4.997 MB / 1.232 GB, free: 166.4 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/2.198, allocations: 1.076 MB / 1.233 GB, free: 165.9 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006016/2.199, allocations: 465.3 kB / 1.234 GB, free: 165.7 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003271/2.202, allocations: 2.762 MB / 1.236 GB, free: 163 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/2.202, allocations: 47.31 kB / 1.236 GB, free: 163 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=115): time 2.956e-06/2.202, allocations: 3.875 kB / 1.236 GB, free: 163 MB / 0.6042 GB Notification: Performance of matching and sorting (n=129): time 0.009727/2.212, allocations: 3.604 MB / 1.24 GB, free: 160.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/2.212, allocations: 97.92 kB / 1.24 GB, free: 160.7 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005473/2.213, allocations: 406.9 kB / 1.24 GB, free: 160.5 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.066e-05/2.213, allocations: 25.7 kB / 1.24 GB, free: 160.4 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.00023/2.213, allocations: 401.5 kB / 1.241 GB, free: 160.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002938/2.213, allocations: 428 kB / 1.241 GB, free: 159.7 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.559e-05/2.214, allocations: 3.938 kB / 1.241 GB, free: 159.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001446/2.214, allocations: 394.3 kB / 1.242 GB, free: 159.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005718/2.214, allocations: 356.9 kB / 1.242 GB, free: 159.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006177/2.215, allocations: 0.5078 MB / 1.242 GB, free: 158.8 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/2.217, allocations: 0.5515 MB / 1.243 GB, free: 158.6 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/2.217, allocations: 0 / 1.243 GB, free: 158.6 MB / 0.6042 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003491/2.22, allocations: 1.442 MB / 1.244 GB, free: 157.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.719e-05/2.22, allocations: 8.625 kB / 1.244 GB, free: 157.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/2.22, allocations: 3.969 kB / 1.244 GB, free: 157.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/2.221, allocations: 291.8 kB / 1.245 GB, free: 157.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009492/2.222, allocations: 242.9 kB / 1.245 GB, free: 157.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007568/2.23, allocations: 10.77 MB / 1.255 GB, free: 146.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/2.231, allocations: 67.97 kB / 1.256 GB, free: 146.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002878/2.231, allocations: 43.98 kB / 1.256 GB, free: 146.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004158/2.232, allocations: 132.4 kB / 1.256 GB, free: 146.5 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003583/2.235, allocations: 1.359 MB / 1.257 GB, free: 145.1 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/2.236, allocations: 90.88 kB / 1.257 GB, free: 145 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003827/2.24, allocations: 1.606 MB / 1.259 GB, free: 143.4 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/2.24, allocations: 12 kB / 1.259 GB, free: 143.4 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/2.24, allocations: 4 kB / 1.259 GB, free: 143.4 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/2.24, allocations: 7.984 kB / 1.259 GB, free: 143.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005792/2.245, allocations: 2.738 MB / 1.261 GB, free: 140.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/2.246, allocations: 0 / 1.261 GB, free: 140.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009459/2.246, allocations: 239.8 kB / 1.262 GB, free: 140.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009347/2.247, allocations: 302.5 kB / 1.262 GB, free: 140 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/2.248, allocations: 35.89 kB / 1.262 GB, free: 140 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007106/2.255, allocations: 10.76 MB / 1.272 GB, free: 128.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/2.255, allocations: 0 / 1.272 GB, free: 128.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004963/2.26, allocations: 2.222 MB / 1.275 GB, free: 126 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003723/2.26, allocations: 156 kB / 1.275 GB, free: 125.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/2.26, allocations: 11.95 kB / 1.275 GB, free: 125.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/2.261, allocations: 83.7 kB / 1.275 GB, free: 125.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003101/2.262, allocations: 109 kB / 1.275 GB, free: 125.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/2.262, allocations: 51.91 kB / 1.275 GB, free: 125.6 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0004321/2.262, allocations: 318.9 kB / 1.275 GB, free: 125.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/2.262, allocations: 0 / 1.275 GB, free: 125.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00221/2.265, allocations: 395.9 kB / 1.276 GB, free: 124.9 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,boundary_rear.fore.m_flow,boundary_fore.rear.m_flow,reservoir2.M,reservoir2.U_med,source1.outlet.m_flow,sink1.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004844/2.269, allocations: 3.364 MB / 1.279 GB, free: 121.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002684/2.272, allocations: 1.978 MB / 1.281 GB, free: 119.4 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/2.272, allocations: 4 kB / 1.281 GB, free: 119.4 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00184/2.274, allocations: 1.535 MB / 1.282 GB, free: 117.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/2.276, allocations: 228.7 kB / 1.283 GB, free: 117.6 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004666/2.28, allocations: 2.053 MB / 1.285 GB, free: 115.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/2.281, allocations: 1.068 MB / 1.286 GB, free: 114.4 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0009904/2.282, allocations: 191.8 kB / 1.286 GB, free: 114.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005779/2.283, allocations: 407.2 kB / 1.286 GB, free: 113.9 MB / 0.6042 GB Notification: Performance of SimCode: time 1.152e-06/2.283, allocations: 0 / 1.286 GB, free: 113.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05872/2.341, allocations: 26.86 MB / 1.312 GB, free: 87.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002407/2.342, allocations: 155.8 kB / 1.313 GB, free: 87.09 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.059/5.401, allocations: 6.859 kB / 1.313 GB, free: 87.09 MB / 0.6042 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat does not exist to compare? outputFormat=mat