Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") [: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.001703/0.001702, allocations: 188.2 kB / 7.804 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.672/1.672, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.001256/0.001256, allocations: 94.45 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.2917/0.2917, allocations: 37.97 MB / 347.3 MB, free: 7.523 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.588e-06/9.728e-06, allocations: 4 kB / 409.3 MB, free: 47.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09813, allocations: 56.32 MB / 465.6 MB, free: 6.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.366/0.4642, allocations: 99.49 MB / 0.5519 GB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/0.4646, allocations: 87.95 kB / 0.552 GB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.08781/0.5524, allocations: 14.51 MB / 0.5661 GB, free: 12.56 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.716e-05/0.5526, allocations: 20.16 kB / 0.5662 GB, free: 12.54 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002932/0.5555, allocations: 0.961 MB / 0.5671 GB, free: 11.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.5556, allocations: 8.031 kB / 0.5671 GB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003902/0.556, allocations: 90.91 kB / 0.5672 GB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005745/0.5617, allocations: 1.084 MB / 0.5683 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.5619, allocations: 27.98 kB / 0.5683 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/0.5622, allocations: 47.91 kB / 0.5683 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002394/0.5646, allocations: 0.5531 MB / 0.5689 GB, free: 9.664 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002653/0.5672, allocations: 0.7279 MB / 0.5696 GB, free: 8.887 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.35e-05/0.5673, allocations: 0 / 0.5696 GB, free: 8.887 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/0.5675, allocations: 4 kB / 0.5696 GB, free: 8.883 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.218e-05/0.5675, allocations: 19.94 kB / 0.5696 GB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00998/0.5775, allocations: 2.862 MB / 0.5724 GB, free: 5.898 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.5791, allocations: 440.9 kB / 0.5728 GB, free: 5.457 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001941/0.5811, allocations: 466.2 kB / 0.5733 GB, free: 5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.591e-05/0.5812, allocations: 4.5 kB / 0.5733 GB, free: 4.996 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.5829, allocations: 0.5249 MB / 0.5738 GB, free: 4.438 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 4.108e-06/0.5829, allocations: 0 / 0.5738 GB, free: 4.438 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.006759/0.5897, allocations: 1.654 MB / 0.5754 GB, free: 2.727 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002094/0.5899, allocations: 216.6 kB / 0.5756 GB, free: 2.473 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.591, allocations: 385.2 kB / 0.576 GB, free: 2.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.5912, allocations: 33.7 kB / 0.576 GB, free: 2.051 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003352/0.5915, allocations: 310.6 kB / 0.5763 GB, free: 1.742 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004466/0.592, allocations: 221 kB / 0.5765 GB, free: 1.523 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-05/0.5921, allocations: 4 kB / 0.5765 GB, free: 1.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00024/0.5923, allocations: 346.8 kB / 0.5768 GB, free: 1.172 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.5936, allocations: 293.9 kB / 0.5771 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.595, allocations: 484.1 kB / 0.5776 GB, free: 356 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001208/0.5962, allocations: 324.3 kB / 0.5779 GB, free: 32 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.5963, allocations: 0 / 0.5779 GB, free: 32 kB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003889/0.6002, allocations: 0.8829 MB / 0.5788 GB, free: 15.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.6002, allocations: 4 kB / 0.5788 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/0.6003, allocations: 11.91 kB / 0.5788 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.6014, allocations: 129.5 kB / 0.5789 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.6039, allocations: 211.7 kB / 0.5791 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.181e-05/0.604, allocations: 15.94 kB / 0.5791 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009514/0.6049, allocations: 31.97 kB / 0.5791 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001786/0.6051, allocations: 36 kB / 0.5792 GB, free: 14.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004442/0.6056, allocations: 142.1 kB / 0.5793 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000299/0.6059, allocations: 71.14 kB / 0.5794 GB, free: 14.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003489/0.6094, allocations: 0.8192 MB / 0.5802 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/0.6095, allocations: 8 kB / 0.5802 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.6095, allocations: 0 / 0.5802 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.186e-05/0.6095, allocations: 3.984 kB / 0.5802 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006408/0.616, allocations: 1.636 MB / 0.5818 GB, free: 11.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.616, allocations: 3.984 kB / 0.5818 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001994/0.618, allocations: 151.8 kB / 0.5819 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001452/0.6195, allocations: 149.5 kB / 0.5821 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001824/0.6197, allocations: 19.97 kB / 0.5821 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006231/0.626, allocations: 2.929 MB / 0.585 GB, free: 8.457 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-05/0.626, allocations: 4 kB / 0.585 GB, free: 8.453 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005087/0.6311, allocations: 1.374 MB / 0.5863 GB, free: 7.035 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007765/0.632, allocations: 200.3 kB / 0.5865 GB, free: 6.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003041/0.6323, allocations: 19.98 kB / 0.5865 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.6334, allocations: 35.91 kB / 0.5865 GB, free: 6.766 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004343/0.6338, allocations: 88.38 kB / 0.5866 GB, free: 6.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/0.634, allocations: 27.98 kB / 0.5867 GB, free: 6.652 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007725/0.6348, allocations: 290.9 kB / 0.5869 GB, free: 6.367 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001467/0.6363, allocations: 183.9 kB / 0.5871 GB, free: 6.188 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004079/0.6367, allocations: 159.5 kB / 0.5873 GB, free: 6.023 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.6396, allocations: 1.043 MB / 0.5883 GB, free: 4.926 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.6397, allocations: 4.312 kB / 0.5883 GB, free: 4.922 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002495/0.6422, allocations: 0.755 MB / 0.589 GB, free: 4.133 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/0.6435, allocations: 111.1 kB / 0.5891 GB, free: 4.027 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00565/0.6492, allocations: 1.481 MB / 0.5906 GB, free: 2.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.6505, allocations: 1.063 MB / 0.5916 GB, free: 1.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.362e-06/0.6506, allocations: 4 kB / 0.5916 GB, free: 1.406 MB / 426.7 MB Notification: Performance of Templates: time 0.03155/0.6821, allocations: 15.13 MB / 0.6064 GB, free: 2.27 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)