Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlow.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.SeriesParallelFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlow",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.7641/0.7641, allocations: 141.8 MB / 149.1 MB, free: 12.59 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.001188/0.001188, allocations: 189.9 kB / 182 MB, free: 9.195 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.384/1.384, allocations: 221.3 MB / 436 MB, free: 1.465 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.001078/0.001078, allocations: 98.33 kB / 0.507 GB, free: 10.33 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002006/0.002006, allocations: 272.5 kB / 0.5884 GB, free: 7.156 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.221/0.223, allocations: 89.64 MB / 0.676 GB, free: 13.43 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5234/0.7464, allocations: 82.77 MB / 0.7568 GB, free: 138.4 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.143/4.889, allocations: 1.829 GB / 2.586 GB, free: 204.9 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/4.889, allocations: 96.42 kB / 2.586 GB, free: 204.8 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 3.461/8.351, allocations: 1.082 GB / 3.667 GB, free: 173.7 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/8.351, allocations: 14.84 kB / 3.667 GB, free: 173.7 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001435/8.352, allocations: 208.6 kB / 3.668 GB, free: 173.5 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00413/8.356, allocations: 1.426 MB / 3.669 GB, free: 172.1 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/8.356, allocations: 19.75 kB / 3.669 GB, free: 172 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/8.356, allocations: 40 kB / 3.669 GB, free: 172 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001053/8.358, allocations: 0.7248 MB / 3.67 GB, free: 171.3 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/8.359, allocations: 0.8622 MB / 3.671 GB, free: 170.3 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/8.359, allocations: 7.844 kB / 3.671 GB, free: 170.3 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-05/8.359, allocations: 0 / 3.671 GB, free: 170.3 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/8.359, allocations: 16 kB / 3.671 GB, free: 170.3 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00413/8.363, allocations: 4.722 MB / 3.675 GB, free: 165.4 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006141/8.363, allocations: 0.524 MB / 3.676 GB, free: 164.8 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004109/8.364, allocations: 451.8 kB / 3.676 GB, free: 164.4 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/8.364, allocations: 197.9 kB / 3.676 GB, free: 164.2 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003195/8.365, allocations: 317.5 kB / 3.677 GB, free: 163.9 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=35): time 1.953e-06/8.365, allocations: 0 / 3.677 GB, free: 163.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=35): time 0.002019/8.367, allocations: 0.9548 MB / 3.678 GB, free: 162.9 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/8.367, allocations: 88.12 kB / 3.678 GB, free: 162.8 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000998/8.368, allocations: 0.9129 MB / 3.679 GB, free: 161.9 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 5.492e-05/8.368, allocations: 33.7 kB / 3.679 GB, free: 161.9 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001998/8.368, allocations: 344.4 kB / 3.679 GB, free: 161.5 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 8.385e-05/8.368, allocations: 122.2 kB / 3.679 GB, free: 161.4 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-05/8.368, allocations: 0 / 3.679 GB, free: 161.4 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.404e-05/8.368, allocations: 328.9 kB / 3.679 GB, free: 161.1 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/8.368, allocations: 236.7 kB / 3.68 GB, free: 160.8 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/8.369, allocations: 0.5516 MB / 3.68 GB, free: 160.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/8.369, allocations: 316.7 kB / 3.681 GB, free: 159.8 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/8.369, allocations: 3.938 kB / 3.681 GB, free: 159.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001839/8.371, allocations: 1.083 MB / 3.682 GB, free: 158.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003999/8.371, allocations: 2.1 MB / 3.684 GB, free: 156.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/8.371, allocations: 7.75 kB / 3.684 GB, free: 156.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006687/8.372, allocations: 369.4 kB / 3.684 GB, free: 156.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/8.372, allocations: 63.91 kB / 3.684 GB, free: 156.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/8.374, allocations: 1.417 MB / 3.685 GB, free: 154.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/8.375, allocations: 114.1 kB / 3.686 GB, free: 154.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.418e-05/8.375, allocations: 31.98 kB / 3.686 GB, free: 154.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 7.835e-06/8.375, allocations: 7.938 kB / 3.686 GB, free: 154.5 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001198/8.376, allocations: 0.7719 MB / 3.686 GB, free: 153.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/8.376, allocations: 4 kB / 3.686 GB, free: 153.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006964/8.377, allocations: 309.9 kB / 3.687 GB, free: 153.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/8.377, allocations: 63.91 kB / 3.687 GB, free: 153.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003853/8.381, allocations: 3.474 MB / 3.69 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009651/8.382, allocations: 102.8 kB / 3.69 GB, free: 149.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-05/8.382, allocations: 24 kB / 3.69 GB, free: 149.7 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 {11 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001454/8.382, allocations: 125 kB / 3.69 GB, free: 149.6 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/8.383, allocations: 106.7 kB / 3.69 GB, free: 149.5 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001199/8.384, allocations: 0.8501 MB / 3.691 GB, free: 148.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/8.384, allocations: 6.781 kB / 3.691 GB, free: 148.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/8.384, allocations: 3.984 kB / 3.691 GB, free: 148.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/8.384, allocations: 3.906 kB / 3.691 GB, free: 148.6 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/8.386, allocations: 1.798 MB / 3.693 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/8.386, allocations: 0 / 3.693 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/8.386, allocations: 23.98 kB / 3.693 GB, free: 146.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005371/8.387, allocations: 328.8 kB / 3.693 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/8.387, allocations: 4 kB / 3.693 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/8.388, allocations: 1.268 MB / 3.695 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/8.388, allocations: 0 / 3.695 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001058/8.389, allocations: 1.044 MB / 3.696 GB, free: 144.1 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001272/8.39, allocations: 1.469 MB / 3.697 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003957/8.391, allocations: 235.7 kB / 3.697 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001774/8.391, allocations: 4 kB / 3.697 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00074/8.392, allocations: 86.66 kB / 3.697 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.349e-05/8.392, allocations: 27.95 kB / 3.697 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/8.392, allocations: 8 kB / 3.697 GB, free: 142.2 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006954/8.392, allocations: 0.7213 MB / 3.698 GB, free: 141.5 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003287/8.396, allocations: 0.7951 MB / 3.699 GB, free: 140.7 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 {11 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.001576/8.397, allocations: 1.219 MB / 3.7 GB, free: 139.7 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.002118/8.399, allocations: 1.18 MB / 3.701 GB, free: 138.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/8.399, allocations: 0 / 3.701 GB, free: 138.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0005389/8.4, allocations: 328 kB / 3.702 GB, free: 138.2 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002669/8.403, allocations: 0.5756 MB / 3.702 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/8.405, allocations: 1.48 MB / 3.704 GB, free: 136.1 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007128/8.406, allocations: 1.296 MB / 3.705 GB, free: 134.8 MB / 0.6982 GB Notification: Performance of SimCode: time 5.01e-07/8.406, allocations: 0 / 3.705 GB, free: 134.8 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesParallelFlow.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesParallelFlow.pipe 2>&1)