Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") [: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/Complex 3.2.2+maint.om/package.mo): time 0.001176/0.001176, allocations: 189.8 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.316/1.316, allocations: 194.2 MB / 202.8 MB, free: 8.684 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001763/0.001763, allocations: 118 kB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1689/0.1689, allocations: 37.91 MB / 330.5 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.184e-06/7.224e-06, allocations: 0 / 389.8 MB, free: 78.13 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.09991, allocations: 53.23 MB / 443 MB, free: 25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3259/0.4259, allocations: 97.96 MB / 0.5283 GB, free: 8.418 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.4262, allocations: 83.86 kB / 0.5284 GB, free: 8.406 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07616/0.5024, allocations: 25.35 MB / 0.5531 GB, free: 4.176 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001171/0.5026, allocations: 24 kB / 0.5532 GB, free: 4.152 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003892/0.5065, allocations: 1.093 MB / 0.5542 GB, free: 3.062 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.5066, allocations: 8.031 kB / 0.5542 GB, free: 3.055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001684/0.5083, allocations: 182.6 kB / 0.5544 GB, free: 2.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004185/0.5125, allocations: 1.369 MB / 0.5558 GB, free: 1.715 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.168e-05/0.5125, allocations: 28 kB / 0.5558 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002677/0.5128, allocations: 55.73 kB / 0.5558 GB, free: 1.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001766/0.5146, allocations: 0.8408 MB / 0.5567 GB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001936/0.5165, allocations: 1.086 MB / 0.5577 GB, free: 168 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.964e-05/0.5166, allocations: 11.84 kB / 0.5577 GB, free: 156 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.414e-05/0.5167, allocations: 4 kB / 0.5577 GB, free: 152 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-05/0.5168, allocations: 49.73 kB / 0.5578 GB, free: 104 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006435/0.5232, allocations: 4.527 MB / 0.5622 GB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.5243, allocations: 0.6337 MB / 0.5628 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006341/0.525, allocations: 465.2 kB / 0.5633 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-05/0.525, allocations: 12.09 kB / 0.5633 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006577/0.5257, allocations: 0.498 MB / 0.5638 GB, free: 10.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 2.956e-06/0.5257, allocations: 4 kB / 0.5638 GB, free: 10.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.004532/0.5302, allocations: 2.387 MB / 0.5661 GB, free: 8.859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.5304, allocations: 163.5 kB / 0.5663 GB, free: 8.664 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006525/0.531, allocations: 454.2 kB / 0.5667 GB, free: 8.309 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.593e-05/0.5311, allocations: 25.7 kB / 0.5667 GB, free: 8.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003191/0.5314, allocations: 389.3 kB / 0.5671 GB, free: 7.934 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002798/0.5317, allocations: 260.7 kB / 0.5673 GB, free: 7.707 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.5318, allocations: 0 / 0.5673 GB, free: 7.707 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.532, allocations: 388.7 kB / 0.5677 GB, free: 7.352 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005609/0.5326, allocations: 377 kB / 0.5681 GB, free: 7.102 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000699/0.5333, allocations: 0.6084 MB / 0.5687 GB, free: 6.531 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.01061/0.5439, allocations: 3.32 MB / 0.5719 GB, free: 3.695 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.5439, allocations: 0 / 0.5719 GB, free: 3.695 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002334/0.5463, allocations: 1.258 MB / 0.5731 GB, free: 2.699 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.5463, allocations: 4 kB / 0.5731 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.94e-05/0.5463, allocations: 8.047 kB / 0.5731 GB, free: 2.688 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006735/0.547, allocations: 255 kB / 0.5734 GB, free: 2.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.5482, allocations: 251.3 kB / 0.5736 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005469/0.5537, allocations: 5.314 MB / 0.5788 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007924/0.5545, allocations: 19.98 kB / 0.5788 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.5547, allocations: 32 kB / 0.5789 GB, free: 12.84 MB / 394.7 MB Warning: Assuming redundant initial conditions for the following 3 initial equations: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003483/0.5551, allocations: 182.5 kB / 0.579 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001852/0.5553, allocations: 75.06 kB / 0.5791 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002333/0.5576, allocations: 1.1 MB / 0.5802 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.378e-05/0.5577, allocations: 11.98 kB / 0.5802 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/0.5577, allocations: 4 kB / 0.5802 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.5577, allocations: 7.984 kB / 0.5802 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00423/0.5619, allocations: 2.183 MB / 0.5823 GB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/0.562, allocations: 4 kB / 0.5823 GB, free: 9.156 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.563, allocations: 167.8 kB / 0.5825 GB, free: 8.992 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008069/0.5638, allocations: 258.3 kB / 0.5827 GB, free: 8.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.962e-05/0.5639, allocations: 19.98 kB / 0.5828 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005101/0.569, allocations: 5.223 MB / 0.5879 GB, free: 3.137 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.5691, allocations: 4 kB / 0.5879 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002749/0.5718, allocations: 1.781 MB / 0.5896 GB, free: 1.234 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.5721, allocations: 148.2 kB / 0.5897 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/0.5723, allocations: 11.98 kB / 0.5898 GB, free: 1.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005137/0.5728, allocations: 23.98 kB / 0.5898 GB, free: 1.035 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.573, allocations: 48.48 kB / 0.5898 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.336e-05/0.573, allocations: 27.92 kB / 0.5899 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004481/0.5735, allocations: 355.2 kB / 0.5902 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001187/0.5747, allocations: 275.9 kB / 0.5905 GB, free: 356 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003388/0.575, allocations: 187 kB / 0.5906 GB, free: 160 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.5771, allocations: 1.3 MB / 0.5919 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.5772, allocations: 4 kB / 0.5919 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001377/0.5785, allocations: 0.8533 MB / 0.5927 GB, free: 13.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008091/0.5794, allocations: 137.9 kB / 0.5929 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.583, allocations: 1.856 MB / 0.5947 GB, free: 11.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000935/0.5839, allocations: 1.185 MB / 0.5958 GB, free: 10.66 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5839, allocations: 0 / 0.5958 GB, free: 10.66 MB / 410.7 MB Notification: Performance of Templates: time 0.02115/0.6051, allocations: 11.39 MB / 0.607 GB, free: 15.29 MB / 426.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)