Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault") translateModel(PowerSystems.Examples.AC3ph.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.001689/0.001688, allocations: 184.6 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.943/1.943, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001259/0.001259, allocations: 83.62 kB / 261.4 MB, free: 13.64 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.2652/0.2652, allocations: 37.97 MB / 347.3 MB, free: 7.551 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.604e-06, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1019, allocations: 56.31 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.359/0.461, allocations: 106.3 MB / 0.5585 GB, free: 4.625 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003432/0.4614, allocations: 91.94 kB / 0.5586 GB, free: 4.535 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1089/0.5703, allocations: 24.53 MB / 0.5825 GB, free: 11.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.199e-05/0.5704, allocations: 27.94 kB / 0.5825 GB, free: 11.7 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: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.004176/0.5746, allocations: 1.362 MB / 0.5839 GB, free: 10.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.5746, allocations: 8.031 kB / 0.5839 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001903/0.5765, allocations: 206.4 kB / 0.5841 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00504/0.5816, allocations: 1.208 MB / 0.5853 GB, free: 8.801 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.5818, allocations: 43.98 kB / 0.5853 GB, free: 8.758 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002892/0.5821, allocations: 60 kB / 0.5854 GB, free: 8.699 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003753/0.5858, allocations: 1.293 MB / 0.5866 GB, free: 7.406 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003618/0.5895, allocations: 1.448 MB / 0.588 GB, free: 5.871 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.257e-05/0.5896, allocations: 4 kB / 0.588 GB, free: 5.867 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001609/0.5897, allocations: 11.98 kB / 0.5881 GB, free: 5.855 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001496/0.5899, allocations: 61.98 kB / 0.5881 GB, free: 5.797 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01364/0.6035, allocations: 5.542 MB / 0.5935 GB, free: 100 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.6062, allocations: 1.01 MB / 0.5945 GB, free: 15.06 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.608, allocations: 0.7901 MB / 0.5953 GB, free: 14.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.463e-05/0.6081, allocations: 13 kB / 0.5953 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002283/0.6104, allocations: 0.9921 MB / 0.5963 GB, free: 13.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 3.777e-06/0.6104, allocations: 0 / 0.5963 GB, free: 13.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.009314/0.6198, allocations: 3.396 MB / 0.5996 GB, free: 9.773 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.62, allocations: 225.1 kB / 0.5998 GB, free: 9.512 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008746/0.6209, allocations: 438 kB / 0.6002 GB, free: 9.074 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001726/0.6211, allocations: 41.69 kB / 0.6003 GB, free: 9.027 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003756/0.6215, allocations: 414.9 kB / 0.6006 GB, free: 8.617 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006117/0.6221, allocations: 461.4 kB / 0.6011 GB, free: 8.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.6222, allocations: 4.031 kB / 0.6011 GB, free: 8.156 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002177/0.6224, allocations: 378.8 kB / 0.6015 GB, free: 7.777 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.6242, allocations: 0.6678 MB / 0.6021 GB, free: 7.109 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002048/0.6263, allocations: 0.9254 MB / 0.603 GB, free: 6.094 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002112/0.6284, allocations: 0.7936 MB / 0.6038 GB, free: 5.301 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.6284, allocations: 8 kB / 0.6038 GB, free: 5.293 MB / 442.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.009531/0.638, allocations: 2.596 MB / 0.6063 GB, free: 2.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.638, allocations: 4 kB / 0.6063 GB, free: 2.676 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008527/0.6466, allocations: 2.291 MB / 0.6086 GB, free: 396 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00577/0.6524, allocations: 1.009 MB / 0.6096 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.6535, allocations: 143.7 kB / 0.6097 GB, free: 15.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02276/0.6763, allocations: 7.409 MB / 0.6169 GB, free: 7.707 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.6776, allocations: 47.94 kB / 0.617 GB, free: 7.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/0.6778, allocations: 52 kB / 0.617 GB, free: 7.609 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$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.fault_ab.theta_zero,fault_ab.theta_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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * 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 {(15,42.7%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000475/0.6783, allocations: 169.2 kB / 0.6172 GB, free: 7.426 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/0.6787, allocations: 98.86 kB / 0.6173 GB, free: 7.328 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004642/0.6834, allocations: 1.68 MB / 0.6189 GB, free: 5.633 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.949e-05/0.6835, allocations: 27.98 kB / 0.6189 GB, free: 5.605 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.6835, allocations: 4 kB / 0.6189 GB, free: 5.602 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/0.6835, allocations: 11.97 kB / 0.619 GB, free: 5.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008946/0.6925, allocations: 3.139 MB / 0.622 GB, free: 2.383 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.6926, allocations: 4 kB / 0.622 GB, free: 2.379 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004058/0.6966, allocations: 359.8 kB / 0.6224 GB, free: 2.027 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001779/0.6968, allocations: 32.84 kB / 0.6224 GB, free: 1.992 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001684/0.697, allocations: 23.97 kB / 0.6224 GB, free: 1.969 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001325/0.6984, allocations: 1.267 MB / 0.6237 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.166e-06/0.6984, allocations: 4 kB / 0.6237 GB, free: 0.582 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007004/0.7054, allocations: 2.883 MB / 0.6265 GB, free: 13.61 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009172/0.7064, allocations: 303.8 kB / 0.6268 GB, free: 13.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/0.7067, allocations: 24.02 kB / 0.6268 GB, free: 13.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.7079, allocations: 55.94 kB / 0.6269 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004348/0.7083, allocations: 120.8 kB / 0.627 GB, free: 13.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/0.7085, allocations: 39.98 kB / 0.627 GB, free: 13.06 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006524/0.7092, allocations: 338.8 kB / 0.6273 GB, free: 12.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001684/0.7109, allocations: 331.9 kB / 0.6276 GB, free: 12.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$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,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.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_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005529/0.7114, allocations: 190.9 kB / 0.6278 GB, free: 12.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007497/0.7189, allocations: 2.275 MB / 0.63 GB, free: 9.918 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.719, allocations: 0 / 0.63 GB, free: 9.918 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002865/0.7219, allocations: 1.169 MB / 0.6312 GB, free: 8.727 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.7232, allocations: 126.8 kB / 0.6313 GB, free: 8.605 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007958/0.7312, allocations: 2.59 MB / 0.6338 GB, free: 5.949 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001955/0.7332, allocations: 1.312 MB / 0.6351 GB, free: 4.609 MB / 474.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7332, allocations: 0 / 0.6351 GB, free: 4.609 MB / 474.7 MB Notification: Performance of Templates: time 0.1875/0.9207, allocations: 19.47 MB / 0.6541 GB, free: 192.3 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1)