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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003588/0.003588, allocations: 179.5 kB / 7.458 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.106/2.106, allocations: 221.4 MB / 229.3 MB, free: 3.055 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.0008821/0.0008821, allocations: 101.9 kB / 280.1 MB, free: 1.211 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01048/0.01048, allocations: 1.564 MB / 332.5 MB, free: 12.87 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.5669/0.5669, allocations: 90.05 MB / 473.7 MB, free: 7.242 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2927/0.8596, allocations: 76.2 MB / 0.537 GB, free: 14.23 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/1.006, allocations: 69.35 MB / 0.6047 GB, free: 8.785 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.076/2.082, allocations: 456.6 MB / 1.051 GB, free: 9.344 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/2.082, allocations: 91.53 kB / 1.051 GB, free: 9.297 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.6642/2.746, allocations: 178.6 MB / 1.225 GB, free: 69.57 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/2.746, allocations: 8 kB / 1.225 GB, free: 69.56 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007263/2.747, allocations: 126.6 kB / 1.225 GB, free: 69.43 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/2.749, allocations: 0.603 MB / 1.226 GB, free: 68.8 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.295e-05/2.749, allocations: 28 kB / 1.226 GB, free: 68.78 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002693/2.749, allocations: 60 kB / 1.226 GB, free: 68.72 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001806/2.751, allocations: 0.9059 MB / 1.227 GB, free: 67.81 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/2.753, allocations: 0.9105 MB / 1.228 GB, free: 66.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/2.753, allocations: 4 kB / 1.228 GB, free: 66.88 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/2.753, allocations: 0 / 1.228 GB, free: 66.88 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.564e-05/2.753, allocations: 23.98 kB / 1.228 GB, free: 66.85 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006486/2.759, allocations: 5.045 MB / 1.233 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/2.76, allocations: 0.757 MB / 1.233 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000636/2.761, allocations: 474 kB / 1.234 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004021/2.765, allocations: 3.175 MB / 1.237 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/2.765, allocations: 51.58 kB / 1.237 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=115): time 2.805e-06/2.765, allocations: 0 / 1.237 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of matching and sorting (n=129): time 0.01122/2.776, allocations: 3.807 MB / 1.241 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/2.777, allocations: 94.2 kB / 1.241 GB, free: 52.59 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005914/2.777, allocations: 402.5 kB / 1.241 GB, free: 52.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001124/2.777, allocations: 25.7 kB / 1.241 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/2.777, allocations: 308.7 kB / 1.241 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002543/2.778, allocations: 425.5 kB / 1.242 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.994e-05/2.778, allocations: 0 / 1.242 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001441/2.778, allocations: 402.6 kB / 1.242 GB, free: 51.02 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005713/2.778, allocations: 370.5 kB / 1.243 GB, free: 50.66 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/2.779, allocations: 0.511 MB / 1.243 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001957/2.781, allocations: 0.6056 MB / 1.244 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/2.781, allocations: 0 / 1.244 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003781/2.785, allocations: 1.511 MB / 1.245 GB, free: 47.97 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/2.785, allocations: 4.406 kB / 1.245 GB, free: 47.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/2.785, allocations: 8 kB / 1.245 GB, free: 47.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/2.786, allocations: 286.8 kB / 1.245 GB, free: 47.65 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009803/2.787, allocations: 255.6 kB / 1.246 GB, free: 47.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006819/2.794, allocations: 10.67 MB / 1.256 GB, free: 35.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/2.795, allocations: 75.89 kB / 1.256 GB, free: 35.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/2.795, allocations: 43.98 kB / 1.256 GB, free: 35.71 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.0004343/2.796, allocations: 134.3 kB / 1.256 GB, free: 35.57 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003344/2.796, allocations: 90.88 kB / 1.256 GB, free: 35.48 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004824/2.801, allocations: 1.784 MB / 1.258 GB, free: 33.69 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/2.801, allocations: 16 kB / 1.258 GB, free: 33.68 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/2.801, allocations: 4 kB / 1.258 GB, free: 33.67 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/2.801, allocations: 11.88 kB / 1.258 GB, free: 33.66 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006284/2.807, allocations: 2.9 MB / 1.261 GB, free: 30.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/2.808, allocations: 4.031 kB / 1.261 GB, free: 30.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/2.809, allocations: 255.7 kB / 1.261 GB, free: 30.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009995/2.81, allocations: 298.4 kB / 1.262 GB, free: 30.14 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/2.81, allocations: 35.95 kB / 1.262 GB, free: 30.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007164/2.817, allocations: 10.66 MB / 1.272 GB, free: 18.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/2.817, allocations: 0 / 1.272 GB, free: 18.52 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005373/2.822, allocations: 2.349 MB / 1.274 GB, free: 16.1 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005629/2.828, allocations: 3.362 MB / 1.278 GB, free: 12.66 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004025/2.828, allocations: 156 kB / 1.278 GB, free: 12.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/2.829, allocations: 8 kB / 1.278 GB, free: 12.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/2.83, allocations: 83.78 kB / 1.278 GB, free: 12.4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/2.83, allocations: 92.91 kB / 1.278 GB, free: 12.31 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/2.83, allocations: 51.97 kB / 1.278 GB, free: 12.26 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004526/2.831, allocations: 314.9 kB / 1.278 GB, free: 11.95 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00296/2.834, allocations: 491.8 kB / 1.279 GB, free: 11.47 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 (120): * Single equations (assignments): 109 * 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.0009656/2.835, allocations: 401.4 kB / 1.279 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003067/2.838, allocations: 1.935 MB / 1.281 GB, free: 9.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/2.838, allocations: 4 kB / 1.281 GB, free: 9.066 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002098/2.84, allocations: 1.516 MB / 1.283 GB, free: 7.469 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/2.842, allocations: 231.6 kB / 1.283 GB, free: 7.246 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005252/2.847, allocations: 1.883 MB / 1.285 GB, free: 5.324 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/2.848, allocations: 1.2 MB / 1.286 GB, free: 4.094 MB / 0.6042 GB Notification: Performance of SimCode: time 1.503e-06/2.848, allocations: 0 / 1.286 GB, free: 4.094 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