Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.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.SeriesParallelFlowOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlowOptimised",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlowOptimised",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.7804/0.7804, allocations: 141.8 MB / 149.1 MB, free: 3.617 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.001207/0.001207, allocations: 176.8 kB / 181.9 MB, free: 15.39 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.342/1.342, allocations: 221.4 MB / 436 MB, free: 8.5 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.0009447/0.0009446, allocations: 96.92 kB / 0.507 GB, free: 24.36 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001894/0.001894, allocations: 285.8 kB / 0.5885 GB, free: 11.58 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2193/0.2212, allocations: 89.64 MB / 0.676 GB, free: 1.844 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5276/0.7488, allocations: 82.77 MB / 0.7568 GB, free: 112.1 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.279/5.028, allocations: 1.829 GB / 2.586 GB, free: 195.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/5.028, allocations: 88 kB / 2.586 GB, free: 195.5 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: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 6.391/11.42, allocations: 1.999 GB / 4.585 GB, free: 80.04 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/11.42, allocations: 12 kB / 4.585 GB, free: 80.03 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/11.42, allocations: 202.3 kB / 4.585 GB, free: 79.83 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004543/11.43, allocations: 1.437 MB / 4.587 GB, free: 78.34 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/11.43, allocations: 16 kB / 4.587 GB, free: 78.32 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002127/11.43, allocations: 40 kB / 4.587 GB, free: 78.29 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001211/11.43, allocations: 0.7248 MB / 4.588 GB, free: 77.56 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/11.43, allocations: 0.8643 MB / 4.588 GB, free: 76.61 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/11.43, allocations: 7.938 kB / 4.588 GB, free: 76.61 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.314e-05/11.43, allocations: 4 kB / 4.588 GB, free: 76.6 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/11.43, allocations: 12 kB / 4.588 GB, free: 76.59 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004864/11.43, allocations: 4.72 MB / 4.593 GB, free: 71.55 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007568/11.43, allocations: 0.5241 MB / 4.594 GB, free: 71.02 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004455/11.43, allocations: 456.3 kB / 4.594 GB, free: 70.58 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003079/11.43, allocations: 194.5 kB / 4.594 GB, free: 70.35 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003429/11.43, allocations: 310.1 kB / 4.594 GB, free: 70.03 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=35): time 2.995e-06/11.43, allocations: 0 / 4.594 GB, free: 70.03 MB / 0.6982 GB Notification: Performance of matching and sorting (n=35): time 0.00214/11.44, allocations: 0.9567 MB / 4.595 GB, free: 69.06 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/11.44, allocations: 85.09 kB / 4.595 GB, free: 68.96 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/11.44, allocations: 0.9178 MB / 4.596 GB, free: 68.03 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 6.885e-05/11.44, allocations: 25.7 kB / 4.596 GB, free: 68 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/11.44, allocations: 356.4 kB / 4.597 GB, free: 67.64 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 9.305e-05/11.44, allocations: 122.2 kB / 4.597 GB, free: 67.52 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/11.44, allocations: 0 / 4.597 GB, free: 67.52 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 5.951e-05/11.44, allocations: 330 kB / 4.597 GB, free: 67.2 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/11.44, allocations: 224.9 kB / 4.597 GB, free: 66.97 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/11.44, allocations: 0.5459 MB / 4.598 GB, free: 66.28 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/11.44, allocations: 317.8 kB / 4.598 GB, free: 65.97 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/11.44, allocations: 8 kB / 4.598 GB, free: 65.96 MB / 0.6982 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001881/11.44, allocations: 1.078 MB / 4.599 GB, free: 64.87 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005205/11.44, allocations: 2.092 MB / 4.601 GB, free: 62.62 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/11.44, allocations: 11.94 kB / 4.601 GB, free: 62.61 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007181/11.44, allocations: 338 kB / 4.602 GB, free: 62.27 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/11.44, allocations: 59.91 kB / 4.602 GB, free: 62.21 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/11.44, allocations: 1.353 MB / 4.603 GB, free: 60.84 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/11.45, allocations: 115.5 kB / 4.603 GB, free: 60.72 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/11.45, allocations: 24 kB / 4.603 GB, free: 60.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/11.45, allocations: 7.125 kB / 4.603 GB, free: 60.7 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001242/11.45, allocations: 0.7538 MB / 4.604 GB, free: 59.94 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/11.45, allocations: 4 kB / 4.604 GB, free: 59.93 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007982/11.45, allocations: 314.3 kB / 4.604 GB, free: 59.62 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/11.45, allocations: 67.81 kB / 4.604 GB, free: 59.56 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003977/11.45, allocations: 3.443 MB / 4.608 GB, free: 56 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/11.45, allocations: 107.5 kB / 4.608 GB, free: 55.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.46e-05/11.45, allocations: 24 kB / 4.608 GB, free: 55.88 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 (34): * Single equations (assignments): 32 * 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 {2 22} Notification: Performance of prepare postOptimizeDAE: time 0.0002235/11.45, allocations: 125 kB / 4.608 GB, free: 55.75 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002796/11.45, allocations: 106.7 kB / 4.608 GB, free: 55.64 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/11.46, allocations: 0.8506 MB / 4.609 GB, free: 54.78 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/11.46, allocations: 4 kB / 4.609 GB, free: 54.77 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/11.46, allocations: 0 / 4.609 GB, free: 54.77 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/11.46, allocations: 3.984 kB / 4.609 GB, free: 54.77 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/11.46, allocations: 1.801 MB / 4.611 GB, free: 52.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/11.46, allocations: 0 / 4.611 GB, free: 52.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/11.46, allocations: 32.14 kB / 4.611 GB, free: 52.87 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005414/11.46, allocations: 293.5 kB / 4.611 GB, free: 52.58 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/11.46, allocations: 4 kB / 4.611 GB, free: 52.58 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/11.46, allocations: 1.205 MB / 4.612 GB, free: 51.35 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/11.46, allocations: 4 kB / 4.612 GB, free: 51.35 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001228/11.46, allocations: 1.03 MB / 4.613 GB, free: 50.24 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001424/11.46, allocations: 1.48 MB / 4.615 GB, free: 48.68 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005105/11.46, allocations: 227.8 kB / 4.615 GB, free: 48.43 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/11.46, allocations: 4 kB / 4.615 GB, free: 48.43 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008938/11.46, allocations: 79.75 kB / 4.615 GB, free: 48.35 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.626e-05/11.46, allocations: 35.86 kB / 4.615 GB, free: 48.32 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/11.46, allocations: 12 kB / 4.615 GB, free: 48.3 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001011/11.47, allocations: 0.7139 MB / 4.616 GB, free: 47.58 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003843/11.47, allocations: 0.7844 MB / 4.616 GB, free: 46.8 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 (12): * Single equations (assignments): 9 * 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 {2 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.001932/11.47, allocations: 1.227 MB / 4.618 GB, free: 45.57 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.002001/11.47, allocations: 1.085 MB / 4.619 GB, free: 44.46 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/11.47, allocations: 0 / 4.619 GB, free: 44.46 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0004539/11.47, allocations: 259.1 kB / 4.619 GB, free: 44.2 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00321/11.48, allocations: 0.5619 MB / 4.619 GB, free: 43.65 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/11.48, allocations: 1.484 MB / 4.621 GB, free: 42.11 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008872/11.48, allocations: 1.3 MB / 4.622 GB, free: 40.79 MB / 0.6982 GB Notification: Performance of SimCode: time 1.001e-06/11.48, allocations: 0 / 4.622 GB, free: 40.79 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlowOptimised_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlowOptimised.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlowOptimised.pipe 2>&1)