Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.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.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine") [: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.001256/0.001256, allocations: 195.8 kB / 8.138 MB, free: 2.125 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.164/1.164, allocations: 194.2 MB / 202.8 MB, free: 8.66 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.001711/0.001711, allocations: 115.5 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1685/0.1685, allocations: 37.92 MB / 330.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.151e-06/6.181e-06, allocations: 4 kB / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07358/0.0736, allocations: 53.23 MB / 443 MB, free: 24.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2987/0.3723, allocations: 104 MB / 0.5342 GB, free: 3.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.3727, allocations: 90.23 kB / 0.5343 GB, free: 3.633 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0732/0.4459, allocations: 23.71 MB / 0.5575 GB, free: 15.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.324e-05/0.446, allocations: 20 kB / 0.5575 GB, free: 15.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003521/0.4495, allocations: 1.448 MB / 0.5589 GB, free: 14.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4496, allocations: 8.031 kB / 0.5589 GB, free: 14.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003602/0.4499, allocations: 130.4 kB / 0.559 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008205/0.4582, allocations: 2.511 MB / 0.5615 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.66e-05/0.4583, allocations: 31.12 kB / 0.5615 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005742/0.4589, allocations: 79.22 kB / 0.5616 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002218/0.4611, allocations: 1.058 MB / 0.5626 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003022/0.4642, allocations: 1.653 MB / 0.5642 GB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.4642, allocations: 3.906 kB / 0.5642 GB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001801/0.4644, allocations: 11.86 kB / 0.5643 GB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-05/0.4645, allocations: 34 kB / 0.5643 GB, free: 9.574 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009581/0.474, allocations: 5.653 MB / 0.5698 GB, free: 4.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.4753, allocations: 0.9755 MB / 0.5708 GB, free: 4.156 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.4772, allocations: 1.15 MB / 0.5719 GB, free: 3.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-05/0.4773, allocations: 12.78 kB / 0.5719 GB, free: 3.328 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001697/0.479, allocations: 1.272 MB / 0.5731 GB, free: 2.312 MB / 378.7 MB Notification: Performance of pre-optimization done (n=101): time 3.897e-06/0.479, allocations: 0 / 0.5731 GB, free: 2.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.01691/0.496, allocations: 6.799 MB / 0.5798 GB, free: 12.51 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.4962, allocations: 212.8 kB / 0.58 GB, free: 12.26 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.4972, allocations: 0.5977 MB / 0.5806 GB, free: 11.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002515/0.4975, allocations: 33.7 kB / 0.5806 GB, free: 11.62 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003136/0.4978, allocations: 356.1 kB / 0.5809 GB, free: 11.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005669/0.4984, allocations: 406.8 kB / 0.5813 GB, free: 10.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.4985, allocations: 3.938 kB / 0.5813 GB, free: 10.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.4987, allocations: 357.9 kB / 0.5817 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.5002, allocations: 0.9918 MB / 0.5826 GB, free: 9.512 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001614/0.5018, allocations: 1.256 MB / 0.5839 GB, free: 8.16 MB / 394.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.trafo.i1 = 0.0 Notification: The following equation is consistent and got removed from the initialization problem: $DER.line.i[1,1] = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.02795/0.5298, allocations: 8.367 MB / 0.592 GB, free: 15.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.5298, allocations: 4 kB / 0.592 GB, free: 15.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.0104/0.5402, allocations: 4.902 MB / 0.5968 GB, free: 10.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.5402, allocations: 8.062 kB / 0.5968 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.5403, allocations: 12 kB / 0.5968 GB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01509/0.5554, allocations: 6.176 MB / 0.6029 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000862/0.5563, allocations: 179.7 kB / 0.603 GB, free: 4.441 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02539/0.5817, allocations: 14.33 MB / 0.617 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.5828, allocations: 63.86 kB / 0.6171 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003203/0.5831, allocations: 155.9 kB / 0.6172 GB, free: 5.781 MB / 426.7 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: $DER.trafo.i1 = 0.0 $DER.line.i[1,1] = 0.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 41 (system.initime,$PRE.ab.fault_pp.t0,ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,trafo.tap_2_internal,trafo.tap_1_internal,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.ab.t_zero,ab.t_zero,$PRE.ab.v_pos,ab.v_pos,$PRE.ab.first,ab.first,$PRE.ab.fault_pp.on,ab.fault_pp.on,$PRE.relay1.y[1],relay1.y[1],$PRE.relay2.y[1],relay2.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * 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 {(29,10.6%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004923/0.5836, allocations: 219.1 kB / 0.6175 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000307/0.584, allocations: 98.78 kB / 0.6175 GB, free: 5.453 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/0.5968, allocations: 4.803 MB / 0.6222 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.5969, allocations: 8 kB / 0.6222 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.5969, allocations: 4 kB / 0.6222 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.789e-05/0.5969, allocations: 3.984 kB / 0.6223 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01659/0.6135, allocations: 6.575 MB / 0.6287 GB, free: 9.949 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.6136, allocations: 0 / 0.6287 GB, free: 9.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006735/0.6142, allocations: 127.8 kB / 0.6288 GB, free: 9.824 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01976/0.634, allocations: 6.124 MB / 0.6348 GB, free: 3.676 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000513/0.6346, allocations: 207.8 kB / 0.635 GB, free: 3.473 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02529/0.6599, allocations: 18.61 MB / 0.6532 GB, free: 280 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.6599, allocations: 3.906 kB / 0.6532 GB, free: 276 kB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01452/0.6744, allocations: 5.797 MB / 0.6588 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001112/0.6756, allocations: 411.7 kB / 0.6592 GB, free: 9.992 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007817/0.6764, allocations: 168.2 kB / 0.6594 GB, free: 9.828 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.6777, allocations: 55.86 kB / 0.6594 GB, free: 9.773 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005557/0.6783, allocations: 124.7 kB / 0.6595 GB, free: 9.652 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004293/0.6787, allocations: 143.9 kB / 0.6597 GB, free: 9.512 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0009826/0.6797, allocations: 459.1 kB / 0.6601 GB, free: 9.066 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002294/0.682, allocations: 495.8 kB / 0.6606 GB, free: 8.582 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4],lineF.v[1,1],lineF.v[1,2],lineF.v[1,3],lineF.v[2,1],lineF.v[2,2],lineF.v[2,3],lineF.i[1,1],lineF.i[1,2],lineF.i[1,3],lineF.i[1,4],lineF.i[2,1],lineF.i[2,2],lineF.i[2,3],lineF.i[2,4],lineF.iF[1],lineF.iF[2]) * Number of discrete variables: 26 (switch1.switch_1.closed,switch2.switch_1.closed,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_1.arc,switch1.switch_1.open,switch2.switch_1.arc,switch2.switch_1.open,ab.t_zero,ab.v_pos,ab.first,ab.fault_pp.on,ab.fault_pp.t0,relay1.y[1],relay1.cnt,relay2.y[1],relay2.cnt,system.initime) * Number of discrete states: 12 (relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_1.open,relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,ab.t_zero,ab.fault_pp.on,ab.v_pos,ab.first) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {6,6} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {16 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004942/0.6825, allocations: 204.5 kB / 0.6608 GB, free: 8.375 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00603/0.6886, allocations: 2.792 MB / 0.6635 GB, free: 5.551 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6886, allocations: 0 / 0.6635 GB, free: 5.551 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004509/0.6931, allocations: 2.223 MB / 0.6657 GB, free: 3.258 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/0.6944, allocations: 214.1 kB / 0.6659 GB, free: 3.051 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1315/0.8259, allocations: 4.696 MB / 0.6705 GB, free: 203.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007859/0.8267, allocations: 1.274 MB / 0.6717 GB, free: 202.6 MB / 474.7 MB Notification: Performance of SimCode: time 6.51e-07/0.8268, allocations: 0 / 0.6717 GB, free: 202.6 MB / 474.7 MB Notification: Performance of Templates: time 0.04284/0.8696, allocations: 33.28 MB / 0.7042 GB, free: 194 MB / 474.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.DoublelLine.pipe 2>&1)