Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid",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.523/2.523, allocations: 248.6 MB / 255.9 MB, free: 7.188 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.00169/0.00169, allocations: 189.2 kB / 315.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.1 MB / 0.5658 GB, free: 296 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.001815/0.001815, allocations: 103.2 kB / 0.67 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4875/0.4894, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.7026, allocations: 106.3 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7524/1.455, allocations: 152.6 MB / 1.032 GB, free: 5.191 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000351/1.455, allocations: 85.56 kB / 1.033 GB, free: 5.145 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.07582/1.531, allocations: 16.31 MB / 1.048 GB, free: 7.543 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/1.531, allocations: 8 kB / 1.049 GB, free: 7.535 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002491/1.534, allocations: 95.61 kB / 1.049 GB, free: 7.441 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000825/1.535, allocations: 258.7 kB / 1.049 GB, free: 7.168 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/1.535, allocations: 4 kB / 1.049 GB, free: 7.164 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/1.535, allocations: 12 kB / 1.049 GB, free: 7.152 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001248/1.536, allocations: 230.5 kB / 1.049 GB, free: 7.004 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/1.538, allocations: 333.8 kB / 1.049 GB, free: 6.723 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.226e-05/1.538, allocations: 4 kB / 1.049 GB, free: 6.719 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.842e-05/1.538, allocations: 3.984 kB / 1.049 GB, free: 6.715 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.774e-05/1.538, allocations: 20.31 kB / 1.049 GB, free: 6.691 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004912/1.543, allocations: 1.672 MB / 1.051 GB, free: 5.07 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009999/1.544, allocations: 270.9 kB / 1.051 GB, free: 4.855 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00049/1.544, allocations: 138.2 kB / 1.051 GB, free: 4.75 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003277/1.545, allocations: 92.28 kB / 1.052 GB, free: 4.645 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/1.545, allocations: 34.88 kB / 1.052 GB, free: 4.602 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=20): time 4.669e-06/1.545, allocations: 3.938 kB / 1.052 GB, free: 4.598 MB / 0.6667 GB Notification: Performance of matching and sorting (n=21): time 0.001672/1.546, allocations: 373.3 kB / 1.052 GB, free: 4.293 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/1.547, allocations: 81.11 kB / 1.052 GB, free: 4.195 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/1.547, allocations: 182.6 kB / 1.052 GB, free: 4.035 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/1.547, allocations: 33.64 kB / 1.052 GB, free: 3.996 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/1.547, allocations: 149.5 kB / 1.052 GB, free: 3.855 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 9.076e-05/1.547, allocations: 69.81 kB / 1.052 GB, free: 3.793 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/1.547, allocations: 0 / 1.052 GB, free: 3.793 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001925/1.547, allocations: 328.6 kB / 1.053 GB, free: 3.473 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/1.548, allocations: 110.3 kB / 1.053 GB, free: 3.402 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003711/1.548, allocations: 197.3 kB / 1.053 GB, free: 3.215 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/1.549, allocations: 158.2 kB / 1.053 GB, free: 3.109 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/1.549, allocations: 0 / 1.053 GB, free: 3.109 MB / 0.6667 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001245/1.55, allocations: 389.3 kB / 1.054 GB, free: 2.805 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004049/1.55, allocations: 1.044 MB / 1.055 GB, free: 1.699 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/1.55, allocations: 4 kB / 1.055 GB, free: 1.695 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003486/1.551, allocations: 40.64 kB / 1.055 GB, free: 1.656 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006602/1.551, allocations: 71.77 kB / 1.055 GB, free: 1.59 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/1.553, allocations: 1.423 MB / 1.056 GB, free: 120 kB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004783/1.554, allocations: 27.95 kB / 1.056 GB, free: 92 kB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/1.554, allocations: 11.38 kB / 1.056 GB, free: 84 kB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/1.554, allocations: 7.938 kB / 1.056 GB, free: 76 kB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001086/1.555, allocations: 318.8 kB / 1.056 GB, free: 15.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/1.555, allocations: 4 kB / 1.056 GB, free: 15.83 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002441/1.555, allocations: 37.77 kB / 1.056 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/1.556, allocations: 75.11 kB / 1.057 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/1.558, allocations: 1.394 MB / 1.058 GB, free: 14.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004107/1.558, allocations: 31.81 kB / 1.058 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/1.558, allocations: 11.98 kB / 1.058 GB, free: 14.26 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001809/1.558, allocations: 111.4 kB / 1.058 GB, free: 14.14 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/1.558, allocations: 23.78 kB / 1.058 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/1.56, allocations: 343.9 kB / 1.058 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/1.56, allocations: 0 / 1.058 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/1.56, allocations: 4 kB / 1.058 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/1.56, allocations: 0 / 1.058 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/1.562, allocations: 0.8943 MB / 1.059 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/1.562, allocations: 224 / 1.059 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/1.562, allocations: 55.34 kB / 1.059 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002155/1.562, allocations: 35.95 kB / 1.059 GB, free: 12.95 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/1.563, allocations: 4 kB / 1.059 GB, free: 12.95 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/1.564, allocations: 1.341 MB / 1.061 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.413e-06/1.564, allocations: 3.906 kB / 1.061 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00108/1.565, allocations: 0.5865 MB / 1.061 GB, free: 10.96 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001184/1.566, allocations: 0.9748 MB / 1.062 GB, free: 9.988 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/1.567, allocations: 123.6 kB / 1.062 GB, free: 9.855 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.988e-05/1.567, allocations: 4 kB / 1.062 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/1.567, allocations: 23.3 kB / 1.062 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.132e-05/1.567, allocations: 23.81 kB / 1.062 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/1.567, allocations: 7.438 kB / 1.062 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001823/1.567, allocations: 143.7 kB / 1.063 GB, free: 9.684 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002581/1.57, allocations: 109.8 kB / 1.063 GB, free: 9.582 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002131/1.57, allocations: 123.1 kB / 1.063 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001464/1.572, allocations: 0.6367 MB / 1.063 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/1.572, allocations: 1.375 kB / 1.063 GB, free: 8.926 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005886/1.572, allocations: 250.7 kB / 1.064 GB, free: 8.707 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/1.573, allocations: 26.8 kB / 1.064 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/1.574, allocations: 426.9 kB / 1.064 GB, free: 8.277 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006113/1.575, allocations: 0.7962 MB / 1.065 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of SimCode: time 9.72e-07/1.575, allocations: 0 / 1.065 GB, free: 7.461 MB / 0.6823 GB