Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.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.SeriesParallelDpOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelDpOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelDpOptimised",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.745/0.745, allocations: 141.8 MB / 149.1 MB, free: 12.36 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 181.5 kB / 182 MB, free: 9.125 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.406/1.406, allocations: 221.4 MB / 436 MB, free: 1.445 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.001037/0.001037, allocations: 107.8 kB / 0.507 GB, free: 10.31 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001919/0.001919, allocations: 282.5 kB / 0.5885 GB, free: 7.145 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2153/0.2173, allocations: 89.65 MB / 0.676 GB, free: 13.4 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5321/0.7494, allocations: 82.76 MB / 0.7568 GB, free: 138.3 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.088/4.838, allocations: 1.832 GB / 2.588 GB, free: 201.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/4.838, allocations: 95.86 kB / 2.588 GB, free: 201.2 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 6.42/11.26, allocations: 2.01 GB / 4.598 GB, free: 24.89 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/11.26, allocations: 12 kB / 4.598 GB, free: 24.88 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001557/11.26, allocations: 210.3 kB / 4.598 GB, free: 24.67 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004541/11.26, allocations: 1.461 MB / 4.6 GB, free: 23.15 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/11.26, allocations: 16 kB / 4.6 GB, free: 23.14 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/11.26, allocations: 40 kB / 4.6 GB, free: 23.1 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001244/11.27, allocations: 0.7209 MB / 4.601 GB, free: 22.38 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/11.27, allocations: 0.8643 MB / 4.601 GB, free: 21.43 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/11.27, allocations: 11.92 kB / 4.601 GB, free: 21.42 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.565e-05/11.27, allocations: 0 / 4.601 GB, free: 21.42 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/11.27, allocations: 16 kB / 4.601 GB, free: 21.4 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005207/11.27, allocations: 4.689 MB / 4.606 GB, free: 16.39 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006751/11.27, allocations: 0.5034 MB / 4.606 GB, free: 15.88 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005096/11.27, allocations: 433.7 kB / 4.607 GB, free: 15.46 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003377/11.27, allocations: 198.5 kB / 4.607 GB, free: 15.23 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003787/11.27, allocations: 305.8 kB / 4.607 GB, free: 14.91 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=35): time 3.927e-06/11.27, allocations: 0 / 4.607 GB, free: 14.91 MB / 0.6982 GB Notification: Performance of matching and sorting (n=35): time 0.002275/11.28, allocations: 0.8804 MB / 4.608 GB, free: 14.02 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/11.28, allocations: 81.11 kB / 4.608 GB, free: 13.92 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/11.28, allocations: 0.9259 MB / 4.609 GB, free: 12.98 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 8.7e-05/11.28, allocations: 29.7 kB / 4.609 GB, free: 12.95 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/11.28, allocations: 360.2 kB / 4.61 GB, free: 12.59 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/11.28, allocations: 118.3 kB / 4.61 GB, free: 12.47 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.386e-05/11.28, allocations: 0 / 4.61 GB, free: 12.47 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001134/11.28, allocations: 326 kB / 4.61 GB, free: 12.14 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/11.28, allocations: 220.9 kB / 4.61 GB, free: 11.93 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/11.28, allocations: 0.5459 MB / 4.611 GB, free: 11.23 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003482/11.28, allocations: 317.9 kB / 4.611 GB, free: 10.92 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/11.28, allocations: 4 kB / 4.611 GB, free: 10.92 MB / 0.6982 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001705/11.28, allocations: 1 MB / 4.612 GB, free: 9.906 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005918/11.28, allocations: 2.096 MB / 4.614 GB, free: 7.648 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/11.28, allocations: 4 kB / 4.614 GB, free: 7.645 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005944/11.28, allocations: 268.5 kB / 4.614 GB, free: 7.379 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/11.28, allocations: 75.83 kB / 4.614 GB, free: 7.305 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/11.28, allocations: 1.222 MB / 4.616 GB, free: 6.059 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/11.29, allocations: 119.3 kB / 4.616 GB, free: 5.941 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.975e-05/11.29, allocations: 24 kB / 4.616 GB, free: 5.918 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/11.29, allocations: 10.19 kB / 4.616 GB, free: 5.91 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001081/11.29, allocations: 0.6677 MB / 4.616 GB, free: 5.238 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/11.29, allocations: 8.625 kB / 4.616 GB, free: 5.23 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006108/11.29, allocations: 248.7 kB / 4.617 GB, free: 4.984 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000283/11.29, allocations: 75.89 kB / 4.617 GB, free: 4.91 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/11.29, allocations: 2.908 MB / 4.62 GB, free: 1.895 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009598/11.29, allocations: 103.6 kB / 4.62 GB, free: 1.793 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/11.29, allocations: 24 kB / 4.62 GB, free: 1.77 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_m_flow.T_start,pulse_m_flow.T_start,$PRE.pulse_m_flow.count,pulse_m_flow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 22} Notification: Performance of prepare postOptimizeDAE: time 0.0001578/11.29, allocations: 132.2 kB / 4.62 GB, free: 1.637 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/11.29, allocations: 102.8 kB / 4.62 GB, free: 1.535 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/11.29, allocations: 0.7882 MB / 4.621 GB, free: 0.7344 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/11.29, allocations: 4 kB / 4.621 GB, free: 0.7305 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/11.29, allocations: 4 kB / 4.621 GB, free: 0.7266 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/11.29, allocations: 4 kB / 4.621 GB, free: 0.7227 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3099/11.6, allocations: 1.699 MB / 4.622 GB, free: 213.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/11.6, allocations: 2.875 kB / 4.622 GB, free: 213.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/11.6, allocations: 38.67 kB / 4.622 GB, free: 213.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004163/11.6, allocations: 230.1 kB / 4.623 GB, free: 213.7 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/11.6, allocations: 7.219 kB / 4.623 GB, free: 213.7 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008185/11.6, allocations: 1.073 MB / 4.624 GB, free: 213.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/11.6, allocations: 3.062 kB / 4.624 GB, free: 213.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001233/11.61, allocations: 0.9701 MB / 4.625 GB, free: 212.9 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001226/11.61, allocations: 1.409 MB / 4.626 GB, free: 212.2 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004637/11.61, allocations: 221.9 kB / 4.626 GB, free: 212 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001325/11.61, allocations: 7.406 kB / 4.626 GB, free: 212 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000727/11.61, allocations: 87.81 kB / 4.626 GB, free: 212 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.229e-05/11.61, allocations: 32.42 kB / 4.626 GB, free: 212 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/11.61, allocations: 14.72 kB / 4.626 GB, free: 212 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0007524/11.61, allocations: 0.7165 MB / 4.627 GB, free: 211.9 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003059/11.61, allocations: 0.7944 MB / 4.628 GB, free: 211.9 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_m_flow.T_start,pulse_m_flow.count) * Number of discrete states: 1 (pulse_m_flow.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001683/11.61, allocations: 1.301 MB / 4.629 GB, free: 211.7 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001604/11.62, allocations: 1.017 MB / 4.63 GB, free: 211.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/11.62, allocations: 0 / 4.63 GB, free: 211.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0003472/11.62, allocations: 238.4 kB / 4.63 GB, free: 211.5 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002839/11.62, allocations: 0.5679 MB / 4.631 GB, free: 211.5 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/11.62, allocations: 1.475 MB / 4.632 GB, free: 211.1 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006754/11.62, allocations: 1.295 MB / 4.634 GB, free: 210.4 MB / 0.6982 GB Notification: Performance of SimCode: time 7.61e-07/11.62, allocations: 0 / 4.634 GB, free: 210.4 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelDpOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelDpOptimised.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelDpOptimised.pipe 2>&1)