Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.156/2.156, allocations: 387.2 MB / 394.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 180.7 kB / 487 MB, free: 5.398 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 221.3 MB / 0.7819 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 97.55 kB / 0.9213 GB, free: 2.695 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6877/0.6889, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.9662, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.66/5.627, allocations: 1.869 GB / 3.074 GB, free: 436.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/5.627, allocations: 96.69 kB / 3.074 GB, free: 436.7 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 5.695/11.32, allocations: 1.803 GB / 4.877 GB, free: 369 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/11.32, allocations: 15.72 kB / 4.877 GB, free: 369 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/11.32, allocations: 187.9 kB / 4.877 GB, free: 369 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00286/11.33, allocations: 1.079 MB / 4.878 GB, free: 368.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/11.33, allocations: 18.28 kB / 4.878 GB, free: 368.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/11.33, allocations: 45.12 kB / 4.878 GB, free: 368.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007598/11.33, allocations: 492.5 kB / 4.879 GB, free: 368.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008486/11.33, allocations: 0.6899 MB / 4.879 GB, free: 368.4 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/11.33, allocations: 2.625 kB / 4.879 GB, free: 368.4 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.37e-05/11.33, allocations: 3.844 kB / 4.879 GB, free: 368.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/11.33, allocations: 11.81 kB / 4.879 GB, free: 368.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003552/11.33, allocations: 4.667 MB / 4.884 GB, free: 365 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004649/11.33, allocations: 450.4 kB / 4.884 GB, free: 364.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002472/11.33, allocations: 251.4 kB / 4.885 GB, free: 364.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002689/11.33, allocations: 199.1 kB / 4.885 GB, free: 364.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002794/11.33, allocations: 257 kB / 4.885 GB, free: 364.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 2.094e-06/11.33, allocations: 0 / 4.885 GB, free: 364.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.0008764/11.33, allocations: 0.5023 MB / 4.886 GB, free: 364.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/11.33, allocations: 87.59 kB / 4.886 GB, free: 364.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008388/11.33, allocations: 0.8741 MB / 4.887 GB, free: 364.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/11.33, allocations: 33.2 kB / 4.887 GB, free: 364.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/11.33, allocations: 335.1 kB / 4.887 GB, free: 364.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.515e-05/11.33, allocations: 104.2 kB / 4.887 GB, free: 364.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.129e-05/11.33, allocations: 0 / 4.887 GB, free: 364.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.69e-05/11.34, allocations: 325.2 kB / 4.887 GB, free: 363.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/11.34, allocations: 185.6 kB / 4.887 GB, free: 363.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003948/11.34, allocations: 0.5096 MB / 4.888 GB, free: 363.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002895/11.34, allocations: 275.7 kB / 4.888 GB, free: 363.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/11.34, allocations: 0 / 4.888 GB, free: 363.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00077/11.34, allocations: 0.6205 MB / 4.889 GB, free: 363.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004536/11.34, allocations: 2.102 MB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/11.34, allocations: 3.906 kB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/11.34, allocations: 18 kB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/11.34, allocations: 113.1 kB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/11.34, allocations: 11.56 kB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007365/11.34, allocations: 90.67 kB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.358e-05/11.34, allocations: 30.52 kB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.981e-06/11.34, allocations: 3.969 kB / 4.891 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005007/11.34, allocations: 421.8 kB / 4.892 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/11.34, allocations: 7.875 kB / 4.892 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/11.34, allocations: 6.812 kB / 4.892 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004052/11.34, allocations: 115.5 kB / 4.892 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/11.34, allocations: 10.56 kB / 4.892 GB, free: 361.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005844/11.34, allocations: 78.73 kB / 4.892 GB, free: 361.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/11.34, allocations: 24.59 kB / 4.892 GB, free: 361.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001279/11.34, allocations: 124 kB / 4.892 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.717e-05/11.34, allocations: 94.75 kB / 4.892 GB, free: 361 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006643/11.34, allocations: 456.1 kB / 4.892 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/11.34, allocations: 3.781 kB / 4.892 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/11.34, allocations: 7.281 kB / 4.892 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/11.34, allocations: 0 / 4.892 GB, free: 360.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/11.34, allocations: 1.275 MB / 4.894 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/11.34, allocations: 2.156 kB / 4.894 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000404/11.34, allocations: 76.62 kB / 4.894 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-05/11.34, allocations: 3.156 kB / 4.894 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/11.34, allocations: 11.56 kB / 4.894 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/11.34, allocations: 5.25 kB / 4.894 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/11.34, allocations: 6.281 kB / 4.894 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009555/11.34, allocations: 0.6372 MB / 4.894 GB, free: 360.2 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001094/11.35, allocations: 1.081 MB / 4.895 GB, free: 359.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/11.35, allocations: 209.9 kB / 4.896 GB, free: 359.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/11.35, allocations: 7.5 kB / 4.896 GB, free: 359.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005049/11.35, allocations: 52.69 kB / 4.896 GB, free: 359.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.791e-05/11.35, allocations: 30.62 kB / 4.896 GB, free: 359.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.729e-05/11.35, allocations: 12.97 kB / 4.896 GB, free: 359.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.000936/11.35, allocations: 0.6842 MB / 4.896 GB, free: 359.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003104/11.35, allocations: 0.6189 MB / 4.897 GB, free: 359.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001516/11.35, allocations: 1.041 MB / 4.898 GB, free: 359 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001143/11.35, allocations: 0.7254 MB / 4.899 GB, free: 358.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/11.35, allocations: 1.344 kB / 4.899 GB, free: 358.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002816/11.35, allocations: 190.7 kB / 4.899 GB, free: 358.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/11.36, allocations: 372.8 kB / 4.899 GB, free: 358.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/11.36, allocations: 1.38 MB / 4.901 GB, free: 358.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009335/11.36, allocations: 1.272 MB / 4.902 GB, free: 357.8 MB / 1.151 GB Notification: Performance of SimCode: time 6.81e-07/11.36, allocations: 0 / 4.902 GB, free: 357.8 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > Buildings_9_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1)