Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline") translateModel(PowerSystems.Examples.AC3ph.Transmission.FaultRXline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001612/0.001612, allocations: 183.8 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001277/0.001277, allocations: 97.67 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2787/0.2787, allocations: 37.98 MB / 347.3 MB, free: 7.523 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.107e-06/9.198e-06, allocations: 4 kB / 409.3 MB, free: 47.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.09766, allocations: 56.31 MB / 465.6 MB, free: 6.844 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3794/0.4771, allocations: 105.4 MB / 0.5576 GB, free: 5.461 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/0.4775, allocations: 87.95 kB / 0.5577 GB, free: 5.375 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.121/0.5986, allocations: 24.65 MB / 0.5818 GB, free: 12.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.353e-05/0.5987, allocations: 23.98 kB / 0.5818 GB, free: 12.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.005877/0.6046, allocations: 1.361 MB / 0.5831 GB, free: 10.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.6047, allocations: 8.031 kB / 0.5831 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002777/0.6075, allocations: 206.3 kB / 0.5833 GB, free: 10.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007149/0.6147, allocations: 1.305 MB / 0.5846 GB, free: 9.402 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.6149, allocations: 43.98 kB / 0.5847 GB, free: 9.359 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004084/0.6153, allocations: 60 kB / 0.5847 GB, free: 9.301 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005536/0.6208, allocations: 1.32 MB / 0.586 GB, free: 7.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005304/0.6262, allocations: 1.459 MB / 0.5874 GB, free: 6.434 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-05/0.6263, allocations: 3.938 kB / 0.5874 GB, free: 6.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/0.6266, allocations: 7.984 kB / 0.5874 GB, free: 6.422 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001931/0.6268, allocations: 69.97 kB / 0.5875 GB, free: 6.355 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01818/0.645, allocations: 5.605 MB / 0.593 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0025/0.6475, allocations: 0.9063 MB / 0.5939 GB, free: 15.67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/0.6497, allocations: 0.817 MB / 0.5947 GB, free: 14.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.6499, allocations: 16.98 kB / 0.5947 GB, free: 14.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002543/0.6524, allocations: 1.009 MB / 0.5957 GB, free: 13.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=161): time 5.02e-06/0.6525, allocations: 0 / 0.5957 GB, free: 13.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=162): time 0.01055/0.663, allocations: 3.557 MB / 0.5991 GB, free: 10.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/0.6633, allocations: 246.8 kB / 0.5994 GB, free: 9.875 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009764/0.6642, allocations: 458.1 kB / 0.5998 GB, free: 9.418 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003124/0.6646, allocations: 45.75 kB / 0.5999 GB, free: 9.367 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003939/0.665, allocations: 411 kB / 0.6003 GB, free: 8.961 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007817/0.6658, allocations: 477.3 kB / 0.6007 GB, free: 8.488 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.6659, allocations: 3.938 kB / 0.6007 GB, free: 8.484 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.6661, allocations: 382.8 kB / 0.6011 GB, free: 8.102 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.668, allocations: 0.6756 MB / 0.6017 GB, free: 7.426 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00217/0.6702, allocations: 0.96 MB / 0.6027 GB, free: 6.367 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/0.6726, allocations: 0.7937 MB / 0.6034 GB, free: 5.574 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.6726, allocations: 0 / 0.6034 GB, free: 5.574 MB / 442.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.01016/0.6828, allocations: 2.622 MB / 0.606 GB, free: 2.938 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.6828, allocations: 4 kB / 0.606 GB, free: 2.934 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008938/0.6918, allocations: 2.268 MB / 0.6082 GB, free: 0.668 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005667/0.6975, allocations: 1.001 MB / 0.6092 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.6986, allocations: 147.7 kB / 0.6093 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02271/0.7213, allocations: 7.387 MB / 0.6166 GB, free: 8.008 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.7227, allocations: 47.94 kB / 0.6166 GB, free: 7.961 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.7229, allocations: 56 kB / 0.6167 GB, free: 7.906 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 84 (system.initime,$PRE.abc.fault_pp1.t0,abc.fault_pp1.t0,$PRE.abc.fault_pp2.t0,abc.fault_pp2.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3],$PRE.abc.theta_zero,abc.theta_zero,$PRE.abc.v_pos,abc.v_pos,$PRE.abc.first,abc.first,$PRE.abc.fault_pp1.on,abc.fault_pp1.on,$PRE.abc.fault_pp2.on,abc.fault_pp2.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 139 * Array equations: 4 * 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 {(14,51.5%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004711/0.7233, allocations: 164.7 kB / 0.6168 GB, free: 7.727 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003896/0.7238, allocations: 106.8 kB / 0.6169 GB, free: 7.621 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004751/0.7285, allocations: 1.704 MB / 0.6186 GB, free: 5.898 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.158e-05/0.7286, allocations: 35.92 kB / 0.6186 GB, free: 5.863 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.7287, allocations: 4 kB / 0.6186 GB, free: 5.859 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/0.7287, allocations: 7.969 kB / 0.6186 GB, free: 5.852 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009536/0.7382, allocations: 3.445 MB / 0.622 GB, free: 2.305 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.7383, allocations: 0 / 0.622 GB, free: 2.305 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004094/0.7424, allocations: 368 kB / 0.6223 GB, free: 1.945 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002813/0.7427, allocations: 52.81 kB / 0.6224 GB, free: 1.891 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002071/0.7429, allocations: 19.98 kB / 0.6224 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.7448, allocations: 1.501 MB / 0.6239 GB, free: 260 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/0.7448, allocations: 8.031 kB / 0.6239 GB, free: 252 kB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007256/0.7521, allocations: 3.042 MB / 0.6269 GB, free: 13.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009248/0.7531, allocations: 307.8 kB / 0.6272 GB, free: 12.74 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/0.7534, allocations: 23.98 kB / 0.6272 GB, free: 12.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.7546, allocations: 55.84 kB / 0.6272 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004481/0.7551, allocations: 128.8 kB / 0.6274 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001568/0.7553, allocations: 39.98 kB / 0.6274 GB, free: 12.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006723/0.756, allocations: 346.9 kB / 0.6277 GB, free: 12.16 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001897/0.7579, allocations: 336 kB / 0.628 GB, free: 11.83 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 57 (switch1.switch_a.closed,switch1.switch_b.closed,switch1.switch_c.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition23,$whenCondition22,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,abc.theta_zero,abc.v_pos,abc.first,abc.fault_pp1.on,abc.fault_pp1.t0,abc.fault_pp2.on,abc.fault_pp2.t0,system.initime) * Number of discrete states: 21 (abc.theta_zero,abc.fault_pp1.on,abc.fault_pp2.on,relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_b.open,switch2.switch_c.open,switch2.switch_a.open,abc.v_pos,abc.first,switch1.switch_c.open,switch1.switch_b.open,switch1.switch_a.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 107 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 11 * 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.0005537/0.7584, allocations: 213.1 kB / 0.6282 GB, free: 11.62 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007511/0.766, allocations: 2.29 MB / 0.6305 GB, free: 9.309 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.766, allocations: 0 / 0.6305 GB, free: 9.309 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003233/0.7693, allocations: 1.266 MB / 0.6317 GB, free: 8.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.7706, allocations: 119.4 kB / 0.6318 GB, free: 7.902 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008098/0.7787, allocations: 2.674 MB / 0.6344 GB, free: 5.152 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002013/0.7808, allocations: 1.326 MB / 0.6357 GB, free: 3.801 MB / 474.7 MB Notification: Performance of SimCode: time 9.82e-07/0.7808, allocations: 0 / 0.6357 GB, free: 3.801 MB / 474.7 MB Notification: Performance of Templates: time 0.1824/0.9632, allocations: 19.81 MB / 0.6551 GB, free: 190.5 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transmission.FaultRXline.pipe 2>&1)