Running: ./testmodel.py --libraries=/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.462/2.462, allocations: 253.1 MB / 260.4 MB, free: 7.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001731/0.00173, allocations: 177.3 kB / 319.6 MB, free: 3.16 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.924/1.924, allocations: 205.4 MB / 0.5704 GB, free: 14.89 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001321/0.001321, allocations: 94.33 kB / 0.6746 GB, free: 4.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.738e-06/1.01e-05, allocations: 0 / 0.7843 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2162, allocations: 106.3 MB / 0.888 GB, free: 12.01 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.689/1.906, allocations: 409.5 MB / 1.288 GB, free: 260.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003642/1.906, allocations: 85.94 kB / 1.288 GB, free: 260.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.486/4.392, allocations: 0.6061 GB / 1.894 GB, free: 35.61 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002347/4.393, allocations: 42.09 kB / 1.894 GB, free: 35.58 MB / 0.8698 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 0.006015/4.399, allocations: 1.783 MB / 1.896 GB, free: 33.75 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/4.399, allocations: 8.031 kB / 1.896 GB, free: 33.74 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007676/4.407, allocations: 0.6846 MB / 1.897 GB, free: 33.05 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005908/4.412, allocations: 1.654 MB / 1.898 GB, free: 31.38 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/4.413, allocations: 113.4 kB / 1.898 GB, free: 31.26 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002539/4.413, allocations: 60 kB / 1.898 GB, free: 31.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002809/4.416, allocations: 0.9489 MB / 1.899 GB, free: 30.25 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002679/4.419, allocations: 0.9987 MB / 1.9 GB, free: 29.22 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.94e-05/4.419, allocations: 0 / 1.9 GB, free: 29.22 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/4.419, allocations: 7.906 kB / 1.9 GB, free: 29.21 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.67e-05/4.419, allocations: 28 kB / 1.9 GB, free: 29.18 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01269/4.432, allocations: 5.72 MB / 1.906 GB, free: 23.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001946/4.434, allocations: 0.6546 MB / 1.907 GB, free: 22.54 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001099/4.435, allocations: 446.1 kB / 1.907 GB, free: 22.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009944/4.436, allocations: 1.246 MB / 1.908 GB, free: 20.58 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/4.437, allocations: 0.526 MB / 1.909 GB, free: 20.03 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=67): time 3.627e-06/4.437, allocations: 0 / 1.909 GB, free: 20.03 MB / 0.8698 GB Notification: Performance of matching and sorting (n=67): time 0.003295/4.44, allocations: 0.9316 MB / 1.91 GB, free: 19.09 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/4.44, allocations: 115.5 kB / 1.91 GB, free: 18.96 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00206/4.442, allocations: 1.043 MB / 1.911 GB, free: 17.91 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001403/4.442, allocations: 33.7 kB / 1.911 GB, free: 17.87 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004683/4.443, allocations: 445.6 kB / 1.911 GB, free: 17.43 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003272/4.443, allocations: 220.7 kB / 1.911 GB, free: 17.21 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.96e-05/4.443, allocations: 0 / 1.911 GB, free: 17.21 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.961e-05/4.443, allocations: 333.9 kB / 1.912 GB, free: 16.88 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009323/4.444, allocations: 361.4 kB / 1.912 GB, free: 16.52 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/4.446, allocations: 0.6031 MB / 1.913 GB, free: 15.81 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/4.447, allocations: 448.7 kB / 1.913 GB, free: 15.38 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/4.447, allocations: 7.938 kB / 1.913 GB, free: 15.37 MB / 0.8698 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003453/4.451, allocations: 1.045 MB / 1.914 GB, free: 14.31 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002493/4.451, allocations: 1.163 MB / 1.915 GB, free: 13.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/4.451, allocations: 4 kB / 1.915 GB, free: 13.09 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.541e-05/4.451, allocations: 8 kB / 1.915 GB, free: 13.08 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002653/4.454, allocations: 287.7 kB / 1.916 GB, free: 12.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/4.454, allocations: 7.938 kB / 1.916 GB, free: 12.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003218/4.457, allocations: 227.1 kB / 1.916 GB, free: 12.57 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/4.457, allocations: 47.97 kB / 1.916 GB, free: 12.52 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/4.457, allocations: 4 kB / 1.916 GB, free: 12.52 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003046/4.46, allocations: 0.8614 MB / 1.917 GB, free: 11.65 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/4.46, allocations: 8.062 kB / 1.917 GB, free: 11.64 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/4.46, allocations: 4 kB / 1.917 GB, free: 11.64 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/4.463, allocations: 291.6 kB / 1.917 GB, free: 11.36 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/4.463, allocations: 4 kB / 1.917 GB, free: 11.35 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/4.466, allocations: 215.2 kB / 1.917 GB, free: 11.14 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001889/4.466, allocations: 43.98 kB / 1.917 GB, free: 11.1 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.0003362/4.467, allocations: 128.8 kB / 1.917 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003485/4.467, allocations: 142.2 kB / 1.917 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004098/4.471, allocations: 1.15 MB / 1.919 GB, free: 9.652 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/4.471, allocations: 11.98 kB / 1.919 GB, free: 9.641 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/4.471, allocations: 0 / 1.919 GB, free: 9.641 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002682/4.474, allocations: 0.9516 MB / 1.919 GB, free: 8.66 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008383/4.482, allocations: 3.015 MB / 1.922 GB, free: 5.516 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/4.483, allocations: 7.938 kB / 1.922 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002443/4.485, allocations: 252.2 kB / 1.923 GB, free: 5.262 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.808e-05/4.485, allocations: 8 kB / 1.923 GB, free: 5.254 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/4.485, allocations: 31.97 kB / 1.923 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.537e-06/4.485, allocations: 4 kB / 1.923 GB, free: 5.219 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/4.485, allocations: 11.94 kB / 1.923 GB, free: 5.207 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004906/4.49, allocations: 2.091 MB / 1.925 GB, free: 2.91 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/4.491, allocations: 468 kB / 1.925 GB, free: 2.414 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/4.492, allocations: 8 kB / 1.925 GB, free: 2.406 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002799/4.495, allocations: 175.7 kB / 1.925 GB, free: 2.234 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/4.495, allocations: 76.25 kB / 1.925 GB, free: 2.16 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/4.495, allocations: 47.97 kB / 1.926 GB, free: 2.113 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.00182/4.497, allocations: 0.7935 MB / 1.926 GB, free: 1.32 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003719/4.501, allocations: 0.8342 MB / 1.927 GB, free: 496 kB / 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.3708/4.872, allocations: 0.8009 MB / 1.928 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.003565/4.875, allocations: 1.396 MB / 1.929 GB, free: 230 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/4.875, allocations: 0 / 1.929 GB, free: 230 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001504/4.877, allocations: 0.5045 MB / 1.93 GB, free: 230 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006105/4.883, allocations: 0.615 MB / 1.93 GB, free: 230 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006719/4.89, allocations: 2.091 MB / 1.932 GB, free: 229.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001926/4.892, allocations: 1.433 MB / 1.934 GB, free: 228.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.042e-06/4.892, allocations: 0 / 1.934 GB, free: 228.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.106/4.998, allocations: 35.71 MB / 1.969 GB, free: 228.1 MB / 0.8698 GB