Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_latest_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.248/2.248, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001786/0.001786, allocations: 177.3 kB / 490.8 MB, free: 1.93 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.522/1.522, allocations: 221.4 MB / 0.7863 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 92.66 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7611/0.7622, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/1.118, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.795/6.913, allocations: 1.869 GB / 3.081 GB, free: 432.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/6.913, allocations: 94.17 kB / 3.081 GB, free: 432.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 6.841/13.75, allocations: 1.803 GB / 4.884 GB, free: 364.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/13.75, allocations: 10.81 kB / 4.884 GB, free: 364.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001376/13.76, allocations: 187.9 kB / 4.884 GB, free: 364.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003265/13.76, allocations: 1.085 MB / 4.885 GB, free: 364.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.837e-05/13.76, allocations: 22.59 kB / 4.885 GB, free: 364.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/13.76, allocations: 37.97 kB / 4.885 GB, free: 364.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009853/13.76, allocations: 488.3 kB / 4.886 GB, free: 364.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/13.76, allocations: 0.6951 MB / 4.887 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/13.76, allocations: 9.594 kB / 4.887 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.414e-05/13.76, allocations: 6.562 kB / 4.887 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/13.76, allocations: 16.62 kB / 4.887 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005154/13.77, allocations: 4.661 MB / 4.891 GB, free: 360.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006148/13.77, allocations: 457.5 kB / 4.892 GB, free: 360.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/13.77, allocations: 249.3 kB / 4.892 GB, free: 360.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003274/13.77, allocations: 196.2 kB / 4.892 GB, free: 360.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003379/13.77, allocations: 259.3 kB / 4.892 GB, free: 360.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 2.484e-06/13.77, allocations: 3.062 kB / 4.892 GB, free: 360.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.001225/13.77, allocations: 0.4935 MB / 4.893 GB, free: 360.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/13.77, allocations: 84.25 kB / 4.893 GB, free: 360 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/13.77, allocations: 0.8736 MB / 4.894 GB, free: 359.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/13.77, allocations: 28.89 kB / 4.894 GB, free: 359.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002518/13.77, allocations: 342 kB / 4.894 GB, free: 359.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.672e-05/13.77, allocations: 109.8 kB / 4.894 GB, free: 359.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.202e-05/13.77, allocations: 0 / 4.894 GB, free: 359.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.535e-05/13.77, allocations: 327.8 kB / 4.894 GB, free: 359.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/13.77, allocations: 183.2 kB / 4.895 GB, free: 359.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004203/13.77, allocations: 0.5089 MB / 4.895 GB, free: 358.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/13.77, allocations: 275.8 kB / 4.895 GB, free: 358.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/13.77, allocations: 3.781 kB / 4.895 GB, free: 358.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001004/13.77, allocations: 0.6192 MB / 4.896 GB, free: 358.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004841/13.77, allocations: 2.092 MB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/13.77, allocations: 11.28 kB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/13.77, allocations: 7.781 kB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/13.78, allocations: 115.3 kB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/13.78, allocations: 11.62 kB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/13.78, allocations: 87.41 kB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/13.78, allocations: 23.91 kB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/13.78, allocations: 3.594 kB / 4.898 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001027/13.78, allocations: 424 kB / 4.899 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/13.78, allocations: 9.594 kB / 4.899 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/13.78, allocations: 8.906 kB / 4.899 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/13.78, allocations: 117.5 kB / 4.899 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/13.78, allocations: 10.44 kB / 4.899 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009796/13.78, allocations: 75.3 kB / 4.899 GB, free: 356.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.142e-05/13.78, allocations: 30.36 kB / 4.899 GB, free: 356.6 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.0002003/13.78, allocations: 126.7 kB / 4.899 GB, free: 356.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002404/13.78, allocations: 95.22 kB / 4.899 GB, free: 356.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/13.78, allocations: 458.5 kB / 4.9 GB, free: 356.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/13.78, allocations: 7.25 kB / 4.9 GB, free: 356.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/13.78, allocations: 1.031 kB / 4.9 GB, free: 356.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/13.78, allocations: 3.703 kB / 4.9 GB, free: 356.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/13.78, allocations: 1.276 MB / 4.901 GB, free: 356 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/13.78, allocations: 2.312 kB / 4.901 GB, free: 356 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/13.78, allocations: 81.06 kB / 4.901 GB, free: 356 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.381e-05/13.78, allocations: 3.75 kB / 4.901 GB, free: 356 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/13.78, allocations: 3.844 kB / 4.901 GB, free: 356 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.967e-06/13.78, allocations: 3.406 kB / 4.901 GB, free: 356 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.809e-06/13.78, allocations: 8.141 kB / 4.901 GB, free: 356 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001006/13.78, allocations: 0.6536 MB / 4.902 GB, free: 355.6 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001188/13.79, allocations: 1.071 MB / 4.903 GB, free: 354.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005259/13.79, allocations: 214.2 kB / 4.903 GB, free: 354.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/13.79, allocations: 3.375 kB / 4.903 GB, free: 354.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007541/13.79, allocations: 53.53 kB / 4.903 GB, free: 354.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-05/13.79, allocations: 32.28 kB / 4.903 GB, free: 354.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/13.79, allocations: 12.41 kB / 4.903 GB, free: 354.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001351/13.79, allocations: 0.6837 MB / 4.904 GB, free: 354.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004895/13.79, allocations: 0.6257 MB / 4.904 GB, free: 354.6 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.002451/13.8, allocations: 1.019 MB / 4.905 GB, free: 354.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001636/13.8, allocations: 0.725 MB / 4.906 GB, free: 354.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/13.8, allocations: 3.5 kB / 4.906 GB, free: 354.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003649/13.8, allocations: 189.5 kB / 4.906 GB, free: 354.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002436/13.8, allocations: 380.2 kB / 4.906 GB, free: 354.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004168/13.81, allocations: 1.392 MB / 4.908 GB, free: 354 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002039/13.81, allocations: 1.275 MB / 4.909 GB, free: 353.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.094e-06/13.81, allocations: 0 / 4.909 GB, free: 353.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > Buildings_latest_Buildings.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1)