Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") [: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.365/1.365, allocations: 289.8 MB / 297.1 MB, free: 6.609 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.0009121/0.0009121, allocations: 185.2 kB / 366.3 MB, free: 1.93 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.024/1.024, allocations: 205.1 MB / 0.6256 GB, free: 5.781 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.0007713/0.0007713, allocations: 90.28 kB / 0.7395 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.576e-06, allocations: 0 / 0.859 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4114/0.4114, allocations: 116.3 MB / 0.9726 GB, free: 68.47 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1673/0.5787, allocations: 182.1 MB / 1.15 GB, free: 14.28 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.5789, allocations: 95.88 kB / 1.15 GB, free: 14.19 MB / 0.7605 GB Notification: Performance of FrontEnd: time 0.06347/0.6424, allocations: 28.12 MB / 1.178 GB, free: 1.805 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.386e-05/0.6424, allocations: 8 kB / 1.178 GB, free: 1.797 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.000938/0.6434, allocations: 0.6773 MB / 1.179 GB, free: 1.074 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.6434, allocations: 12.03 kB / 1.179 GB, free: 1.062 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002282/0.6457, allocations: 430.8 kB / 1.179 GB, free: 0.6406 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006908/0.6464, allocations: 475.3 kB / 1.179 GB, free: 140 kB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.6464, allocations: 11.94 kB / 1.179 GB, free: 128 kB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.494e-05/0.6465, allocations: 19.91 kB / 1.18 GB, free: 108 kB / 0.7761 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006827/0.6472, allocations: 489.1 kB / 1.18 GB, free: 15.63 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000752/0.648, allocations: 0.5592 MB / 1.181 GB, free: 15.04 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.648, allocations: 0 / 1.181 GB, free: 15.04 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.371e-05/0.648, allocations: 4 kB / 1.181 GB, free: 15.03 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/0.6481, allocations: 20.64 kB / 1.181 GB, free: 15.01 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/0.6515, allocations: 2.758 MB / 1.183 GB, free: 12.05 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006097/0.6522, allocations: 322.4 kB / 1.184 GB, free: 11.72 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.6524, allocations: 168.8 kB / 1.184 GB, free: 11.55 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.6525, allocations: 89.09 kB / 1.184 GB, free: 11.45 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.6525, allocations: 30.56 kB / 1.184 GB, free: 11.41 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=16): time 1.223e-06/0.6525, allocations: 0 / 1.184 GB, free: 11.41 MB / 0.7917 GB Notification: Performance of matching and sorting (n=24): time 0.004098/0.6566, allocations: 1.489 MB / 1.185 GB, free: 9.91 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.6567, allocations: 85.11 kB / 1.185 GB, free: 9.809 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.657, allocations: 331.4 kB / 1.186 GB, free: 9.473 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.6571, allocations: 25.7 kB / 1.186 GB, free: 9.441 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.6572, allocations: 207.6 kB / 1.186 GB, free: 9.234 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 7.029e-05/0.6573, allocations: 82.84 kB / 1.186 GB, free: 9.152 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.6573, allocations: 0 / 1.186 GB, free: 9.152 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.6574, allocations: 346.7 kB / 1.186 GB, free: 8.805 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003109/0.6577, allocations: 247.9 kB / 1.187 GB, free: 8.562 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003594/0.6581, allocations: 329.4 kB / 1.187 GB, free: 8.207 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00048/0.6586, allocations: 305.5 kB / 1.187 GB, free: 7.91 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.6586, allocations: 0 / 1.187 GB, free: 7.91 MB / 0.7917 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002649/0.6612, allocations: 1.014 MB / 1.188 GB, free: 6.887 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002589/0.6615, allocations: 0.7861 MB / 1.189 GB, free: 6.039 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.6615, allocations: 7.984 kB / 1.189 GB, free: 6.031 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002023/0.6636, allocations: 417.2 kB / 1.189 GB, free: 5.617 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005711/0.6641, allocations: 107.8 kB / 1.189 GB, free: 5.512 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003443/0.6676, allocations: 2.956 MB / 1.192 GB, free: 2.41 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006388/0.6682, allocations: 79.97 kB / 1.192 GB, free: 2.332 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/0.6683, allocations: 15.98 kB / 1.192 GB, free: 2.316 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 5.691e-06/0.6683, allocations: 4 kB / 1.192 GB, free: 2.312 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007874/0.6691, allocations: 484.5 kB / 1.193 GB, free: 1.84 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-06/0.6691, allocations: 4.031 kB / 1.193 GB, free: 1.836 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.619e-06/0.6691, allocations: 4 kB / 1.193 GB, free: 1.832 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006572/0.6698, allocations: 135.8 kB / 1.193 GB, free: 1.699 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.6698, allocations: 7.984 kB / 1.193 GB, free: 1.691 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005117/0.6703, allocations: 67.92 kB / 1.193 GB, free: 1.625 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.6704, allocations: 19.98 kB / 1.193 GB, free: 1.605 MB / 0.7917 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.6705, allocations: 112.8 kB / 1.193 GB, free: 1.488 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.6706, allocations: 31.62 kB / 1.193 GB, free: 1.457 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/0.6735, allocations: 1.064 MB / 1.194 GB, free: 392 kB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.6735, allocations: 7.906 kB / 1.194 GB, free: 384 kB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.6735, allocations: 4 kB / 1.194 GB, free: 380 kB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.6735, allocations: 0 / 1.194 GB, free: 380 kB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.677, allocations: 1.682 MB / 1.196 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.677, allocations: 0 / 1.196 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003772/0.6774, allocations: 76.02 kB / 1.196 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002287/0.6797, allocations: 0.5519 MB / 1.197 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.233e-05/0.6797, allocations: 4 kB / 1.197 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004602/0.6844, allocations: 4.043 MB / 1.2 GB, free: 9.715 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.6844, allocations: 4 kB / 1.2 GB, free: 9.711 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002616/0.687, allocations: 1.113 MB / 1.202 GB, free: 8.547 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002025/0.6872, allocations: 168.6 kB / 1.202 GB, free: 8.363 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.293e-05/0.6873, allocations: 7.984 kB / 1.202 GB, free: 8.355 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006442/0.6879, allocations: 83.89 kB / 1.202 GB, free: 8.273 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.494e-05/0.688, allocations: 15.92 kB / 1.202 GB, free: 8.258 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.688, allocations: 11.98 kB / 1.202 GB, free: 8.246 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0002687/0.6883, allocations: 267.1 kB / 1.202 GB, free: 7.988 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0006687/0.689, allocations: 187.9 kB / 1.202 GB, free: 7.805 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002217/0.6892, allocations: 160.3 kB / 1.202 GB, free: 7.641 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001495/0.6907, allocations: 0.9759 MB / 1.203 GB, free: 6.652 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.6907, allocations: 0 / 1.203 GB, free: 6.652 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0007488/0.6915, allocations: 0.5351 MB / 1.204 GB, free: 6.098 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.692, allocations: 101.2 kB / 1.204 GB, free: 6 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.6934, allocations: 0.7654 MB / 1.205 GB, free: 5.207 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005696/0.6939, allocations: 0.9508 MB / 1.206 GB, free: 4.23 MB / 0.8073 GB Notification: Performance of SimCode: time 2.81e-07/0.694, allocations: 0 / 1.206 GB, free: 4.23 MB / 0.8073 GB Notification: Performance of Templates: time 0.01641/0.7104, allocations: 12.1 MB / 1.218 GB, free: 8.199 MB / 0.823 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)