Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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 7.0.1/package.mo): time 2.04/2.04, allocations: 248.6 MB / 255.9 MB, free: 7.133 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001602/0.001602, allocations: 184.3 kB / 315.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.815/1.815, allocations: 205.1 MB / 0.5658 GB, free: 332 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001222/0.001222, allocations: 90.89 kB / 0.67 GB, free: 5.539 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4402/0.4415, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.6355, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.406/2.042, allocations: 409.5 MB / 1.283 GB, free: 245.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/2.042, allocations: 85.98 kB / 1.283 GB, free: 245.9 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 2.428/4.47, allocations: 0.6079 GB / 1.891 GB, free: 21.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/4.47, allocations: 11.98 kB / 1.891 GB, free: 21.69 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007073/4.477, allocations: 0.6807 MB / 1.892 GB, free: 21.01 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005782/4.483, allocations: 1.671 MB / 1.894 GB, free: 19.32 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/4.484, allocations: 105.4 kB / 1.894 GB, free: 19.21 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002815/4.484, allocations: 64 kB / 1.894 GB, free: 19.14 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002939/4.487, allocations: 0.945 MB / 1.895 GB, free: 18.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/4.489, allocations: 1.003 MB / 1.896 GB, free: 17.16 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.106e-05/4.49, allocations: 0 / 1.896 GB, free: 17.16 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001601/4.49, allocations: 7.906 kB / 1.896 GB, free: 17.15 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.363e-05/4.49, allocations: 24 kB / 1.896 GB, free: 17.13 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01329/4.503, allocations: 5.703 MB / 1.901 GB, free: 11.15 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002184/4.505, allocations: 0.6575 MB / 1.902 GB, free: 10.49 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/4.507, allocations: 454.6 kB / 1.902 GB, free: 10.04 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001032/4.508, allocations: 1.238 MB / 1.904 GB, free: 8.531 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001368/4.509, allocations: 0.5299 MB / 1.904 GB, free: 7.977 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=67): time 4.329e-06/4.509, allocations: 0 / 1.904 GB, free: 7.977 MB / 0.8698 GB Notification: Performance of matching and sorting (n=67): time 0.003685/4.513, allocations: 0.9316 MB / 1.905 GB, free: 7.035 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/4.513, allocations: 118.6 kB / 1.905 GB, free: 6.898 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002544/4.516, allocations: 1.047 MB / 1.906 GB, free: 5.844 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003333/4.516, allocations: 29.77 kB / 1.906 GB, free: 5.809 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005219/4.516, allocations: 445.7 kB / 1.907 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004621/4.517, allocations: 224.7 kB / 1.907 GB, free: 5.145 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/4.517, allocations: 0 / 1.907 GB, free: 5.145 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.339e-05/4.517, allocations: 330 kB / 1.907 GB, free: 4.816 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009799/4.518, allocations: 361.4 kB / 1.908 GB, free: 4.461 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/4.519, allocations: 0.6061 MB / 1.908 GB, free: 3.75 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/4.521, allocations: 449.4 kB / 1.909 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/4.521, allocations: 0 / 1.909 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00377/4.525, allocations: 1.049 MB / 1.91 GB, free: 2.258 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002612/4.525, allocations: 1.163 MB / 1.911 GB, free: 1.031 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/4.525, allocations: 4 kB / 1.911 GB, free: 1.027 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.19e-05/4.525, allocations: 4 kB / 1.911 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002768/4.528, allocations: 291.6 kB / 1.911 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/4.528, allocations: 8 kB / 1.911 GB, free: 0.7305 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/4.532, allocations: 215.2 kB / 1.911 GB, free: 0.5195 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/4.532, allocations: 51.97 kB / 1.911 GB, free: 480 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/4.532, allocations: 6.969 kB / 1.911 GB, free: 476 kB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3777/4.91, allocations: 0.865 MB / 1.912 GB, free: 229 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/4.91, allocations: 3.781 kB / 1.912 GB, free: 229 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/4.91, allocations: 8.969 kB / 1.912 GB, free: 229 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002696/4.912, allocations: 289.8 kB / 1.912 GB, free: 229 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/4.912, allocations: 10.03 kB / 1.912 GB, free: 229 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003266/4.916, allocations: 210.2 kB / 1.913 GB, free: 229 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002064/4.916, allocations: 50.47 kB / 1.913 GB, free: 229 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * 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.0003462/4.916, allocations: 130.4 kB / 1.913 GB, free: 228.9 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003803/4.917, allocations: 146.7 kB / 1.913 GB, free: 228.9 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/4.921, allocations: 1.142 MB / 1.914 GB, free: 228.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.782e-05/4.921, allocations: 7.5 kB / 1.914 GB, free: 228.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/4.921, allocations: 8.625 kB / 1.914 GB, free: 228.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002948/4.924, allocations: 0.9534 MB / 1.915 GB, free: 228.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008764/4.933, allocations: 3.009 MB / 1.918 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/4.933, allocations: 6.969 kB / 1.918 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002499/4.935, allocations: 253.8 kB / 1.918 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.03e-05/4.935, allocations: 7.906 kB / 1.918 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/4.936, allocations: 28.38 kB / 1.918 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.215e-05/4.936, allocations: 8.906 kB / 1.918 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/4.936, allocations: 5.375 kB / 1.918 GB, free: 227.9 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005079/4.941, allocations: 2.091 MB / 1.92 GB, free: 227.2 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006736/4.948, allocations: 3.133 MB / 1.923 GB, free: 226.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001477/4.949, allocations: 480.1 kB / 1.924 GB, free: 225.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004732/4.95, allocations: 7.625 kB / 1.924 GB, free: 225.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002982/4.953, allocations: 170.1 kB / 1.924 GB, free: 225.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/4.953, allocations: 69.89 kB / 1.924 GB, free: 225.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/4.953, allocations: 47.48 kB / 1.924 GB, free: 225.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001804/4.955, allocations: 0.794 MB / 1.925 GB, free: 225.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006217/4.961, allocations: 1.069 MB / 1.926 GB, free: 225.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.002128/4.963, allocations: 0.8157 MB / 1.927 GB, free: 225.6 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00357/4.967, allocations: 1.394 MB / 1.928 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/4.967, allocations: 3.938 kB / 1.928 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001462/4.969, allocations: 0.4971 MB / 1.928 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00615/4.975, allocations: 0.6196 MB / 1.929 GB, free: 225.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006625/4.981, allocations: 2.09 MB / 1.931 GB, free: 224.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002009/4.983, allocations: 1.435 MB / 1.933 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of SimCode: time 1.873e-06/4.984, allocations: 0 / 1.933 GB, free: 224.1 MB / 0.8698 GB