Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7179/0.7179, allocations: 141.8 MB / 149.1 MB, free: 3.668 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 183.1 kB / 181.9 MB, free: 15.43 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.4 MB / 436 MB, free: 8.562 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 92.55 kB / 0.507 GB, free: 24.25 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001849/0.001849, allocations: 273.7 kB / 0.5884 GB, free: 11.64 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1956/0.1975, allocations: 89.66 MB / 0.676 GB, free: 1.898 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4417/0.6392, allocations: 82.75 MB / 0.7568 GB, free: 112.2 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.784/4.423, allocations: 1.829 GB / 2.586 GB, free: 235 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/4.424, allocations: 95.92 kB / 2.586 GB, free: 234.9 MB / 0.6982 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.509/9.933, allocations: 1.803 GB / 4.389 GB, free: 33.19 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/9.933, allocations: 13.25 kB / 4.389 GB, free: 33.18 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001277/9.934, allocations: 194.4 kB / 4.389 GB, free: 32.98 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002794/9.937, allocations: 1.092 MB / 4.39 GB, free: 31.83 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/9.937, allocations: 16 kB / 4.39 GB, free: 31.82 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/9.937, allocations: 40 kB / 4.39 GB, free: 31.78 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007803/9.938, allocations: 493.6 kB / 4.391 GB, free: 31.3 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008187/9.939, allocations: 0.6858 MB / 4.391 GB, free: 30.53 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/9.939, allocations: 7.938 kB / 4.391 GB, free: 30.52 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.673e-05/9.939, allocations: 0 / 4.391 GB, free: 30.52 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/9.939, allocations: 16 kB / 4.391 GB, free: 30.5 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003775/9.942, allocations: 4.679 MB / 4.396 GB, free: 25.46 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004836/9.943, allocations: 454.4 kB / 4.396 GB, free: 25.01 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/9.943, allocations: 245.6 kB / 4.397 GB, free: 24.77 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003042/9.944, allocations: 198.2 kB / 4.397 GB, free: 24.54 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/9.944, allocations: 259 kB / 4.397 GB, free: 24.26 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=31): time 2.164e-06/9.944, allocations: 0 / 4.397 GB, free: 24.26 MB / 0.6982 GB Notification: Performance of matching and sorting (n=31): time 0.001097/9.945, allocations: 0.5009 MB / 4.397 GB, free: 23.76 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/9.945, allocations: 89 kB / 4.398 GB, free: 23.65 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00099/9.946, allocations: 0.8714 MB / 4.398 GB, free: 22.76 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/9.946, allocations: 25.7 kB / 4.398 GB, free: 22.73 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/9.946, allocations: 348.2 kB / 4.399 GB, free: 22.38 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/9.946, allocations: 102.5 kB / 4.399 GB, free: 22.28 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/9.946, allocations: 0 / 4.399 GB, free: 22.28 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.018e-05/9.946, allocations: 330 kB / 4.399 GB, free: 21.95 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/9.947, allocations: 188.8 kB / 4.399 GB, free: 21.77 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/9.947, allocations: 0.4999 MB / 4.4 GB, free: 21.13 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/9.947, allocations: 277.7 kB / 4.4 GB, free: 20.86 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/9.947, allocations: 0 / 4.4 GB, free: 20.86 MB / 0.6982 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.000792/9.948, allocations: 0.6209 MB / 4.401 GB, free: 20.23 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004131/9.949, allocations: 2.097 MB / 4.403 GB, free: 17.97 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.683e-05/9.949, allocations: 4 kB / 4.403 GB, free: 17.97 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/9.949, allocations: 8 kB / 4.403 GB, free: 17.96 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/9.949, allocations: 123.8 kB / 4.403 GB, free: 17.84 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/9.949, allocations: 11.94 kB / 4.403 GB, free: 17.83 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007995/9.95, allocations: 91.47 kB / 4.403 GB, free: 17.74 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.784e-05/9.95, allocations: 27.98 kB / 4.403 GB, free: 17.71 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.336e-06/9.95, allocations: 7.281 kB / 4.403 GB, free: 17.71 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005018/9.951, allocations: 420 kB / 4.403 GB, free: 17.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/9.951, allocations: 8.062 kB / 4.403 GB, free: 17.29 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.456e-06/9.951, allocations: 12 kB / 4.403 GB, free: 17.28 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004038/9.951, allocations: 111.8 kB / 4.404 GB, free: 17.17 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/9.951, allocations: 8 kB / 4.404 GB, free: 17.16 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007355/9.952, allocations: 79.62 kB / 4.404 GB, free: 17.08 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/9.952, allocations: 24 kB / 4.404 GB, free: 17.06 MB / 0.6982 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.0001245/9.952, allocations: 124.8 kB / 4.404 GB, free: 16.93 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/9.952, allocations: 94.78 kB / 4.404 GB, free: 16.84 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006308/9.953, allocations: 458.5 kB / 4.404 GB, free: 16.38 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/9.953, allocations: 8.234 kB / 4.404 GB, free: 16.38 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/9.953, allocations: 0 / 4.404 GB, free: 16.38 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/9.953, allocations: 11.88 kB / 4.404 GB, free: 16.36 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/9.954, allocations: 1.278 MB / 4.406 GB, free: 15.02 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/9.954, allocations: 0 / 4.406 GB, free: 15.02 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/9.955, allocations: 71.88 kB / 4.406 GB, free: 14.95 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/9.955, allocations: 4 kB / 4.406 GB, free: 14.95 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/9.955, allocations: 8 kB / 4.406 GB, free: 14.94 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/9.955, allocations: 12.14 kB / 4.406 GB, free: 14.93 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/9.955, allocations: 8 kB / 4.406 GB, free: 14.92 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005121/9.955, allocations: 0.6355 MB / 4.406 GB, free: 14.2 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006282/9.956, allocations: 1.071 MB / 4.407 GB, free: 13.05 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/9.956, allocations: 211.8 kB / 4.408 GB, free: 12.82 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/9.956, allocations: 4 kB / 4.408 GB, free: 12.82 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005133/9.957, allocations: 55.8 kB / 4.408 GB, free: 12.77 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.994e-05/9.957, allocations: 27.95 kB / 4.408 GB, free: 12.74 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/9.957, allocations: 15.94 kB / 4.408 GB, free: 12.72 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006196/9.957, allocations: 0.6806 MB / 4.408 GB, free: 12.03 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.00267/9.96, allocations: 0.6244 MB / 4.409 GB, free: 11.41 MB / 0.6982 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.001195/9.961, allocations: 1.038 MB / 4.41 GB, free: 10.36 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.000816/9.962, allocations: 0.7279 MB / 4.411 GB, free: 9.625 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/9.962, allocations: 4.062 kB / 4.411 GB, free: 9.621 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0002183/9.962, allocations: 187.7 kB / 4.411 GB, free: 9.438 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/9.964, allocations: 379.2 kB / 4.411 GB, free: 9.07 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/9.966, allocations: 1.386 MB / 4.413 GB, free: 7.621 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005948/9.966, allocations: 1.275 MB / 4.414 GB, free: 6.32 MB / 0.6982 GB Notification: Performance of SimCode: time 8.31e-07/9.966, allocations: 0 / 4.414 GB, free: 6.32 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesFlowOptimised.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlowOptimised.pipe 2>&1)