Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.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.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Flow_Resistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance",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.002825/0.002825, allocations: 181.6 kB / 7.457 MB, free: 2.516 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.049/1.049, allocations: 221.4 MB / 229.3 MB, free: 3.004 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.0008077/0.0008078, allocations: 103.1 kB / 280.1 MB, free: 1.246 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.007422/0.007422, allocations: 1.561 MB / 332.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.4053/0.4053, allocations: 90.05 MB / 473.6 MB, free: 7.277 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1778/0.5832, allocations: 76.2 MB / 0.537 GB, free: 14.26 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.6885, allocations: 69.35 MB / 0.6047 GB, free: 8.801 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.691/1.38, allocations: 436.7 MB / 1.031 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/1.38, allocations: 77.77 kB / 1.031 GB, free: 11.08 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.5533/1.933, allocations: 201.2 MB / 1.228 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/1.933, allocations: 8 kB / 1.228 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/1.933, allocations: 71.16 kB / 1.228 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/1.934, allocations: 424.5 kB / 1.228 GB, free: 66.09 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/1.934, allocations: 19.98 kB / 1.228 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.755e-05/1.934, allocations: 28 kB / 1.228 GB, free: 66.05 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005946/1.935, allocations: 473.8 kB / 1.229 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005851/1.935, allocations: 491.8 kB / 1.229 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/1.935, allocations: 0 / 1.229 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/1.935, allocations: 0 / 1.229 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/1.935, allocations: 16 kB / 1.229 GB, free: 65.07 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/1.937, allocations: 2.368 MB / 1.231 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/1.938, allocations: 0.5063 MB / 1.232 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/1.938, allocations: 275.5 kB / 1.232 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002346/1.938, allocations: 368.2 kB / 1.233 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/1.938, allocations: 46.56 kB / 1.233 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=60): time 1.964e-06/1.938, allocations: 3.938 kB / 1.233 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of matching and sorting (n=60): time 0.001417/1.94, allocations: 0.6156 MB / 1.233 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.459e-05/1.94, allocations: 140.5 kB / 1.233 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/1.94, allocations: 292.9 kB / 1.234 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/1.94, allocations: 25.7 kB / 1.234 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.275e-05/1.94, allocations: 201 kB / 1.234 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.673e-05/1.94, allocations: 197 kB / 1.234 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/1.94, allocations: 0 / 1.234 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.879e-05/1.94, allocations: 354.8 kB / 1.234 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/1.941, allocations: 185.1 kB / 1.235 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/1.941, allocations: 228.3 kB / 1.235 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006286/1.941, allocations: 211.9 kB / 1.235 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/1.941, allocations: 0 / 1.235 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001334/1.943, allocations: 0.6508 MB / 1.236 GB, free: 58 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/1.943, allocations: 15.98 kB / 1.236 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/1.943, allocations: 3.938 kB / 1.236 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006198/1.943, allocations: 207.2 kB / 1.236 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006158/1.944, allocations: 107.8 kB / 1.236 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/1.946, allocations: 4.332 MB / 1.24 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002966/1.946, allocations: 35.56 kB / 1.24 GB, free: 52.99 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.132e-05/1.946, allocations: 16 kB / 1.24 GB, free: 52.98 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: flowResistance.m_flow:VARIABLE(unit = "kg/s" stateSelect=StateSelect.prefer ) "mass flow through component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001287/1.947, allocations: 121.5 kB / 1.24 GB, free: 52.85 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/1.947, allocations: 51.34 kB / 1.24 GB, free: 52.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/1.948, allocations: 0.7974 MB / 1.241 GB, free: 51.99 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/1.948, allocations: 8 kB / 1.241 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/1.948, allocations: 0 / 1.241 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/1.948, allocations: 7.984 kB / 1.241 GB, free: 51.97 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002447/1.951, allocations: 1.61 MB / 1.243 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.951, allocations: 4 kB / 1.243 GB, free: 50.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/1.951, allocations: 87.88 kB / 1.243 GB, free: 50.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002956/1.951, allocations: 119.3 kB / 1.243 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.951e-05/1.951, allocations: 7.984 kB / 1.243 GB, free: 50.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002281/1.954, allocations: 5.122 MB / 1.248 GB, free: 44.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/1.954, allocations: 0 / 1.248 GB, free: 44.52 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001558/1.955, allocations: 1.297 MB / 1.249 GB, free: 43.18 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001933/1.957, allocations: 2.02 MB / 1.251 GB, free: 41.11 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.695e-05/1.957, allocations: 132.3 kB / 1.251 GB, free: 40.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/1.957, allocations: 4 kB / 1.251 GB, free: 40.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006264/1.958, allocations: 11.89 kB / 1.251 GB, free: 40.95 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.953e-05/1.958, allocations: 39.88 kB / 1.251 GB, free: 40.91 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/1.958, allocations: 23.98 kB / 1.251 GB, free: 40.88 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0001578/1.958, allocations: 239.2 kB / 1.252 GB, free: 40.66 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001678/1.96, allocations: 451.2 kB / 1.252 GB, free: 40.21 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (flowResistance.m_flow,flowResistance1.m_flow,flowResistance2.m_flow,flowResistance3.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007632/1.961, allocations: 0.6931 MB / 1.253 GB, free: 39.56 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001209/1.962, allocations: 0.8733 MB / 1.254 GB, free: 38.64 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.962, allocations: 0 / 1.254 GB, free: 38.64 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007118/1.963, allocations: 0.8209 MB / 1.254 GB, free: 37.76 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008332/1.964, allocations: 157.3 kB / 1.255 GB, free: 37.61 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/1.965, allocations: 0.955 MB / 1.255 GB, free: 36.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000407/1.965, allocations: 0.966 MB / 1.256 GB, free: 35.63 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/1.965, allocations: 0 / 1.256 GB, free: 35.63 MB / 0.6042 GB (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Flow_Resistance.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Processes.Tests.Flow_Resistance_res.mat does not exist to compare? outputFormat=mat