Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") [: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 8.1.4-maint.8.1.x/package.mo): time 1.33/1.33, allocations: 289.8 MB / 297.1 MB, free: 6.594 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 177.3 kB / 366.3 MB, free: 1.949 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.035/1.035, allocations: 205.1 MB / 0.6256 GB, free: 5.812 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007392/0.000739, allocations: 92.83 kB / 0.7396 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.929e-06/4.969e-06, allocations: 4 kB / 0.859 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4239/0.4239, allocations: 116.3 MB / 0.9726 GB, free: 68.1 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1507/0.5747, allocations: 159 MB / 1.128 GB, free: 5.492 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.5749, allocations: 87.92 kB / 1.128 GB, free: 5.406 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.03587/0.6108, allocations: 15.78 MB / 1.143 GB, free: 5.523 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.785e-05/0.6108, allocations: 8 kB / 1.143 GB, free: 5.516 MB / 0.7448 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.0006866/0.6115, allocations: 0.5243 MB / 1.144 GB, free: 4.945 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.6116, allocations: 8.031 kB / 1.144 GB, free: 4.938 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007642/0.6123, allocations: 91.61 kB / 1.144 GB, free: 4.848 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.6126, allocations: 255.2 kB / 1.144 GB, free: 4.559 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.6127, allocations: 4 kB / 1.144 GB, free: 4.555 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.6127, allocations: 12 kB / 1.144 GB, free: 4.543 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000372/0.6131, allocations: 232.7 kB / 1.144 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/0.6135, allocations: 337.3 kB / 1.145 GB, free: 3.953 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.6136, allocations: 4.656 kB / 1.145 GB, free: 3.949 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.6136, allocations: 0 / 1.145 GB, free: 3.949 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.674e-05/0.6136, allocations: 28.31 kB / 1.145 GB, free: 3.918 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0016/0.6152, allocations: 1.674 MB / 1.146 GB, free: 2.121 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.6156, allocations: 265.2 kB / 1.147 GB, free: 1.844 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.6158, allocations: 141.7 kB / 1.147 GB, free: 1.699 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001324/0.6159, allocations: 93.08 kB / 1.147 GB, free: 1.59 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.6159, allocations: 38.5 kB / 1.147 GB, free: 1.543 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.6159, allocations: 3.938 kB / 1.147 GB, free: 1.539 MB / 0.7448 GB Notification: Performance of matching and sorting (n=21): time 0.0007902/0.6167, allocations: 376.3 kB / 1.147 GB, free: 1.164 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.6168, allocations: 81.11 kB / 1.147 GB, free: 1.066 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.6169, allocations: 177.3 kB / 1.148 GB, free: 0.8867 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.617, allocations: 29.64 kB / 1.148 GB, free: 0.8516 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.913e-05/0.617, allocations: 151.9 kB / 1.148 GB, free: 0.6992 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.272e-05/0.6171, allocations: 70.92 kB / 1.148 GB, free: 0.6289 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/0.6171, allocations: 0 / 1.148 GB, free: 0.6289 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.6172, allocations: 330.8 kB / 1.148 GB, free: 304 kB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.6174, allocations: 112 kB / 1.148 GB, free: 192 kB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.6176, allocations: 192.7 kB / 1.148 GB, free: 15.96 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.6179, allocations: 158 kB / 1.149 GB, free: 15.81 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.6179, allocations: 0 / 1.149 GB, free: 15.81 MB / 0.7605 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006286/0.6185, allocations: 394.5 kB / 1.149 GB, free: 15.42 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003385/0.6189, allocations: 1.043 MB / 1.15 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.6189, allocations: 4 kB / 1.15 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001879/0.6191, allocations: 48.83 kB / 1.15 GB, free: 14.24 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.6194, allocations: 63.89 kB / 1.15 GB, free: 14.18 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.6205, allocations: 1.414 MB / 1.151 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.6208, allocations: 31.94 kB / 1.151 GB, free: 12.61 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.6208, allocations: 8 kB / 1.151 GB, free: 12.6 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 5.22e-06/0.6208, allocations: 4 kB / 1.151 GB, free: 12.6 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005675/0.6214, allocations: 319.2 kB / 1.152 GB, free: 12.29 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.6214, allocations: 8.031 kB / 1.152 GB, free: 12.28 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001208/0.6215, allocations: 40.81 kB / 1.152 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.6218, allocations: 63.91 kB / 1.152 GB, free: 12.17 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.6228, allocations: 1.408 MB / 1.153 GB, free: 10.64 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.623, allocations: 31.86 kB / 1.153 GB, free: 10.61 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.6231, allocations: 12.06 kB / 1.153 GB, free: 10.6 MB / 0.7605 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 8.764e-05/0.6232, allocations: 112.9 kB / 1.153 GB, free: 10.48 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.436e-05/0.6232, allocations: 19.72 kB / 1.153 GB, free: 10.46 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005608/0.6238, allocations: 331.8 kB / 1.154 GB, free: 10.13 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.6238, allocations: 0 / 1.154 GB, free: 10.13 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.6238, allocations: 11.89 kB / 1.154 GB, free: 10.12 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.6238, allocations: 64 / 1.154 GB, free: 10.12 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.625, allocations: 0.8902 MB / 1.155 GB, free: 9.164 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.625, allocations: 0 / 1.155 GB, free: 9.164 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.6253, allocations: 51.91 kB / 1.155 GB, free: 9.113 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/0.6254, allocations: 36.83 kB / 1.155 GB, free: 9.074 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.6254, allocations: 12.12 kB / 1.155 GB, free: 9.062 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008997/0.6263, allocations: 1.334 MB / 1.156 GB, free: 7.613 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6263, allocations: 3.938 kB / 1.156 GB, free: 7.609 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005823/0.6269, allocations: 0.599 MB / 1.157 GB, free: 6.93 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.627, allocations: 120.8 kB / 1.157 GB, free: 6.793 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.6271, allocations: 7.984 kB / 1.157 GB, free: 6.785 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.6273, allocations: 15.98 kB / 1.157 GB, free: 6.77 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.373e-05/0.6274, allocations: 16.03 kB / 1.157 GB, free: 6.754 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.6274, allocations: 11.94 kB / 1.157 GB, free: 6.742 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001051/0.6275, allocations: 152.2 kB / 1.157 GB, free: 6.594 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0005186/0.6281, allocations: 103.9 kB / 1.157 GB, free: 6.492 MB / 0.7605 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.0001461/0.6282, allocations: 122.3 kB / 1.157 GB, free: 6.367 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0007992/0.629, allocations: 0.6415 MB / 1.158 GB, free: 5.707 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.629, allocations: 0 / 1.158 GB, free: 5.707 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.6293, allocations: 245.5 kB / 1.158 GB, free: 5.457 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.6296, allocations: 19.98 kB / 1.158 GB, free: 5.438 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007523/0.6304, allocations: 427.1 kB / 1.158 GB, free: 4.973 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003867/0.6308, allocations: 0.8026 MB / 1.159 GB, free: 4.141 MB / 0.7605 GB Notification: Performance of SimCode: time 2.3e-07/0.6308, allocations: 0 / 1.159 GB, free: 4.141 MB / 0.7605 GB Notification: Performance of Templates: time 0.006906/0.6377, allocations: 4.218 MB / 1.163 GB, free: 15.95 MB / 0.7761 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)